PKGBUILDs/aur/asterisk/asterisk.service

19 lines
434 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Asterisk PBX and telephony daemon.
After=network.target
[Service]
Type=simple
RemainAfterExit=yes
Environment=HOME=/var/lib/asterisk
WorkingDirectory=/var/lib/asterisk
PIDFile=/run/asterisk/asterisk.pid
ExecStart=/usr/sbin/asterisk -C /etc/asterisk/asterisk.conf
ExecStop=/usr/sbin/asterisk -rx 'core stop now'
ExecReload=/usr/sbin/asterisk -rx 'core reload'
PrivateTmp=true
[Install]
WantedBy=multi-user.target