#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 […]
Recent Comments