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="$?"
|
RET="$?"
|
||||||
echo -n "INFO: Waiting at least $ACTIVEMQ_KILL_MAXSECONDS seconds for regular process termination of pid '$(cat $ACTIVEMQ_PIDFILE)' : "
|
echo -n "INFO: Waiting at least $ACTIVEMQ_KILL_MAXSECONDS seconds for regular process termination of pid '$(cat $ACTIVEMQ_PIDFILE)' : "
|
||||||
FOUND="0"
|
FOUND="0"
|
||||||
for ((i=1; i <= ACTIVEMQ_KILL_MAXSECONDS ; i++));do
|
i=1
|
||||||
|
while [ $i != $ACTIVEMQ_KILL_MAXSECONDS ]; do
|
||||||
|
|
||||||
if (! checkStopRunning);then
|
if (! checkStopRunning);then
|
||||||
if (! checkRunning); then
|
if (! checkRunning); then
|
||||||
|
@ -533,6 +534,7 @@ invoke_stop(){
|
||||||
FOUND="1"
|
FOUND="1"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
i=`expr $i + 1`
|
||||||
done
|
done
|
||||||
if [ "$FOUND" -ne "1" ];then
|
if [ "$FOUND" -ne "1" ];then
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in New Issue