The killall is a bit nasty but hey, I'm impatient :) Change the paths of course
thies /usr/local/tomcat/bin> cat restart.sh #!/bin/sh /usr/local/tomcat/bin/shutdown.sh killall java /usr/local/tomcat/bin/startup.sh sleep 2 /usr/local/apache/bin/apachectl restart -----Original Message----- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 2:41 PM To: 'Aleksi Kallio'; '[EMAIL PROTECTED]' Subject: RE: How to do stop-start fast? Saludos , Ignacio J. Ortega > -----Mensaje original----- > De: Aleksi Kallio [mailto:[EMAIL PROTECTED]] > Enviado el: 17 de julio de 2002 12:21 > Para: [EMAIL PROTECTED] > Asunto: How to do stop-start fast? > > > I have a script that stops Tomcat (shutdown.sh), does stuff and then > restarts it (startup.sh). Doing stuff doesn't take long enough and > Tomcat refuses to restart because the port is still reserved. > > Removing the restart from script and waiting a few secs after running > the script, then restarting manually, works. It is just a bit > frustrating. Also if a restart too early, Tomcat fails to start and > produces a process that has to be killed by hand and it's > also frustrating. > > How to check if Tomcat is stopped properly? > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>