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