You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Larry Meadors <La...@plumcreek.com> on 2002/08/05 18:13:00 UTC

Re: AW: Tomcat 4.0.4 init.d startup script

I did it this way:

1) added CATALINA_HOME, JAVA_HOME... to 
   /etc/profile
2) added to catalina.sh this line:
   source /etc/profile
3) created a link in /etc/rc3.d 
   to $CATALIA_HOME/bin/catalina.sh 
   named S57tomcat
4) created a link in /etc/rc0.d 
   to $CATALIA_HOME/bin/catalina.sh 
   named K57tomcat
5) created a link in /etc/rc6.d 
   to $CATALIA_HOME/bin/catalina.sh 
   named K57tomcat

Larry

>>> ralph.einfeldt@uptime-isc.de 08/05/02 09:22 AM >>>
As Richard wrote CATALINA_HOME is set in 
/etc/sysconfig/tomcat4.
This file is sourced in the start script.

So that shouldn't cause a problem.

Maybe he sould have a look at 
sh -x /etc/init.d/tomcat4 start
or 
sh -xv /etc/init.d/tomcat4 start

to see where which substitutions happen (or not).

> -----Ursprüngliche Nachricht-----
> Von: Turner, John [mailto:JTurner@AAS.com]
> Gesendet: Montag, 5. August 2002 16:49
> An: 'Tomcat Users List'
> Betreff: RE: Tomcat 4.0.4 init.d startup script 
> 
> How does CATALINA_HOME get set before this script even runs?  

<snip/>

> # Source additional OPTIONS if we have them.
> if [ -f /etc/sysconfig/tomcat4 ] ; then
>     . /etc/sysconfig/tomcat4
> fi

<snip/> 

> Here is my /etc/sysconfig/tomcat4:
> 
> export JAVA_HOME=/usr/java/j2sdk1.4.0
> export CATALINA_BASE=/var/jakarta-tomcat-4.0.4
> export CATALINA_HOME=$CATALINA_BASE

<snip/> 

--
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>