diff options
| author | Marnie McCormack <marnie@apache.org> | 2008-11-07 13:53:25 +0000 |
|---|---|---|
| committer | Marnie McCormack <marnie@apache.org> | 2008-11-07 13:53:25 +0000 |
| commit | 0e0d76bedfb1f369ab0a71a62c931c13d66e0b7e (patch) | |
| tree | 2c465631681a5b72a4d8e05ff74600cfaa1cfdae /qpid/java | |
| parent | 704a2ec4214dddc85517b66811f22e7fa9cb38a8 (diff) | |
| download | qpid-python-0e0d76bedfb1f369ab0a71a62c931c13d66e0b7e.tar.gz | |
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@712126 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
| -rwxr-xr-x | qpid/java/broker/bin/qpid.stop | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/java/broker/bin/qpid.stop b/qpid/java/broker/bin/qpid.stop index 5c2d6f9421..316f8dff46 100755 --- a/qpid/java/broker/bin/qpid.stop +++ b/qpid/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 |
