tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <>
Subject Re: jsvc creates pid file owned by root
Date Thu, 10 Apr 2008 11:52:23 GMT
Well ... here's the problem.  jsvc needs that pid file to shutdown 
tomcat.  It would be a real PITA if some user or script were to muck 
around and damage or delete that file. 

Having said that, most *nix systems have a sticky bit ability to force 
permissions on newly created files in specific folders.  Or you could 
modify your service script to chmod the pid file on startup.


Gunnar Boström wrote:

>I can start and stop Tomcat 5.5 with the jsvc program but the problem is
>that the pid file is created with permissions 600 and owned by root.
>I want to be able to read the pid file to check if the Tomcat process is up
>and running 
>and also for other purposes.
>Is it possible to make the pid file be owned by the user that runs Tomcat or
>have the permissions to be set to 666?

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

View raw message