PKGBUILDs/aur/asterisk/asterisk.service
Kevin Mihelich acc2a0b819 aur updates
2015-06-19 00:35:13 +00:00

21 lines
458 B
Desktop File

[Unit]
Description=Asterisk PBX and telephony daemon
Documentation=man:asterisk(8)
Wants=network.target
After=network.target
[Service]
Type=simple
User=asterisk
Group=asterisk
ExecStart=/usr/bin/asterisk -f -C /etc/asterisk/asterisk.conf
ExecStop=/usr/bin/asterisk -rx 'core stop now'
ExecReload=/usr/bin/asterisk -rx 'core reload'
# safe_asterisk emulation
Restart=on-failure
RestartSec=10
RestartPreventExitStatus=0
[Install]
WantedBy=multi-user.target