tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Endre StĂžlsvik <En...@Stolsvik.com>
Subject Re: [TC4] How to know when tomcat is properly shut down?
Date Thu, 29 Nov 2001 07:49:02 GMT
On Thu, 29 Nov 2001, Mika Goeckel wrote:

| Hi,
|
| on a unix system, you could do something like
|
| if ps -efwww | grep "org.apache.catalina.startup.Bootstrap" | grep -vc
| "grep" >/dev/null;
| then echo "yes";
| else echo "no";
| fi
|
| the second grep is because grep might find it's own command line otherwise.
|
| hope that helps.

Hmm.. no, not really, but thanks for replying! :)

This is the obvious hack, but the underlying problem isn't solved. I
would like the Bootstrap class itself not to return until Tomcat has said
that it's properly down, basically that is is going to do System.exit() as
it's next instruction!

The same is true when going up. I'd like to know (maybe with a switch with
a timeout) when the system "is up", and that means when all the webapps
have started and so on.

Endre.

-- 
Mvh,
Endre


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message