From: Adam Dickmeiss Date: Mon, 27 Jun 2011 22:23:07 +0000 (+0200) Subject: metaproxy init.d stop: stop by PID only X-Git-Tag: v1.3.14~22 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=c4c8c06091cdee7a042ad9ac75401951d090e94d;p=metaproxy-moved-to-github.git metaproxy init.d stop: stop by PID only In some cases the name of the metaproxy will be lt-metaproxy . This is if metaproxy is using shared libraries and is not installed. Omitting name option from start-stop-daemon will make it stop based on the PID file only. --- diff --git a/debian/metaproxy.init b/debian/metaproxy.init index 0fb2f26..0f36bdd 100644 --- a/debian/metaproxy.init +++ b/debian/metaproxy.init @@ -61,7 +61,7 @@ do_stop() # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred - start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks