Hi Sergey, you can use "sudo -u tomcat /path-to-the-dist-dir/bin/startup.sh" to start the instance up as another user. However, this restricts the ports to above 1024, because other than apache, tomcat does not have the feature to start up as root, gain the socket for port 80 and change the user afterwards.
What sort of linux do you use? On redhat, you could write a sh script, put it into /etc/init.d and link from the appropriate runlevel /etc/rc.d/rc3.d to have it called. Don't forget to set the classpath and path appropriate. Cheers, Mika ----- Original Message ----- From: "Sergey Snovsky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 20, 2001 7:56 PM Subject: Tomcat on Linux Hello! I'd like to ask some advice on how to best run Tomcat on Linux -- how can I make Tomcat start at the init time (possibly using chkconfig or something similar) and how do I make Tomkat run as the Tomcat user/group -- what files under Tomcat distribution should be owned by whom? Thank you very much for any help! Sergey -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
