[Pkg-voip-commits] [kamailio] 01/02: fix init script

Victor Seva Lopez maniac-guest at moszumanska.debian.org
Tue Feb 18 14:09:53 UTC 2014


This is an automated email from the git hooks/post-receive script.

maniac-guest pushed a commit to branch master
in repository kamailio.

commit d556b7685700ced2917e54a04d0b772606dbd5bd
Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Date:   Mon Feb 10 14:01:15 2014 +0100

    fix init script
---
 debian/changelog     |  6 ++++++
 debian/kamailio.init | 14 +++++---------
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 3a63f7f..562773f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+kamailio (4.1.1-3) UNRELEASED; urgency=medium
+
+  * fix init script
+
+ -- Victor Seva <linuxmaniac at torreviejawireless.org>  Tue, 18 Feb 2014 13:33:14 +0100
+
 kamailio (4.1.1-2) unstable; urgency=medium
 
   * fix typo on kamailio-java-modules dependences. (Closes: #736212)
diff --git a/debian/kamailio.init b/debian/kamailio.init
index e8c1765..7c08563 100644
--- a/debian/kamailio.init
+++ b/debian/kamailio.init
@@ -99,7 +99,7 @@ MEMORY=$((`echo $MEMORY | sed -e 's/[^0-9]//g'`))
 if test "$DUMP_CORE" = "yes" ; then
     # set proper ulimit
     ulimit -c unlimited
-    
+
     # directory for the core dump files
     # COREDIR=/home/corefiles
     # [ -d $COREDIR ] || mkdir $COREDIR
@@ -138,18 +138,14 @@ case "$1" in
 	check_kamailio_config
 	create_radius_seqfile
 
-	log_daemon_msg "Restarting $DESC: $NAME"
-	start-stop-daemon --oknodo --stop --quiet --pidfile \
-		$PIDFILE --exec $DAEMON
+	$0 stop
 	sleep 1
-	start-stop-daemon --start --quiet --pidfile \
-		$PIDFILE --exec $DAEMON  -- $OPTIONS
-	log_end_msg 0
+	$0 start
 	;;
   status)
 	log_daemon_msg "Status of $DESC: "
-	
-	status_of_porc "$PIDFILE" $NAME $NAME
+
+	status_of_proc -p"$PIDFILE" $NAME $NAME
 	;;
   *)
 	N=/etc/init.d/$NAME

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/kamailio.git



More information about the Pkg-voip-commits mailing list