From 15ce237b6c28c3e4a83c2431fe99caad4cfa710d Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Thu, 9 Nov 2006 20:59:56 +0000 Subject: [PATCH] fix initscript --- debian/changelog | 4 ++-- debian/init.d | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index b65507d..4e67d67 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 9 Nov 2006 20:49:10 +0100 diff --git a/debian/init.d b/debian/init.d index 38a1226..10f4a8e 100644 --- a/debian/init.d +++ b/debian/init.d @@ -41,12 +41,14 @@ case "$1" in echo -n "Stopping $DESC: " start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ --exec $DAEMON + killall $NAME echo "$NAME." ;; restart|force-reload) echo -n "Restarting $DESC: " start-stop-daemon --stop --quiet --pidfile \ /var/run/$NAME.pid --exec $DAEMON + killall $NAME sleep 1 start-stop-daemon --start --quiet --pidfile \ /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS