Current File : //etc/rc3.d/S50tomcat
#!/bin/bash
### BEGIN INIT INFO
# Provides:        tomcat8
# Required-Start:  
# Required-Stop:   
# Default-Start:   2 3 4 5
# Default-Stop:    0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin
start() {
 sh /usr/local/tomcat8/bin/startup.sh
}
stop() {
 sh /usr/local/tomcat8/bin/shutdown.sh
}
case $1 in
  start|stop) $1;;
  restart) stop; start;;
esac