mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2453 - making the loop sh compatible
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1034329 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5ce31fae87
commit
5db81fad9a
|
@ -515,7 +515,8 @@ invoke_stop(){
|
|||
RET="$?"
|
||||
echo -n "INFO: Waiting at least $ACTIVEMQ_KILL_MAXSECONDS seconds for regular process termination of pid '$(cat $ACTIVEMQ_PIDFILE)' : "
|
||||
FOUND="0"
|
||||
for ((i=1; i <= ACTIVEMQ_KILL_MAXSECONDS ; i++));do
|
||||
i=1
|
||||
while [ $i != $ACTIVEMQ_KILL_MAXSECONDS ]; do
|
||||
|
||||
if (! checkStopRunning);then
|
||||
if (! checkRunning); then
|
||||
|
@ -533,6 +534,7 @@ invoke_stop(){
|
|||
FOUND="1"
|
||||
break
|
||||
fi
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
if [ "$FOUND" -ne "1" ];then
|
||||
echo
|
||||
|
|
Loading…
Reference in New Issue