I believe that you will need to ensure that either the PATH is set to
include your JDK/JRE or set the JAVA_HOME environment variable to where the
JDK/JDE is located.

  JAVA_HOME = /usr/java/jdk1.3.1; export JAVA_HOME;
or
  PATH=$PATH:/usr/java/jdk1.3.1/bin; export PATH;

Regards,

Todd G. Nist

-----Original Message-----
From: Boris Niyazov [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 1:06 PM
To: [EMAIL PROTECTED]
Subject: Re: apache & tomcat as services under Linux


I'd make tomcat start first and then apache, especialy in case when apache 
relies on tomcat-apache.conf that is updated dynamically by tomcat.  

*********************************************************************
* Boris Niyazov                Ph:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager              Email: [EMAIL PROTECTED]  * 
* Columbia Law School          URL: http://www.law.columbia.edu     *
*********************************************************************




>
>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.
>
>


The information in this electronic mail ("e-mail") message may
be confidential and for use of only the named recipient.  The
information may be protected by privilege, work product immunity
or other applicable law.  If you are not the intended recipient
the retention, dissemination, distribution or copying of this
e-mail message is strictly prohibited.  If you receive this e-mail
message in error please notify us immediately by telephone
at 770-723-1011 or [EMAIL PROTECTED]  Thank you. 


Reply via email to