I'm migrating a 5.5 version of tomcat.  Whoever set this up in the first place, 
modified catalina.sh to make every stop a force.  Here's the modified stop 
section of catalina.sh.

#  Force a shutdown every time.
#  if [ $FORCE -eq 1 ]; then
    if [ ! -z "$CATALINA_PID" ]; then
       echo "Killing: `cat $CATALINA_PID`"
       kill -9 `cat $CATALINA_PID`
       rm $CATALINA_PID
    else
       echo "Kill failed: \$CATALINA_PID not set"
    fi
#  fi

I'm hoping to remove this completely during the modification.  But I'd like to 
make a best effort attempt to understand why someone would have done this.  
Does anyone know of any common reasons, or, shall we say, valid reasons for 
making this modification?

Reply via email to