tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <>
Subject Re: Can Tomcat set its pid in a file?
Date Thu, 10 Apr 2008 17:12:16 GMT
You could use jsvc instead of the shell scripts.


fredk2 wrote:

>Currently the pid file is set when you run (unix/linux)
>      if [ ! -z "$CATALINA_PID" ]; then
>        echo $! > $CATALINA_PID
>      fi
>In some situation (when using sudo, su, catalina.out piped to a log rotation
>program) it is harder and possibly prone to error to get the right pid - $!
>might not be the pid of the JVM.
>Apache httpd sets the pid file and cleans it up .... Is there a simple
>way/sample to have Tomcat set the pid file during its bootstrap and not the
>startup shell script ? 

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message