tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Baker <raschar...@yahoo.com>
Subject Re: apache & tomcat as services under Linux
Date Wed, 20 Jun 2001 15:06:38 GMT
I thought tomcat need to start first? Or is that only
when using the generated mod_jk.conf?

--- Antoni Reus <areus@ibit.org> wrote:
> Hi,
> 
> You should create a script with something like
> and put it on  /etc/rc.d/init.d/
> 
> ------------ cut here-------------------
> #!/bin/sh
> 
> # Set this as you have it in your sistem
> APACHE_HOME=/usr/local/apache
> TOMCAT_HOME=/usr/local/jakarta/tomcat
> 
> # Test apachectl
> if [ ! -x $APACHE_HOME/bin/apachectl ]
> then
>     echo apachectl not found
>     exit
> fi
> 
> # Test tomcat.sh
> if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ]
> then
>    echo tomcat not found
>    exit
> fi
> 
> case $1 in
> start)
> ## Start services
> $APACHE_HOME/bin/apachectl start
> $TOMCAT_HOME/bin/startup.sh
> ;;
> stop)
> $TOMCAT_HOME/bin/shutdown.sh
> $APACHE_HOME/bin/apachectl stop
> ;;
> esac
> -----------------cut here ----------------------
> 
> name it "apache-tomcat" and give it execution
> permissions
> with
> chmod u+x  apache-tomcat
> 
> Then with control-panel you can link it to the
> run-level 3
> or you can make it directly with
> 
> # Start in run level 3
> cd /etc/rc.d/rc3.d
> ln -s ../init.d/apache-tomcat S99apache-tomcat
> 
> # Stop
> cd ../rc0.d
> ln -s ../init.d/apache-tomcat K11apache-tomcat
> 
> 
> Saludos,
> 
> -- Antoni Reus
> 
> ----- Original Message -----
> From: "Pier Paolo Bortone"
> <pierpaolo.bortone@netengineering.it>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Wednesday, June 20, 2001 2:15 PM
> Subject: apache & tomcat as services under Linux
> 
> 
> Hi,
> I need to start to use apache &  tomcat in a
> production environment, thus I
> need to start them as services.
> 
> I'm using RedHat 7.1, someone knows which scripts I
> have to put in rc3.d.
> 
> Thanks for your time.
> 
> Pier Paolo.
> 
> 


=====
-
rascharles@yahoo.com
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Mime
View raw message