March 2013
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

Categories

March 2013
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

Tomcat stop start script for redhat

#Startup script for Tomcat JAVA_HOME=/usr/java/jdk1.6.0_43 export JAVA_HOME start_tomcat=/opt/tomcat6/bin/startup.sh stop_tomcat=/opt/tomcat6/bin/shutdown.sh

start() { echo -n “Starting tomcat:” su -c ${start_tomcat} – tomcat echo “done.” } stop() { echo -n “Shutting down tomcat: “ ${stop_tomcat} echo “done.” }

# See how we were called case “$1” in start) start ;; stop) stop ;; restart) stop sleep 10 start […]