Take a look at the catalina.sh script in Tomcat. There's an option labelled CATALINA_PID. In Unix/Linux, the PIDfile holds the PID value for the benefit of the system control scripts.
An IDE is no substitute for an Intelligent Developer.
Joined: Jul 02, 2008
Thanks for your reply but the command produced no results. In fact, here is what "ps -axe | grep tomcat" produced ...
ps -ef | grep java produces something a little more interesting ...
I looked at catalina.sh and saw references to CATALINA_PID, but I wasn't able to find anywhere where the variable was exported, and indeed, when I open a shell and run "echo $CATALINA_PID", it comes up empty. Do I need to edit catalina.sh in some way? - Dave
The PID file is located wherever you tell the catalina script to put it. CATALINA_PID is an input variable, not an output. You supply the path/file and tomcat writes its PID number a single line of text to that file.