Module: kamailio
Branch: master
Commit: 1c9078cfef11c947149b8c46d8e6ba754d956d7d
URL:
https://github.com/kamailio/kamailio/commit/1c9078cfef11c947149b8c46d8e6ba7…
Author: grumvalski <federico.cabiddu(a)gmail.com>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2017-02-04T17:10:26+01:00
pkg/kamailio/centos/7: added missing kamailio.service file
---
Added: pkg/kamailio/centos/7/kamailio.service
---
Diff:
https://github.com/kamailio/kamailio/commit/1c9078cfef11c947149b8c46d8e6ba7…
Patch:
https://github.com/kamailio/kamailio/commit/1c9078cfef11c947149b8c46d8e6ba7…
---
diff --git a/pkg/kamailio/centos/7/kamailio.service
b/pkg/kamailio/centos/7/kamailio.service
new file mode 100644
index 0000000..66945f4
--- /dev/null
+++ b/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