fix initscript
This commit is contained in:
parent
ed29e94356
commit
15ce237b6c
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
2
debian/init.d
vendored
2
debian/init.d
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue