commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Eckenfels <e...@zusammenkunft.net>
Subject Re: [daemon] Unable to read tomcat.pid 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 <aambati@us.ibm.com>:
> 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
file.pid"). Not sure if any component offers this (might be a good
addition to commons-daemon).

Gruss
Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message