mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 10:13:26 +02:00
20 lines
423 B
Django/Jinja
20 lines
423 B
Django/Jinja
|
|
[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
|