Any idea wht's going wrong here. Please let me know how to start and stop
this server like we do for other daemons. e.g
/etc/init.d/httpd start
/etc/init.d/httpd stop
etc.

Any help is appreciated.
Thank you.
-suman

if you installed tomcat through the repositories , you should have got a start-stop script as /etc/init.d/tomcat5.5 if you have compiled and installed tomcat, you can make the above file like this :(this is for java1.6 and tomcat6,adjust the parameters).

export JAVA_HOME=/usr/lib/jvm/java-6-sun
case $1 in
start)
        sh /usr/local/apache-tomcat-6.0.14/bin/startup.sh;;
stop)
        sh /usr/local/apache-tomcat-6.0.14/bin/shutdown.sh;;
restart)
sh /usr/local/apache-tomcat-6.0.14/bin/shutdown.sh&& sleep 5 && sh /usr/local/apache-tomcat-6.0.14/bin/startup.sh;;
esac
exit 0


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to