tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AC <>
Subject RE: Tomcat Unix autostart
Date Mon, 11 Dec 2000 13:48:58 GMT
This is the script I use for FreeBsd. As you can see I use some external 
classpath for my web-applications. Also you have to set your java_home and 
tomcat_home because you don't set it until you logon to the system (for 
instance in your csh.cshrc file for tcsh shell). That's why, maybe, tomcat 
starts if you log in to the system......
In the if you don't set java_home, it uses the command which that 
it's useless if you don't set the path for your binaries...


#jdk1.2.2  nativo

#jdk1.2.2 linux
#setenv CLASSPATH 

#jdk1.1.8 nativo
#setenv CLASSPATH 

#setenv JAVA_HOME /usr/local/linux-jdk1.2.2
setenv JAVA_HOME /usr/local/jdk1.2.2
#setenv JAVA_HOME /usr/local/jdk1.1.8

setenv TOMCAT_HOME /usr/local/tomcat32
#setenv JAVA_COMPILER tya

export JAVA_HOME

      $TOMCAT_HOME/bin/  > /dev/null && echo -n ' Tomcat32'

At 12.50 11/12/2000 +0100, you wrote:
>When the startup-script is run at server-boot-time, tomcat starts
>(errors.log is created & filled normaly) but immediately afterwards tomcat
>is killed.
>This we can see at the server's display when booting the machine.
>When the machine has finished booting and the script is run from the
>command-line-prompt, tomcat runs fine.
>Could this be related to any rights, paths, special cases, etc when the
>script is run at boot-time? Which settings/environment variables should I
>look at?
>The CLASSPATH-variable is set in
>The order of booting doesn't seem to be the problem. First apache then
>tomcat or vice versa, makes no difference.
>Apache starting with the boot-script works fine.
>Mario Beekwilder
>CMG - TP Maastricht
>-----Original Message-----
>From: AC []
>Sent: maandag 11 december 2000 8:58
>Subject: Re: Tomcat Unix autostart
>Tomcat should start after Apache during reboot. Also remember to set your
>classpath in the startup script.
>At 08.44 11/12/2000 +0100, you wrote:
> >Hi,
> >I'm trying to start Tomcat whith rebooting a Unix machine.
> >Tomcat seems to start for a moment and then dissappears.
> >I have a startup script in /sbin/rc3.d
> >I'm using an Alpha1000 with Tru64 unix 4.0D
> >Who can help me.
> >
> >Regards,
> >Jan Stevens
> >Software Developer
> >CMG Maastricht B.V. -Telecom Products
> >*       Adelbert van Scharnlaan 170A            *       043 - 6018185
> >         6224 JX Maastricht                                      *
> >- 6018169
> >*

View raw message