PKGBUILDs/aur/asterisk/asterisk.service

21 lines
427 B
SYSTEMD
Raw Normal View History

[Unit]
2013-06-26 16:41:16 +00:00
Description=Asterisk PBX and telephony daemon
Documentation=man:asterisk(8)
Wants=network.target
After=network.target
[Service]
Type=simple
User=asterisk
2013-06-26 16:41:16 +00:00
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'
2013-06-26 16:41:16 +00:00
# safe_asterisk emulation
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target