case $1 in start) sh /opt/apache-tomcat-6.0.16/bin/startup.sh ;; stop) sh /opt/apache-tomcat-6.0.16/bin/shutdown.sh ;; restart) sh /opt/apache-tomcat-6.0.16/bin/shutdown.sh sh /opt/apache-tomcat-6.0.16/bin/startup.sh ;; *) echo 'Usage:tomcat start|stop|restart' ;; esac