anchor.diff:    pid=$(pgrep -U tomcat -f "^$JAVA_HOME/bin/java.*catalina.base=<%= basedir %>")
   
     # validate output of pgrep
  -  if ! [ "$pid" == "" ] && ! [ "$pid" -gt 0 ]; then
  +  if ! [ "$pid" = "" ] && ! [ "$pid" -gt 0 ]; then
       log_failure_msg "Unable to determine if tomcat-<%= name %> is running"
       exit 1
     fi
  
positive.code:     stop
      RETVAL=$?
  
      if [ "$RETVAL" == 0 ]; then
        log_success_msg "Stopped tomcat-<%= name %>"
      else
        log_failure_msg "Not able to stop tomcat-<%= name %>"
  
negative.code:     start
      RETVAL=$?
  
      if [ "$RETVAL" = 0 ]; then
        log_success_msg "Restarted tomcat-<%= name %>"
      else
        log_failure_msg "Not able to restart tomcat-<%= name %>"
  