You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ma...@apache.org on 2008/11/07 14:53:34 UTC
svn commit: r712126 - /incubator/qpid/trunk/qpid/java/broker/bin/qpid.stop
Author: marnie
Date: Fri Nov 7 05:53:25 2008
New Revision: 712126
URL: http://svn.apache.org/viewvc?rev=712126&view=rev
Log:
QPID-961 fix for attempt not set back to 0 before forcequit loop, highlighted by failure to stop on cc box
Modified:
incubator/qpid/trunk/qpid/java/broker/bin/qpid.stop
Modified: incubator/qpid/trunk/qpid/java/broker/bin/qpid.stop
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/broker/bin/qpid.stop?rev=712126&r1=712125&r2=712126&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/java/broker/bin/qpid.stop (original)
+++ incubator/qpid/trunk/qpid/java/broker/bin/qpid.stop Fri Nov 7 05:53:25 2008
@@ -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 @@
echo "Process quit"
else
+ attempt=0
# Now attempt to force quit the process
while [[ $[$result] > 0 && $[$attempt] < $[$MAX_ATTEMPTS] ]] ; do
forceQuit $brokerspid