After a couple of fixes the script started working, but Tomcat still
hangs. So I guess netstat can't be used for that. Anyway, I have a
simple "sleep 3" hack that works perfectly, so this is not an issue...
> Something like this may work (just a quick hack so there may be typos)
>
> --start c
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:[EMA
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.
y 17, 2002 9:29 AM
To: Tomcat Users List
Cc: Aleksi Kallio
Subject: Re: How to do stop-start fast?
Something like this may work (just a quick hack so there may be typos)
--start cut here for script
#!/bin/sh
###
# restart.sh
# restarts tomcat
# usage: restart.
Something like this may work (just a quick hack so there may be typos)
--start cut here for script
#!/bin/sh
###
# restart.sh
# restarts tomcat
# usage: restart.sh ip port
#ip - The ip address (or *)
#port - Which tomcat listens on shutdown
#
# eg: resta
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 7:27 AM
To: Tomcat Users List
Subject: Re: How to do stop-start fast?
You have a few alternatives:
1) Kill the java process and then you can run startup.sh immediatetly
2) Write a wrapper
You have a few alternatives:
1) Kill the java process and then you can run startup.sh immediatetly
2) Write a wrapper script which calls shutdown.sh, then does one of the
following to verify tomcat is shutdown before calling startup.sh
a) The process is non-existent
b) The port is no taken
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 m