fix initscript

This commit is contained in:
Jan Wagner 2006-11-09 20:59:56 +00:00
parent ed29e94356
commit 15ce237b6c
2 changed files with 4 additions and 2 deletions

4
debian/changelog vendored
View file

@ -1,6 +1,6 @@
dns-flood-detector (1.10-3) UNRELEASED; urgency=low dns-flood-detector (1.10-3) unstable; urgency=low
* NOT RELEASED YET * using killall in init script to get daemon stopped
-- Jan Wagner <waja@localhost> Thu, 9 Nov 2006 20:49:10 +0100 -- Jan Wagner <waja@localhost> Thu, 9 Nov 2006 20:49:10 +0100

2
debian/init.d vendored
View file

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