fix init script

This commit is contained in:
Jan Wagner 2006-11-09 21:38:39 +00:00
parent 1a12cc2ee6
commit 2e5faaf8b7

4
debian/init.d vendored
View file

@ -41,14 +41,14 @@ case "$1" in
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON
killall $NAME
killall -9 $NAME
echo "$NAME."
;;
restart|force-reload)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON
killall $NAME
killall -9 $NAME
sleep 1
start-stop-daemon --start --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS