#!/bin/bash
# chkconfig: 345 99 01
# description: startup script for Tomcat8
export CATALINA_HOME=/opt/Tomcat
PATH=/sbin:/bin:/usr/sbin:/usr/bin
start() {
sh $CATALINA_HOME/bin/startup.sh
}
stop() {
sh $CATALINA_HOME/bin/shutdown.sh
}
case $1 in
start|stop) $1;;
restart) stop; start;;
*) echo “Run as $0 “; exit 1;;
esac
# chkconfig: 345 99 01
# description: startup script for Tomcat8
export CATALINA_HOME=/opt/Tomcat
PATH=/sbin:/bin:/usr/sbin:/usr/bin
start() {
sh $CATALINA_HOME/bin/startup.sh
}
stop() {
sh $CATALINA_HOME/bin/shutdown.sh
}
case $1 in
start|stop) $1;;
restart) stop; start;;
*) echo “Run as $0 “; exit 1;;
esac
Add/create this in /etc/init.d/tomcat8