PKGBUILDs/aur/asterisk/asterisk.service
2013-06-26 12:41:16 -04:00

20 lines
427 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=always
RestartSec=10
[Install]
WantedBy=multi-user.target