From c4c8c06091cdee7a042ad9ac75401951d090e94d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 28 Jun 2011 00:23:07 +0200 Subject: [PATCH] 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. --- debian/metaproxy.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.4