Module: kamailio
Branch: master
Commit: cf3b1aeacfc9d5bd086929a6fae20f379ebb2612
URL:
https://github.com/kamailio/kamailio/commit/cf3b1aeacfc9d5bd086929a6fae20f3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-04-05T16:02:54+02:00
pkg/rpm: specify the pid file for killproc
---
Modified: pkg/kamailio/centos/7/kamailio.init
---
Diff:
https://github.com/kamailio/kamailio/commit/cf3b1aeacfc9d5bd086929a6fae20f3…
Patch:
https://github.com/kamailio/kamailio/commit/cf3b1aeacfc9d5bd086929a6fae20f3…
---
diff --git a/pkg/kamailio/centos/7/kamailio.init b/pkg/kamailio/centos/7/kamailio.init
index 2cdae7a..d19f376 100644
--- a/pkg/kamailio/centos/7/kamailio.init
+++ b/pkg/kamailio/centos/7/kamailio.init
@@ -6,7 +6,7 @@
# description: Kamailio (OpenSER) - the Open Source SIP Server
#
# processname: kamailio
-# pidfile: /var/run/kamailio.pid
+# pidfile: /var/run/kamailio/kamailio.pid
# config: /etc/kamailio/kamailio.cfg
#
### BEGIN INIT INFO
@@ -69,7 +69,7 @@ start() {
stop() {
echo -n $"Stopping $PROG: "
- killproc $KAM
+ killproc -p $PID_FILE $KAM
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f $LOCK_FILE $PID_FILE