diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-08-22 14:01:38 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-08-22 14:01:38 -0300 |
commit | 236a7904452e148aa050e374bfe4dee41cb1974e (patch) | |
tree | f3bdbed3a30deca9131465e0bfce0e55f66bfb90 /pcr/asterisk/asterisk.service | |
parent | 9947b58ec4c681e62db65ccd8a8b0aaee581437d (diff) | |
download | abslibre-236a7904452e148aa050e374bfe4dee41cb1974e.tar.gz abslibre-236a7904452e148aa050e374bfe4dee41cb1974e.tar.bz2 abslibre-236a7904452e148aa050e374bfe4dee41cb1974e.zip |
Asterisk upgraded and moved to [pcr]
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 |