There is one in RPM :)

===>

#!/bin/sh
#
# Startup script for Tomcat, the Apache Servlet Engine
#
# chkconfig: 345 80 20
# description: Tomcat is the Apache Servlet Engine
# processname: tomcat
# pidfile: /var/run/tomcat.pid
#
# Gomez Henri <[EMAIL PROTECTED]>
#
# version 1.02 - Removed initlog support
# version 1.03 - Removed config:
# version 1.04 - tomcat will start before httpd and stop after httpd
#
# Source function library.
. /etc/rc.d/init.d/functions

export PATH=$PATH:/opt/IBMJava2-13/bin:/opt/IBMJava2-13/jre/bin
export JAVA_HOME=/opt/IBMJava2-13
export TOMCAT_HOME=/var/tomcat

# See how we were called.
case "$1" in
  start)
        echo -n "Starting tomcat: "
        daemon tomcat start
        echo
        touch /var/lock/subsys/tomcat
        ;;
  stop)
        echo -n "Shutting down tomcat: "
        daemon tomcat stop 
        echo
        rm -f /var/lock/subsys/tomcat
        rm -f /var/run/tomcat.pid
        ;;
  restart)
        $0 stop
        sleep 2
        $0 start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
esac

exit 0

<====


-
Henri Gomez                 ___[_]____
EMAIL : [EMAIL PROTECTED]        (. .)                     
PGP KEY : 697ECEDD    ...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-----Original Message-----
>From: Wolle [mailto:[EMAIL PROTECTED]]
>Sent: Sunday, May 06, 2001 8:30 PM
>To: tomcatUser
>Subject: Linux Startscript 
>
>
>Hello,
>why is there no startscipt integrated in TC ?
>The server should normals run when the server is on.
>If you don't use the mod_jk.conf-auto, it doesn't matter if 
>apache start
>bevor or after tomcat.
>
>Here is a simple Linux start/stop script to insert in /etc/rc.d/init.d
>#!/bin/sh
># description: Start Tomcat 3.2.2b4 for Apache
>
>
>case "$1" in
>'start')
> /usr/local/jakarta-tomcat-3.2.2b4/bin/startup.sh
> touch /var/lock/subsys/tomcat
> ;;
>'stop')
> /usr/local/jakarta-tomcat-3.2.2b4/bin/shutdown.sh
> rm -f /var/lock/subsys/tomcat
> ;;
>*)
> echo "Usage: $0 { start | stop }"
> ;;
>esac
>exit 0
>
>--
>
>
>Greetings,
>Michael
>

Reply via email to