tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Endre StĂžlsvik <En...@Stolsvik.com>
Subject [TC4] How to know when tomcat is properly shut down?
Date Tue, 20 Nov 2001 17:14:20 GMT
The catalina.sh and related scripts all start the Bootstrap.java class and
asks it to shut down Catalina.

This script, if successful in connecting to the shutdown port of Catalina,
returns immediately. This whether or not there is 8953289527 pending
database commits or whatever that has to be done before things actually
are properly shut down.

This is highly undesirable, and I would love if it were possible to shut
down catalina and then chill untill it actually has shut down.

This is especially important when shutting down the entire physical
server, as the database shutdown might be the next in line, in which case
everything breaks..

Of course, it would also be very nice if one could know if Catalina has
properly come up. It could for example write a "boolean file" when the
server has initialized all webapps, and then delete the same file right
before the main method of Catalina exits on shutdown. Or one could use
Bootstrap with argument -waitForUp or something..


-- 
Mvh,
Endre


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message