use kill instead of killall

This commit is contained in:
Jan Wagner 2007-07-04 13:29:18 +00:00
parent 1198902d3c
commit be6677c807

2
debian/init.d vendored
View file

@ -48,7 +48,7 @@ case "$1" in
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON
killall -9 $NAME
ps aux | grep $NAME | awk '{ print $2 }' | xargs kill -9
sleep 1
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON -- $DAEMON_OPTS