From: Adam Dickmeiss Date: Tue, 26 Jan 2010 13:23:17 +0000 (+0100) Subject: Dont be so agressive when stopping pazpar2 X-Git-Tag: v1.4.0~162 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=e9b634358fec25ebdeeee0461705469d01c82c77;p=pazpar2-moved-to-github.git Dont be so agressive when stopping pazpar2 Do not resort to killing all pazpar2 processes by PIDs when it terminates happily with a signal sent to the PID. This change will allow us to run multiple Pazpar2 servers using the same binary. --- diff --git a/debian/pazpar2.init b/debian/pazpar2.init index bd51473..73f0b05 100644 --- a/debian/pazpar2.init +++ b/debian/pazpar2.init @@ -71,8 +71,8 @@ do_stop() # that waits for the process to drop all resources that could be # needed by services started subsequently. A last resort is to # sleep for some time. - start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON - [ "$?" = 2 ] && return 2 + #start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + #[ "$?" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE return "$RETVAL"