I have both a TOMCAT_HOME and CATALINA_HOME env var.  The TOMCAT var was left over 
from my first try at install and I just kept it around.

I think my problem may lie in the way I'm trying to set permissions for my 'tomcat' 
user.  The user defiantly exists as I'm using it elsewhere but maybe it doesn't have 
rights to be used in the start-up script.  

Incidentally the 'MySQL' user is setup the same as 'tomcat' and neither scripts work 
when replacing the 'noone'.  What specific syntax and lines should I use to set the 
permissions at the shell prompt?

-Dave

-----Original Message-----
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 3:02 PM
To: Tomcat Users List
Subject: Re: Tomcat/ Apache startup



My guess is that Tomcat isn't starting, because the convention is to use 
CATALINA_HOME, not TOMCAT_HOME, which means that

TOMCATHOME=$TOMCAT_HOME

will make TOMCATHOME null.  Unless, of course, you have an environment 
variable called TOMCAT_HOME set somewhere.

Matt (Raible), if you're reading this thread, can you shed some light on 
the scripts for David?

John

On Fri, 6 Jun 2003 14:48:56 -0500, David Nelson <[EMAIL PROTECTED] 
ind.com> wrote:

> Hello John,
>
> Thanks for getting back to me.  Regarding other processes, I'm pretty 
> certain nothing is being started just because I installed Apache, tomcat 
> and MySQL from source removing the apache that comes with RedHat.  
> Previously I started those processes manually at prompt.
>
> Regarding scripts, here's what I have:
> etc/rc.d/init.d/tomcat
> etc/rc.d/init.d/apache
> etc/rc.d/init.d/mysql
>
> here are the scripts:  for credit purposes, these originated at
> http://www.raibledesigns.com/tomcat/boot-howto.html
> #TOMCAT
> #!/bin/bash
> #
> # apache        #
> # chkconfig: # description:   Start up the Tomcat servlet engine.
>
> # Source function library.
> . /etc/init.d/functions
>
> RETVAL=$?
> TOMCATHOME=$TOMCAT_HOME
>
> case "$1" in
> start)
> if [ -f $TOMCATHOME/bin/startup.sh ];
> then
>           echo $"Starting Tomcat"
> /bin/su noone $TOMCATHOME/bin/startup.sh
> fi
>       ;;
> stop)
> if [ -f $TOMCATHOME/bin/shutdown.sh ];
> then
>           echo $"Stopping Tomcat"
> /bin/su noone $TOMCATHOME/bin/shutdown.sh
> fi
>       ;;
> *)
>       echo $"Usage: $0 {start|stop}"
>       exit 1
>       ;;
> esac
>
> exit $RETVAL
>
> <------------------------------------->
> Apache:
> #!/bin/bash
> #
> # apache        #
> # chkconfig: # description:   Start up the Apache web server.
>
> # Source function library.
> . /etc/init.d/functions
>
> RETVAL=$?
> APACHEHOME=$APACHE_HOME
>
> case "$1" in
> start)
>       if [ -f $APACHEHOME/bin/apachectl ]; then
>           echo $"Starting Apache"
> $APACHEHOME/bin/apachectl start
> fi
>       ;;
> stop)
>       if [ -f $APACHEHOME/bin/apachectl ]; then
>           echo $"Stopping Apache"
> $APACHEHOME/bin/apachectl stop
> fi
>       ;;
> *)
>       echo $"Usage: $0 {start|stop}"
>       exit 1
>       ;;
> esac
>
> exit $RETVAL
>
> -----Original Message-----
> From: John Turner [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 06, 2003 2:37 PM
> To: Tomcat Users List
> Subject: Re: Tomcat/ Apache startup
>
>
>
> What is your script trying to do?  Start all of them?  That's not the 
> optimal configuration.
>
> You should really have 3 scripts, one for each.  Start them up in 
> sequence in rc3-5.d.  MySQL, then Tomcat, then Apache.
>
> "Connection refused" generally means that something is already started on 
> that port....do you know which service is returning the connection 
> refused message?
>
> John
>
> On Fri, 6 Jun 2003 14:22:42 -0500, David Nelson <[EMAIL PROTECTED] 
> ind.com> wrote:
>
>> I'm sure this is cake to this list so here goes nothing.
>>
>> I really need some help.  I've followed John Turners install 
>> instructions for tomcat 4.1.18 on RedHat integrating with Apache 2 and 
>> all works like a champ.
>>
>> Unfortunately, now that I'm trying to integrate a startup script for 
>> Tomcat, Apache and MySQL, things aren't going so well.  The app returns 
>> connection refused.  I'm fairly certain the startup scripts are 
>> incorrect.
>>
>> Can someone point me in the right direction here?  I've been to no 
>> telling how many sites and googling and I can not figure this one out.
>>
>> Thanks in advance!
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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


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

Reply via email to