I am facing some issues regarding tomcat startup and shutdown.
I am using
Dont use /etc/bash.bashrc just put this on your catalina.sh
After:
if [ -r "$CATALINA_BASE"/bin/setenv.sh ]; then
. "$CATALINA_BASE"/bin/setenv.sh
elif [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then
. "$CATALINA_HOME"/bin/setenv.sh
fi
put this:
export CATALINA_PID="$CATALINA_HOME/catalina_pid.txt"
And now your tomcat will be killed when you use catalina.sh stop -force