I've created my own init script, doctored from the original apache one or
something.

chkconfig tomcat on

Check your paths etc. It's a little messy, but hell, it works.

|-----Original Message-----
|From: Carlos [mailto:[EMAIL PROTECTED]]
|Sent: Wednesday, 15 May 2002 22:29
|To: 'Tomcat Users List'
|Subject: RE: Starting TOmcat at Bootup
|
|
|Hi Jonny,
|
|Try adding it via WebAdmin.  Go to Bootup and Shutdown --> Create a new
|bootup or shutdown action.  In the Create Action screen create the
|action called tomcat wiith the script that I sent.  Webadmin adds it to
|the right folder and presto.  You can test the script right from the
|Create Action screen.
|
|Hope this helps.
|Regards,
|
|Carlos Oliva
|Senior Programmer/Analyst
|Positive Business Solutions, Inc.
|Cincinnati, OH 45240-1640
|(513) 772 - 2255 ext 129
|[EMAIL PROTECTED]
|Yahoo ID: ramboid_1997
|
|
|-----Original Message-----
|From: Johnny [mailto:[EMAIL PROTECTED]]
|Sent: Tuesday, May 14, 2002 3:00 AM
|To: Tomcat Users List
|Subject: RE: Starting TOmcat at Bootup
|
|
|
| Hi Carlos,
|
| In my Redhat v7.2 machine, I added the "tomcat" bootup file (followed
|your
|script) inside "init.d" folder, but it's still not working. Did I miss
|out
|something?
|
| Johnny.
|
|-----Original Message-----
|From: Carlos [mailto:[EMAIL PROTECTED]]
|Sent: Monday, May 13, 2002 9:33 PM
|To: 'Tomcat Users List'
|Subject: RE: Starting TOmcat at Bootup
|
|
|Hi Abraham,
|
|I am using a script that is very similar to one that I found in earlier
|postings of this forum.  I created it with the webadmin, named it
|tomcat, and it installed n init.d.  It seem to start tomcat well in
|Linux RedHat v7.x.  I did not link it to the user tomcat like the
|postings of your e-mail suggest.
|
|Anyways, I would appreciate any comments about the script that follows:
|
|
|#!/bin/sh
|# description: Starting Tomcat at bootup
|# chkconfig: 2345 99 00
|#
|
|# Source function library
|. /etc/rc.d/init.d/functions
|
|# See how we are called
|case "$1" in
|start)
|       echo -n "Starting tomcat: "
|       export JAVA_HOME=/opt/IBMJava2-131
|
|        export CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.1
|
|       /usr/local/jakarta-tomcat-4.0.1/bin/startup.sh
|
|       echo
|       touch /var/lock/subsys/tomcat
|       ;;
|stop)
|       echo -n "Shutting down tomcat: "
|
|       export JAVA_HOME=/opt/IBMJava2-131
|        export CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.1
|
|       /usr/local/jakarta-tomcat-4.0.1/bin/shutdown.sh
|       rm -f /var/lock/subsys/tomcat
|       ;;
|restart)
|        $0 stop
|        $0 start
|        ;;
|*)
|       echo "Usage: $0 { start | stop|restart|reload|status }"
|        exit 1
|       ;;
|esac
|exit 0
|
|Carlos Oliva
|Senior Programmer/Analyst
|Positive Business Solutions, Inc.
|Cincinnati, OH 45240-1640
|(513) 772 - 2255 ext 129
|[EMAIL PROTECTED]
|Yahoo ID: ramboid_1997
|
|
|
|--
|To unsubscribe, e-mail:
|<mailto:[EMAIL PROTECTED]>
|For additional commands, e-mail:
|<mailto:[EMAIL PROTECTED]>
|
|--
|To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

Attachment: tomcat
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to