diff options
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 |
