commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Eckenfels <>
Subject Re: [daemon] Unable to read file created by Tomcat process
Date Wed, 12 Nov 2014 00:44:40 GMT
Am Tue, 11 Nov 2014 00:09:57 -0500
schrieb Anil Ambati <>:
> Why does the Tomcat server keep the PID file locked, preventing other 
> processes to even read the file? Is there a work around or solution
> for this problem?

I think the reason for that is, that you can this way detect if the
process is still running: if it is locked, then it is running.

Of course this makes it hard to read the file. To work around this I
guess a native library is needed. (Or you execute "cmd /C type"). Not sure if any component offers this (might be a good
addition to commons-daemon).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message