activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1034329 - /activemq/trunk/assembly/src/release/bin/activemq
Date Fri, 12 Nov 2010 10:09:26 GMT
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



Mime
View raw message