Module: sip-router
Branch: master
Commit: ab935110669af3bafd5bd69c3dd2e5b6f29e81b5
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ab93511…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Sun May 20 00:52:08 2012 +0100
pkg/kamailio/fedora/fc16: Tweak to the systemd scripts for F16
---
pkg/kamailio/fedora/fc16/kamailio.service | 2 +-
pkg/kamailio/fedora/fc16/kamailio.sysconfig | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/pkg/kamailio/fedora/fc16/kamailio.service
b/pkg/kamailio/fedora/fc16/kamailio.service
index c811475..3aa65c7 100644
--- a/pkg/kamailio/fedora/fc16/kamailio.service
+++ b/pkg/kamailio/fedora/fc16/kamailio.service
@@ -6,7 +6,7 @@ After=syslog.target network.target
Type=forking
EnvironmentFile=/etc/sysconfig/kamailio
PIDFile=/var/run/kamailio.pid
-ExecStart=/usr/sbin/kamailio $OPTIONS
+ExecStart=/usr/sbin/kamailio -P /var/run/kamailio.pid $OPTIONS
[Install]
WantedBy=multi-user.target
diff --git a/pkg/kamailio/fedora/fc16/kamailio.sysconfig
b/pkg/kamailio/fedora/fc16/kamailio.sysconfig
index 8eb8f51..60916b5 100644
--- a/pkg/kamailio/fedora/fc16/kamailio.sysconfig
+++ b/pkg/kamailio/fedora/fc16/kamailio.sysconfig
@@ -5,10 +5,8 @@
# Options to pass when starting Kamailio
# Note: variable interpolation is not supported by systemd so $OPTIONS cannot
# be constructed from multiple variables.
-# -P - The PID file (this must match the value in
-# /lib/systemd/system/kamailio.service)
# -m - Kamailio shared (global) memory (default 32 MB)
# -M - Kamailio package (per-process private) memory (default 4 MB)
# -u - User to run Kamailio as
# -g - Group to run Kamailio as
-OPTIONS="-P /var/run/kamailio.pid -m 32 -M 4 -u kamailio -g kamailio"
+OPTIONS="-m 32 -M 4 -u kamailio -g kamailio"