mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-26 23:23:22 +02:00
20 lines
423 B
Plaintext
20 lines
423 B
Plaintext
![]() |
|
||
|
[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
|