You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Lee <to...@shaw.ca> on 2002/11/07 20:05:17 UTC
Shutting down and restarting Tomcat
I need to shutdown and then restart tomcat repeatedly for my
testing purposes. I am using a Windows batch file which will call
shutdown.bat and startup.bat. But each time Tomcat did not
restart. Is there any better way of doing this?
Thanks
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Shutting down and restarting Tomcat
Posted by Chris Parker <cp...@cya.ca.gov>.
> What is the command for setting the delay in a Windows batch file?
> I used "delay" but it didn't work.
> Thanks
Assuming this isn't a 'day late and a dollar short', you might want to take
a look at this web site. It has all sorts of tips for DOS batch files:
http://www.calweb.com/~webspace/batch/
Additionally, there are several ways to get a time delay from a batch file.
They are described here:
http://www.calweb.com/~webspace/batch/samples/sleep.txt
Some of the things described will only work if you have the original files
(junk?) from DOS. I personally keep some of that stuff around - if all else
fails, email me directly, and I'll send the utility you need as an
attachment.
<=======================>
Chris Parker
Programmer/Analyst
Health Care Services Division
California Youth Authority
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Shutting down and restarting Tomcat
Posted by Peter Lee <to...@shaw.ca>.
On 8 Nov 2002, at 2:43, yves lambert wrote:
> Peter Lee wrote:
>
> >I need to shutdown and then restart tomcat repeatedly for my
> >testing purposes. I am using a Windows batch file which will call
> >shutdown.bat and startup.bat. But each time Tomcat did not
> >restart. Is there any better way of doing this?
> >
> >Thanks
> >
> >--
> >To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> >For additional commands, e-mail: <ma...@jakarta.apache.org>
> >
> >
> >
> >
> >
> your batch file must be like that
> restart.bat
> call %CATALINA_HOME%\bin\shutdown.bat
> call %CATALINA_HOME%\bin\startup.bat
> if it doesn't work you may set a delay between the 2 commands
What is the command for setting the delay in a Windows batch file?
I used "delay" but it didn't work.
Thanks
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Shutting down and restarting Tomcat
Posted by yves lambert <le...@free.fr>.
Peter Lee wrote:
>I need to shutdown and then restart tomcat repeatedly for my
>testing purposes. I am using a Windows batch file which will call
>shutdown.bat and startup.bat. But each time Tomcat did not
>restart. Is there any better way of doing this?
>
>Thanks
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
>
>
your batch file must be like that
restart.bat
call %CATALINA_HOME%\bin\shutdown.bat
call %CATALINA_HOME%\bin\startup.bat
if it doesn't work you may set a delay between the 2 commands?
--
\/
<>
/\
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Shutting down and restarting Tomcat
Posted by Mike Jackson <mj...@cdi-hq.com>.
Try putting a delay in, sometimes tomcat doesn't quickly
enough exit for you to immediately restart. At least
not on my box (which is linux). However if you're using
Tomcat4.x you can stop and restart webapps directly, so
you may not really need to restart all of tomcat...
--mikej
-=-----
mike jackson
mjackson@cdi-hq.com
> -----Original Message-----
> From: Peter Lee [mailto:tomcatuser@shaw.ca]
> Sent: Thursday, November 07, 2002 11:05 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Shutting down and restarting Tomcat
>
>
> I need to shutdown and then restart tomcat repeatedly for my
> testing purposes. I am using a Windows batch file which will call
> shutdown.bat and startup.bat. But each time Tomcat did not
> restart. Is there any better way of doing this?
>
> Thanks
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Shutting down and restarting Tomcat
Posted by Andreas Probst <an...@gmx.net>.
Hi Peter,
try this batch file (startAndStop.bat):
> @echo off
> echo.
> echo Calling startup
> echo.
> call startup.bat
> echo.
> echo Started
> echo.
> pause
>
> echo.
> echo Calling shutdown
> echo.
> call shutdown.bat
> echo.
> echo Shut down
> echo.
> pause
>
> startAndStop.bat
The pause command is necessary, because it takes Tomcat a few
seconds to shut down. The next call will be done after you'll
have pressed any key.
This script is an endless loop because it calls itself in the
end. To end it press Ctrl-C or the X-Button in the upper right
corner.
Andreas
On 7 Nov 2002 at 11:05, Peter Lee wrote:
> I need to shutdown and then restart tomcat repeatedly for my
> testing purposes. I am using a Windows batch file which will call
> shutdown.bat and startup.bat. But each time Tomcat did not
> restart. Is there any better way of doing this?
>
> Thanks
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>