[Pkg-voip-commits] r1136 - stun/trunk/debian

Kilian Krause kilian at costa.debian.org
Fri Jan 6 00:13:02 UTC 2006


Author: kilian
Date: 2006-01-06 00:13:00 +0000 (Fri, 06 Jan 2006)
New Revision: 1136

Modified:
   stun/trunk/debian/init.d
Log:
we let start-stop-daemon background the daemon and care about the PIDfile


Modified: stun/trunk/debian/init.d
===================================================================
--- stun/trunk/debian/init.d	2006-01-04 14:32:33 UTC (rev 1135)
+++ stun/trunk/debian/init.d	2006-01-06 00:13:00 UTC (rev 1136)
@@ -41,14 +41,15 @@
 	DAEMON_USER=nobody
 fi
 
-DAEMON_OPTS="$DAEMON_OPTS -b -h $PRIMARY_IP -a $SECONDARY_IP -p $PRIMARY_PORT -o $SECONDARY_PORT"
+DAEMON_OPTS="$DAEMON_OPTS -h $PRIMARY_IP -a $SECONDARY_IP -p $PRIMARY_PORT -o $SECONDARY_PORT"
 
 set -e
 
 case "$1" in
   start)
 	echo -n "Starting $DESC: "
-	start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
+	start-stop-daemon --start --quiet --background --make-pidfile \
+		--pidfile /var/run/$NAME.pid \
 		--user $DAEMON_USER --exec $DAEMON -- $DAEMON_OPTS
 	echo "$NAME."
 	;;




More information about the Pkg-voip-commits mailing list