You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by de...@apache.org on 2010/11/12 11:09:26 UTC
svn commit: r1034329 - /activemq/trunk/assembly/src/release/bin/activemq
Author: dejanb
Date: Fri Nov 12 10:09:26 2010
New Revision: 1034329
URL: http://svn.apache.org/viewvc?rev=1034329&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2453 - making the loop sh compatible
Modified:
activemq/trunk/assembly/src/release/bin/activemq
Modified: activemq/trunk/assembly/src/release/bin/activemq
URL: http://svn.apache.org/viewvc/activemq/trunk/assembly/src/release/bin/activemq?rev=1034329&r1=1034328&r2=1034329&view=diff
==============================================================================
--- activemq/trunk/assembly/src/release/bin/activemq (original)
+++ activemq/trunk/assembly/src/release/bin/activemq Fri Nov 12 10:09:26 2010
@@ -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