Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Tomcat/ Apache startup

John Turner

2003-06-06

Replies:


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 <David.Nelson@(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:tomcat-user@(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 <David.Nelson@(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: tomcat-user-unsubscribe@(protected)
>> For additional commands, e-mail: tomcat-user-help@(protected)
>>
>>
>
>
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.