By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,474 Members | 3,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,474 IT Pros & Developers. It's quick & easy.

Tomcat doesn't start at boot!

P: n/a
Hi, I have upgraded from Tomcat4.0.4 to Tomcat4.1.29 by installing a
binary, not an RPM. It looks OK but it won't start at boot time.
There are no scripts in /etc/rc.d/init.d/ or /etc/init.d/ All I have
is catalina.sh and startup.sh in $TOMCAT_HOME/bin. There is no
tomcat.conf file for this version either. Should I create my own shell
script? What should be in it? Should it just call catalina.sh or
startup.sh? Where should I put this script? Can I copy the script
from a previous version? Or is there anything else I should do?
Thanks in advance.
N.K.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Liza wrote:
Hi, I have upgraded from Tomcat4.0.4 to Tomcat4.1.29 by installing a
binary, not an RPM. It looks OK but it won't start at boot time.
There are no scripts in /etc/rc.d/init.d/ or /etc/init.d/ All I have
is catalina.sh and startup.sh in $TOMCAT_HOME/bin. There is no
tomcat.conf file for this version either. Should I create my own shell
script? What should be in it? Should it just call catalina.sh or
startup.sh? Where should I put this script? Can I copy the script
from a previous version? Or is there anything else I should do?
Thanks in advance.
N.K.


Here's what I use (this is on Solaris, but should be the same kind of
idea)...

# NAME
# tomcat
#
# SYNOPSIS
# tomcat [start|stop]
#
# DESCRIPTION
# Script to start and stop the Tomcat Java application server.
#
################################################## ############################

CATALINA_HOME=/opt/tomcat
TOMCAT_USER=web
JAVA_HOME=/opt/j2sdk

case $1 in
'start')
su - $TOMCAT_USER >/dev/null 2>&1 -c "JAVA_HOME=$JAVA_HOME
CATALINA_HOME=$CATALINA_HOME $CATALINA
_HOME/bin/startup.sh"
;;

'stop')
su - $TOMCAT_USER >/dev/null 2>&1 -c "JAVA_HOME=$JAVA_HOME
CATALINA_HOME=$CATALINA_HOME $CATALINA
_HOME/bin/shutdown.sh"
;;

*)
echo "Usage: $0 { start | stop }"
;;
esac
--
Dave Ockwell-Jenner
Solar Nexus Solutions
http://www.solar-nexus.com/

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.