opt/apache-tomcat/tomcat

24 lines
468 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
#!/bin/sh
#
# /etc/rc.d/tomcat: start/stop jakarta tomcat servlet container
#
case "$1" in
start)
su - tomcat -c /usr/lib/tomcat/bin/startup.sh
2006-02-23 16:26:10 +01:00
;;
stop)
su - tomcat -c /usr/lib/tomcat/bin/shutdown.sh
2006-02-23 16:26:10 +01:00
;;
restart)
su - tomcat -c /usr/lib/tomcat/bin/shutdown.sh
sleep 4
su - tomcat -c /usr/lib/tomcat/bin/startup.sh
2006-02-23 16:26:10 +01:00
;;
*)
echo "usage: $0 start|stop|restart"
;;
esac
# End of file