You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Wynn Ricks <wy...@viva-telecom.com> on 2002/06/11 13:57:03 UTC

Auto Start Tomcat

Can anybody out there please tell me how to AutoStart Tomcat in the background on a RedHat Linux box without having to log in and start the service manually?

Thanks for any help in advance


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Auto Start Tomcat

Posted by Adrian <at...@charter.net>.
Ever heard of cron ?
----- Original Message -----
From: "Wynn Ricks" <wy...@viva-telecom.com>
To: "Tomcat Users List (E-mail)" <to...@jakarta.apache.org>
Sent: Tuesday, June 11, 2002 7:57 AM
Subject: Auto Start Tomcat


Can anybody out there please tell me how to AutoStart Tomcat in the
background on a RedHat Linux box without having to log in and start the
service manually?

Thanks for any help in advance


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Newbie Question: Apache+Tomcat configuration

Posted by Stonix <st...@stonix.com>.
Hi,

I am absolutely newbie on Tomcat.
I have a Linux RH 7.1 box and a Apache 1.3.19 running on it. 
I just installed Tomcat 4.0.3. Seems like it has been successfully 
installed because if test it on 8080 port all the java examples 
running perfect. Now, what have to be done for the rest? I guess 
I need to configure both Tomcat and Apache to have them work 
together. However I don't know where to start from. What I want 
are, the apache should be the primary web server, and only java 
JSP and serverlet will be thrown to Tomcat; and, both servers 
recognize same document directories for those virtual hosts.
If any one out there can give me a brief explaination abou this
or just recomend a article, please give me a hand. Thanks in
advance!

Alex

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Auto Start Tomcat

Posted by Edward Wilson <we...@yahoo.com>.
You should also use chkconfig to setup your scripts.

Two lines of code are required at the top of your
script to make it work with chkconfig.  From here you
can write a shell script which basically mimics
whatever you would normally do at the command prompt.

Use what the previous poster used and modify his
script to suit your environment.

`chkconfig' is one of the better RedHat isums...if you
are using redhat, you should familiarize yourself with
this great tool.

..ed


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Auto Start Tomcat

Posted by Scott Seidl <sm...@worldnet.att.net>.
I have made the following entries in my '/etc/rc.local' file/script.
This file/script is read on boot and will execute the commands listed.

JAVA_HOME='/usr/java/j2sdk1.4.0/'
export JAVA_HOME
echo "Starting Tomcat"
sh /usr/src/jakarta-tomcat-4.0.3-src/dist/bin/catalina.sh start
-security

sleep 5

This was used to start Tomcat 4.0.3.  JAVA_HOME has to be set before
Tomcat is started, otherwise errors are thrown.  Also, I added to sleep
to verify tomcat started.

Scott

-----Original Message-----
From: Wynn Ricks [mailto:wynn@viva-telecom.com] 
Sent: Tuesday, June 11, 2002 6:57 AM
To: Tomcat Users List (E-mail)
Subject: Auto Start Tomcat

Can anybody out there please tell me how to AutoStart Tomcat in the
background on a RedHat Linux box without having to log in and start the
service manually?

Thanks for any help in advance


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Auto Start Tomcat

Posted by FEDERICO MARTIN LARA <i5...@uco.es>.
In S.u.S.E. is done with the rc scripts (/etc/rc.d). Tomcat start when the
system starts.
Probably in Redhat it works of the same form.

Try to copy the rc scripts of S.u.S.E to your RedHat.

More information in www.suse.de

-----Mensaje original-----
De: Wynn Ricks [mailto:wynn@viva-telecom.com]
Enviado el: martes, 11 de junio de 2002 13:57
Para: Tomcat Users List (E-mail)
Asunto: Auto Start Tomcat


Can anybody out there please tell me how to AutoStart Tomcat in the
background on a RedHat Linux box without having to log in and start the
service manually?

Thanks for any help in advance


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>