anchor.diff:  
     echo -n "Waiting for tomcat-<%= name %> to exit (${SHUTDOWN_WAIT} sec.): "
   
  -  count="0"
  -  until [ "$pid" == "" ] || [ "$count" -gt "$SHUTDOWN_WAIT" ]; do
  +  count=0
  +  until [ "$pid" = "" ] || [ $count -gt $SHUTDOWN_WAIT ]; do
       $SU tomcat -c "$CATALINA_HOME/bin/catalina.sh stop -force" > /dev/null
       findpid
   
       echo -n "."
       sleep 3
  -    let count="${count}+3"
  +    count=$((count+3))
     done
   
     echo ""
   
     if [ "$count" -gt "$SHUTDOWN_WAIT" ]; then
       echo "Forcing tomcat-<%= name %> to stop"
  -    kill -9 $pid && sleep 5
  +    /bin/kill -9 $pid && sleep 5
     fi
   
     # check if tomcat is still around, this will be our exit status
  
positive.code: 
  . /lib/lsb/init-functions
  
  SHUTDOWN_WAIT="30"
  
  export JAVA_HOME=<%= javahome %>
  export CATALINA_HOME=<%= catalinahome %>
  
negative.code:     stop
      RETVAL=$?
  
      if [ "$RETVAL" = 0 ]; then
        log_success_msg "Stopped tomcat-<%= name %>"
      else
        log_failure_msg "Not able to stop tomcat-<%= name %>"
  