running as non-root/auto mode?

2001-01-30 Thread Joe Laffey

What is the easiest way to have tomcat startup at boottime running as user
www?

Also, can we now use the non-manual auto-startup mode that worked with
ApacheJServ1.0? (Where Java starts up automagically)??

Thx,

Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: running as non-root/auto mode?

2001-01-30 Thread Geoff Lane

I wrote a shell script that sets environment variables and then called
the tomcat start script. This works well. Then you just need to put it
in /etc/init.d/ and make the symbolic links from the appropriate run
levels.

You can make tomcat run as a non-root user, but only if you want to have
it listen on ports above 1024. It has to run as root to bind to port 80
and doesn't have the ability (like Apache) to change user after the
binding takes place.

You can do something like: su - www -c 'command'
to get it to run as a non-root user in a startup script (with GNU su at
least, I don't think the BSD version has the -c switch).


Joe Laffey wrote:
 
 What is the easiest way to have tomcat startup at boottime running as user
 www?
 
 Also, can we now use the non-manual auto-startup mode that worked with
 ApacheJServ1.0? (Where Java starts up automagically)??
 
 Thx,
 
 Joe Laffey
 LAFFEY Computer Imaging
 St. Louis, MO
 -
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-- 

Geoff Lane [EMAIL PROTECTED]
(650) 969-5000 x104

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]