Hello:
If you edit shutdown.sh you will see it calls catalina.sh with the parameters you pass to shutdown.
You can try with:
to force stop tomcat if it doesn't stop in 5 seconds.
To know if the instance is running, you can configure the variable CATALINA_PID.
It's recommned to create a file in called
$CATALINA_BASE/bin/setenv.sh (and set +x permission) where you define the variables:
Example:
Quote:
export ANT_HOME=/opt/ant
export JAVA_HOME=/opt/java6
export JAVA_OPTS="-XX:PermSize=128m -XX:MaxPermSize=256m"
export CATALINA_HOME="/opt/tomcat6"
export CATALINA_BASE="$CATALINA_BASE"
export CATALINA_TMPDIR=$CATALINA_BASE/temp
export CATALINA_PID="$CATALINA_HOME/run/tomcat6-instance1"
|
The setenv.sh is read automatically when starting and stopping tomcat.
You will have to create the $CATALINA_HOME/run directory.
If you want to know if tomcat is up,
will list the instances which are up.