diff options
Diffstat (limited to 'pcr/asterisk/asterisk.service')
-rw-r--r-- | pcr/asterisk/asterisk.service | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/asterisk/asterisk.service b/pcr/asterisk/asterisk.service new file mode 100644 index 000000000..789a1adda --- /dev/null +++ b/pcr/asterisk/asterisk.service @@ -0,0 +1,20 @@ +[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 |