Postby ScalixSupport » Sun Nov 27, 2005 1:30 pm
Hi,
In the admin_resource_kit directory you will find a file called tomcat. If you edit that file you will see the following instructions to make Tomcat run as a service...
# (1) log in as root
# (2) copy this script to /etc/rc.d/init.d
# (3) enter "chmod 755 /etc/rc.d/init.d/tomcat"
# (4) edit the script using vi or your favorite editor and ensure that CATALINA_HOME points
# to the location of your Tomcat directory
# (5) enter "chkconfig --add tomcat"
# (6) enter "chkconfig --level 345 tomcat on" to enable Tomcat in run levels
# 3, 4 and 5.
#
# Tomcat will now be configured to start as a system service when the
# machine boots.
#
# (7) enter "service tomcat start" to manually start Tomcat and
# "service tomcat stop" to manually stop Tomcat.
#
# This script has been tested on Redhat Enterprise Linux 3.0
#
###### !! PLEASE CHANGE THE FOLLOWING LINE TO MATCH YOUR ENVIRONMENT !! ######
CATALINA_HOME=/home/jakarta-tomcat-5.0.28; export CATALINA_HOME
###### !! YOU SHOULD NOT NEED TO CHANGE ANYTHING BELOW HERE !! ######
Thanks,
Don