Seleccionar página

# Tomcat
#
# chkconfig: 3 80 20
# description:  Start up the Tomcat servlet engine.

# Source function library.
. /etc/init.d/functions


RETVAL=$?
TOMCATHOME=/opt/java/jakarta-tomcat

case "$1" in
 start)
        if [ -f $TOMCATHOME/bin/startup.sh ];
          then
            echo $"Starting Tomcat"
            $TOMCATHOME/bin/startup.sh
        fi
        ;;
 stop)
        if [ -f $TOMCATHOME/bin/shutdown.sh ];
          then
            echo $"Stopping Tomcat"
            $TOMCATHOME/bin/shutdown.sh
        fi
        ;;
 *)
        echo $"Usage: $0 {start|stop}"
        exit 1
        ;;
esac

exit $RETVAL