Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 96775 invoked from network); 21 Nov 2001 08:10:57 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 21 Nov 2001 08:10:57 -0000 Received: (qmail 16229 invoked by uid 97); 21 Nov 2001 08:10:59 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 16207 invoked by uid 97); 21 Nov 2001 08:10:58 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 16176 invoked from network); 21 Nov 2001 08:10:57 -0000 X-Authentication-Warning: jeeves.stud.ntnu.no: endrs owned process doing -bs Date: Wed, 21 Nov 2001 09:10:54 +0100 (MET) From: =?iso-8859-1?Q?Endre_St=F8lsvik?= X-X-Sender: To: Tomcat developer list Subject: [TC4] How to know when tomcat is properly shut down? (fwd) Message-ID: X-My-Opinion: War and bombs are bad. Peace and flowers are good. ;-D MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Virus-Scanned: by AMaViS perl-11 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Since nobody answered on tomcat-user, I'll just forward this one here (since I think it actually belongs here in the first place..) ---------- Forwarded message ---------- Date: Tue, 20 Nov 2001 18:14:20 +0100 (MET) From: Endre St�lsvik Reply-To: Tomcat Users List To: Tomcat user list Subject: [TC4] How to know when tomcat is properly shut down? 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 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.. --------------- And yes, Henri's init.d scripts also just fake this, waiting in just 2 seconds, which is too short time, and therefore the "restart" option of the init.d script is flawed. The shutdown part of it doesn't wait at all, so you might end up shutting the server physically down (read as: killing all the java threads w/o cleaning up) before tomcat has finished shutting down. Mvh, Endre -- To unsubscribe, e-mail: For additional commands, e-mail: