Module: kamailio
Branch: 4.4
Commit: 8292370e1b18538ca78dae76409abfe8a0862492
URL:
https://github.com/kamailio/kamailio/commit/8292370e1b18538ca78dae76409abfe…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2017-02-13T08:59:44-05:00
pkg/kamailio/centos: Fixed environment vars in service file
---
Modified: pkg/kamailio/centos/7/kamailio.service
---
Diff:
https://github.com/kamailio/kamailio/commit/8292370e1b18538ca78dae76409abfe…
Patch:
https://github.com/kamailio/kamailio/commit/8292370e1b18538ca78dae76409abfe…
---
diff --git a/pkg/kamailio/centos/7/kamailio.service
b/pkg/kamailio/centos/7/kamailio.service
index 7b81e41..5e4e67a 100644
--- a/pkg/kamailio/centos/7/kamailio.service
+++ b/pkg/kamailio/centos/7/kamailio.service
@@ -6,11 +6,13 @@ After=network.target
Type=forking
WorkingDirectory=/run/kamailio
Environment='CFGFILE=/etc/kamailio/kamailio.cfg'
+Environment='SHM_MEMORY=64'
+Environment='PKG_MEMORY=8'
EnvironmentFile=/etc/sysconfig/kamailio
# PIDFile requires a full absolute path
PIDFile=/run/kamailio/kamailio.pid
# ExecStart requires a full absolute path
-ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M
$PKG_MEMORY -u $USER -g $GROUP
+ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M
$PKG_MEMORY
ExecStopPost=/usr/bin/rm -f /var/run/kamailio.pid
Restart=on-abort
User=kamailio