tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos <Car...@pbsinet.com>
Subject RE: Starting TOmcat at Bootup
Date Mon, 13 May 2002 13:33:13 GMT
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
carlos@pbsinet.com
Yahoo ID: ramboid_1997


-----Original Message-----
From: Abraham Fathman [mailto:afathman@one.net]
Sent: Saturday, May 11, 2002 1:02 AM
To: 'Tomcat Users List'
Subject: RE: Starting TOmcat at Bootup


Carlos,

http://marc.theaimsgroup.com/?l=tomcat-user&m=102038508912247&w=2

Let me know if that doesn't make sense...

Abe

-----Original Message-----
From: Carlos [mailto:Carlos@pbsinet.com] 
Sent: Friday, May 10, 2002 6:27 PM
To: Tomcat-User (E-mail)
Subject: Starting TOmcat at Bootup


Hi Forum,

How can I start tomcat at bootup?  I have it installed in RedHat 7.x.

Thanks in advance for your answer.
Regards

--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message