commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: [DAEMON] Need to get some patches committed
Date Wed, 14 Jan 2009 04:31:28 GMT

"Mark Thomas" <> wrote in message 
>> From: Siegfried Goeschl []
>> Hi Mark,
>> just a quick note - since I started the processes without "su" they did
>> not start tomcat. Okay, that is expectet but the process were still
>> running in the background - so this could be an issue ....
>Hmm. That doesn't look ideal. When I try and start jsvc for Tomcat (using 
> with a non-root user I 
>get the following in catalina.err:
>13/01/2009 12:48:05 287 jsvc error: Cannot open PID file /var/run/, 
>PID is 287
>13/01/2009 12:48:05 286 jsvc error: Service exit with a return value of 255

This is just saying that your user doesn't have write permission to 
/var/run.  Nothing really interesting here.  Just change the PID_FILE in the 
script to point to someplace your user has write permission.

That having been said, the use-case for running jsvc as any other user than 
root is pretty minimal.  About the only thing you get is that people with 
login access to the machine can't shut down Tomcat (and if black-hats have 
login access, you have way bigger problems).  The jsvc daemon's main reason 
for existing is to allow Tomcat to bind to a privileged port (e.g. 80,443) 
and then lose it's privileged status before it handles requests.

>Is there anything useful in your catalina.err file?
>If there is a bug here then we'll treat it as a new issue.

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

View raw message