I am facing some issues regarding tomcat startup and shutdown.
I am using
I think the officially recommended way (according to catalina.sh inline comments) is:
#!/bin/sh
CATALINA_PID="$CATALINA_HOME/logs/catalina.pid"; export CATALINA_PID
chmod u+x setenv.sh
touch $CATALINA_HOME/logs/catalina.pid