Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 2928 invoked from network); 26 Jul 2000 15:10:57 -0000 Received: from parkmain.lastminute.com (212.62.8.11) by locus.apache.org with SMTP; 26 Jul 2000 15:10:57 -0000 Received: from lmnukex01.lastminute.com (unverified) by parkmain.lastminute.com (Content Technologies SMTPRS 4.1.2) with ESMTP id for ; Wed, 26 Jul 2000 16:09:32 +0100 Received: by LMNUKEX01.lastminute.com with Internet Mail Service (5.5.2650.21) id ; Wed, 26 Jul 2000 16:10:40 +0100 Message-ID: <82D04C21A7E0D3118ACA00508B6D78DA015C9AE9@LMNUKEX01.lastminute.com> From: James Williamson To: "'tomcat-user@jakarta.apache.org'" Subject: RE: Using Tomcat 3.2 B2 with VAJava - changes to StopTomcat.java Date: Wed, 26 Jul 2000 16:10:39 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Why do you need a shell script when respawn in your inittab will do the job? > -----Original Message----- > From: Tim Kientzle [mailto:kientzle@acm.org] > Sent: Wednesday, July 26, 2000 1:13 AM > To: tomcat-user@jakarta.apache.org > Subject: Re: Using Tomcat 3.2 B2 with VAJava - changes to > StopTomcat.java > > > This is something I've been wondering about. I've been > toying with the idea of adding a shell script that simply > starts Tomcat, waits for it to die, restarts it,... in > an endless loop. This is mostly a reliability issue, having > Tomcat automatically restart in the event of a problem. > > It had occurred to me that this might allow for a servlet > to automatically restart Tomcat. Can a servlet running > within Tomcat invoke this? If so, that would be very useful; > I'd like for an administrative servlet to allow a webmaster > to completely restart Tomcat, in the process flushing any stale > cached data, etc. > > - Tim > > > Dave Harms wrote: > > > > If you're following Sheldon Wosnick's much-appreciated tutorial on > > using VAJava with Tomcat, you'll need to make a couple of changes to > > StopTomcat.java for proper shutdown. Change > > > > Class aClass = Class.forName("org.apache.tomcat.shell.Shutdown"); > > > > to > > > > Class aClass = Class.forName("org.apache.tomcat.startup.Tomcat"); > > > > And change > > > > Object[] arguments = new Object[] {new String[] {}}; > > > > to > > > > Object[] arguments = new Object[] {new String[] {"-stop"}}; > > > > That will pass the -stop parameter to > org.apache.tomcat.startup.Tomcat, > > which now handles startup and shutdown. > > > > FYI. > > > > Dave > > > > Dave Harms > > jdev@clarionmag.com > ------------------------------ This e-mail is intended for the named addressee only. It may contain confidential and/or privileged information. If you have received this message in error, please let us know and then delete this message from your system. You should not copy the message, use it for any purpose or disclose its contents to anyone.