From 897cdd6405ed312afb0a1649ba1c80f7011279e8 Mon Sep 17 00:00:00 2001 From: Marnie McCormack Date: Fri, 7 Nov 2008 13:53:25 +0000 Subject: QPID-961 fix for attempt not set back to 0 before forcequit loop, highlighted by failure to stop on cc box git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@712126 13f79535-47bb-0310-9956-ffa450edef68 --- java/broker/bin/qpid.stop | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'java') diff --git a/java/broker/bin/qpid.stop b/java/broker/bin/qpid.stop index 5c2d6f9421..316f8dff46 100755 --- a/java/broker/bin/qpid.stop +++ b/java/broker/bin/qpid.stop @@ -23,7 +23,7 @@ # Script checks for a given pid running DEFAULT_SEARCH and attempts to quit it # -MAX_ATTEMPTS=1 +MAX_ATTEMPTS=2 SLEEP_DELAY=1 DEFAULT_SEARCH="PNAME=QPBRKR" @@ -136,6 +136,7 @@ if [[ $[$result] == 0 ]] ; then echo "Process quit" else + attempt=0 # Now attempt to force quit the process while [[ $[$result] > 0 && $[$attempt] < $[$MAX_ATTEMPTS] ]] ; do forceQuit $brokerspid -- cgit v1.2.1