do this
(ie a better startup script) please let me know.
regards,
Kenneth Westelinck
>From: Peter Bernard West <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Starting Tomcat in Apache
>Date: Sun, 18 Mar 2001 13:58:02 +1000
>
's own and then bring in the startup script. If
> > you have a workaround, please let me know.
> >
> > thanks,
> >
> > Kenneth Westelinck
> >
> > >From: Peter Bernard West Reply-To: [EMAIL PROTECTED] To:
> > >[EMAIL PROTECTED] Subject: Re
27;s own and then bring in the startup script. If
> you have a workaround, please let me know.
>
> thanks,
>
> Kenneth Westelinck
>
> >From: Peter Bernard West Reply-To: [EMAIL PROTECTED] To:
> >[EMAIL PROTECTED] Subject: Re: Starting Tomcat in Apache Date:
> >Fri,
PROTECTED] To:
>[EMAIL PROTECTED] Subject: Re: Starting Tomcat in Apache Date:
>Fri, 16 Mar 2001 12:17:13 +1000
>
>In Windows, does a batch script exit if any of the commands fails? If it
>does not, the script will hang if startup.bat fails, or fails to produce
>mod_jk.conf-auto
In Windows, does a batch script exit if any of the commands fails? If
it does not, the script will hang if startup.bat fails, or fails to
produce mod_jk.conf-auto.
Peter
Steve Prior wrote:
>
> Wouldn't you need to insert a line in the batch file like:
> if exist "%TOMCAT_HOME%\conf\mod_jk.conf
Hi,
It would probably be a better idea to get tomcat to start/stop apache as
Tomcat needs to be started beffore apache. To do this, even if apache is
already started, just add a call to apache's startup script at the end of
startup.sh:-
/etc/rc.d/init.d/httpd restart
and in shutdown.sh do:-
/et
Wouldn't you need to insert a line in the batch file like:
if exist "%TOMCAT_HOME%\conf\mod_jk.conf-auto" erase
"%TOMCAT_HOME%\conf\mod_jk.conf-auto"
Before :loop otherwise the batch file as given would only wait the first time
you
ever ran it?
Steve Prior
Kenneth Westelinck wrote:
> Hi,
>
> I
venkatesan wrote:
>
> Hi All,
> I have tomcat which i am starting everytime by typing
> /bin/startup.sh and closing by ..bin/shutdown.sh. manually. Tomcat
> is running with Apache in my Linux system. Can anybody know how Apache
> web server will start tomcat automatically when it start
Hi,
I think you'll have to create a general startup script. The script starts
Tomcat first and, if the auto-conf file is generated, starts Apache
afterwards. I don't have much experience in scripting in Linux, but this is
how I do it on Windows NT.
startup.bat:
@echo off
set JAVA_HOME=c:\jdk1