mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
19
roles/freepbx/templates/freepbx.service.j2
Normal file
19
roles/freepbx/templates/freepbx.service.j2
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
[Unit]
|
||||
Description=FreePBX VoIP Server
|
||||
{% if fpbx_db_server == 'localhost' or fpbx_db_server == '127.0.0.1' %}
|
||||
Requires=mariadb.service
|
||||
{% endif %}
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/local/bin/fwconsole start -q
|
||||
ExecStop=/usr/local/bin/fwconsole stop -q
|
||||
ExecReload=/usr/local/bin/fwconsole reload -q
|
||||
SyslogIdentifier=FreePBX
|
||||
Restart=on-failure
|
||||
StartLimitInterval=0
|
||||
RestartSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user