Antoni,
your help is really much precious.

Thanks,
Pier Paolo.

----- Original Message -----
From: "Antoni Reus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 20, 2001 4:47 PM
Subject: Re: apache & tomcat as services under Linux


> 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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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.
>

Reply via email to