Skip to content

Instantly share code, notes, and snippets.

@atushi
Last active December 21, 2015 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atushi/6315474 to your computer and use it in GitHub Desktop.
Save atushi/6315474 to your computer and use it in GitHub Desktop.
How to create the Tomcat pid file.

How to create the Tomcat pid file.

You can easily to create the pid file by the CATALINA_PID which is catalina.sh supports it.

e.g ~/.bashrc
export CATALINA_PID=/usr/local/tomcat/tomcat.pid

Run the tomcat with to create the pid file.

> ./startup.sh
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME:        /usr/local/jdk1.7
Using CLASSPATH:       /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Using CATALINA_PID:    /usr/local/tomcat/tomcat.pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment