commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernard <...@actrix.gen.nz>
Subject jsvc on Linux: multiple instances possible, why -pidfile?
Date Mon, 14 Feb 2005 11:33:17 GMT
Hi,


I created multiple jsvc instances that did not die.
That happens with the adapted Tomcat5.sh supplied with the Tomcat 5.5
distribution.

That's a problem.

I would appreciate some help in understanding the logic of the pid
file.

This is my view of things; please correct me and help me if I am
wrong:

If, as it is presently the case, jsvc creates a pid file, then it must
not be possible for jsvc to launch a second copy of a service.

jsvc should however be able to briefly run only itself as multiple
instances - it must be allowed to do so in order to check the pid
file. It would not be reliable to pass this responsibility to the OS.

So any jsvc copy on top of the first should exit with an error
condition, and it should not attempt to start the jvm with the server.

If jsvc is NOT designed to block multiple service instances, then it
must not write the PID file. In that case it would be the
responsibility of the script to write the pid file and block multiple
service instances.

What to do?

Many thanks,

Bernard



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


Mime
View raw message