Fix shutdown on init.d scripts

This commit is contained in:
Ron Pedde 2004-04-06 21:28:11 +00:00
parent ffff21d118
commit 7069d32aea
2 changed files with 4 additions and 2 deletions

View File

@ -22,7 +22,9 @@ start() {
stop() {
echo -n $"Shutting down DAAP server: "
killproc mt-daapd
# This is broken.
killall -INT mt-daapd
# killproc mt-daapd
RETVAL=$?
echo

2
debian/init.d vendored
View File

@ -36,7 +36,7 @@ case "$1" in
#start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
# --exec $DAEMON
# XXX FIXME This shouldn't be a killall!
killall mt-daapd || true
killall -INT mt-daapd || true
echo "$NAME."
;;
#reload)