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
|
-- 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: "
|
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
|
||||||
|
|
Loading…
Reference in a new issue