summaryrefslogtreecommitdiffstats
path: root/extra/tomcat/tomcat
blob: e5a0c8db5f0947801e575b81d711ac4b696f1673 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
#
# Startup script for the Tomcat server
#
# chkconfig: - 83 53
# description: Starts and stops the Tomcat daemon.
# processname: tomcat
 
# See how we were called.
case $1 in
        start)
 
                export JAVA_HOME=/opt/jdk
                export CLASSPATH=/opt/tomcat/common/lib/servlet-api.jar
                export CLASSPATH=/opt/tomcat/common/lib/jsp-api.jar
                sh /opt/tomcat/bin/startup.sh
        ;;
        stop)
                sh /opt/tomcat/bin/shutdown.sh
        ;;
        restart)
                sh /opt/tomcat/bin/shutdown.sh
                sh /opt/tomcat/bin/startup.sh
        ;;
        *)
                echo "Usage: /etc/init.d/tomcat start|stop|restart"
        ;;
esac
 
exit 0