Change catalina.pid location for tomcat

"catalina.pid" is not in the "tomcat / bin" folders where it should be, and it is not created there at the time tomcat starts. The question is how (where) can I redefine the path to "catalina.pid" to make it be created in the right folder.

Thanks in advance,

+3
tomcat catalina
Jul 21 '13 at 21:25
source share
1 answer

Depending on the installation of tomcat, I saw cases where the catalina.pid parameter is not defined. In this case, turn off tomcat and define it yourself:

In tomcat / bin / setenv.sh add this line:

CATALINA_PID="$CATALINA_BASE/bin/catalina.pid"

or for windows (in setenv.bat): set CATALINA_PID=%CATALINA_HOME%/bin/catalina.pid

This will detect and create the pid file in the tomcat / bin folder if your CATALINA_HOME is defined as your tomcat folder. However, you can also change the location of the pid file by simply changing the path above.

+9
Feb 25 '14 at 17:05
source share



All Articles