Skip to content

Commit

Permalink
pkg/kamailio/centos/7: added missing kamailio.service file
Browse files Browse the repository at this point in the history
  • Loading branch information
grumvalski authored and linuxmaniac committed Feb 4, 2017
1 parent 9d0323f commit 1c9078c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/kamailio/centos/7/kamailio.service
@@ -0,0 +1,17 @@
[Unit]
Description=Kamailio (OpenSER) - the Open Source SIP Server
After=network.target

[Service]
Type=forking
Environment='CFGFILE=/etc/kamailio/kamailio.cfg'
EnvironmentFile=/etc/sysconfig/kamailio
# PIDFile requires a full absolute path
PIDFile=/var/run/kamailio.pid
# ExecStart requires a full absolute path
ExecStart=/usr/sbin/kamailio -P /var/run/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP
ExecStopPost=/usr/bin/rm -f /var/run/kamailio.pid
Restart=on-abort

[Install]
WantedBy=multi-user.target

0 comments on commit 1c9078c

Please sign in to comment.