2013-02-07 04:06:27 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Asterisk PBX and telephony daemon.
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2013-03-08 04:20:56 +00:00
|
|
|
RemainAfterExit=yes
|
2013-02-07 04:06:27 +00:00
|
|
|
Environment=HOME=/var/lib/asterisk
|
|
|
|
WorkingDirectory=/var/lib/asterisk
|
2013-04-17 05:15:44 +00:00
|
|
|
User=asterisk
|
|
|
|
Group=asterisk
|
2013-02-07 04:06:27 +00:00
|
|
|
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
|