From: Adam Dickmeiss Date: Wed, 4 Jul 2012 12:06:33 +0000 (+0200) Subject: Wait for MP to terminate on SIGUSR1 in Deb init.d X-Git-Tag: v1.3.38~2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=48b98b7ec52fcbcf8f8d8259566745d509e56b7b;p=metaproxy-moved-to-github.git Wait for MP to terminate on SIGUSR1 in Deb init.d --- diff --git a/debian/metaproxy.init b/debian/metaproxy.init index 3f19eee..d5bc7d0 100644 --- a/debian/metaproxy.init +++ b/debian/metaproxy.init @@ -89,7 +89,7 @@ do_reload() { # restarting (for example, when it is sent a SIGHUP), # then implement that here. # - start-stop-daemon --stop --signal USR1 --quiet --pidfile $PIDFILE --name $NAME + start-stop-daemon --stop --signal USR1 --quiet --retry=5 --pidfile $PIDFILE --name $NAME RETVAL="$?" # Return if daemon could not be stopped [ "$RETVAL" = 2 ] && return 2