From 6d035656985861bec426e80b86a08b5e9c2c77ec Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Wed, 4 Jul 2007 13:47:16 +0000 Subject: [PATCH] replace killall with kill --- debian/init.d | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/init.d b/debian/init.d index ed5806e..202081c 100644 --- a/debian/init.d +++ b/debian/init.d @@ -39,15 +39,15 @@ case "$1" in ;; stop) echo -n "Stopping $DESC: " - start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ - --exec $DAEMON - killall -9 $NAME + #start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ + # --exec $DAEMON + ps aux | grep $NAME | awk '{ print $2 }' | xargs kill -9 echo "$NAME." ;; restart|force-reload) echo -n "Restarting $DESC: " - start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ - --exec $DAEMON + #start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ + # --exec $DAEMON ps aux | grep $NAME | awk '{ print $2 }' | xargs kill -9 sleep 1 start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \