Tomcat Start Script in /etc/init.d/tomcat

#!/bin/bash

#

# BOTH lines (chkconfig,description) needed for chkconfig command!

# level: start (99=> very late) stop (01=> very early)

# chkconfig: - 99 01

# description: tomcat for vre1

#

# tomcat This shell script takes care of starting and stopping tomcat

#

# set some environment variables

export DIR=/home/tomcat

export IMPLICC=/gpfs_750/projects/IMPLICC

export JAVA_HOME=${IMPLICC}/jdk1.6.0_25

export CATALINA_HOME=${DIR}/apache-tomcat

if [ -d ${HOME} ] ; then

else

fi

prog="tomcat"

start() {

}

stop() {

}

# See how we were called.

case "$1" in

esac

:# adds tomcat to service list

/sbin/chkconfig tomcat on

# adds tomcat to automatic start/stop

/sbin/chkconfig --add tomcat