> From: "Filip Hanik" <[EMAIL PROTECTED]> > Sent: Thursday, January 30, 2003 1:33 PM > Subject: RE: Remote Restart Tomcat 4.1.8
> shutdown is, look at the shutdown script. > remotely starting it up, I am not sure Shutdown is easy because Tomcat has a listener waiting to take action. Starting Tomcat remotely is difficult simply because there is nothing "listening" for the start up. Depending on the platform, you can surround your Tomcat startup with a script that simply restarts Tomcat, meaning when Tomcat exits it the script immediate restarts. #!/bin/sh while [ 1 ] do cd $CATALINA_HOME/bin ./catalina.sh run done Then whenever you shutdown Tomcat it will restart itself. Mind you, these scripts can be hard to stop sometimes.... You can also use Dan Bernstiens SVC framework in his daemontools package to do the same thing (I wrote that up here on the list a few months ago). Finally, of course, you can always write your own listener in whatever language (Java, Perl, etc) to monitor Tomcat in some custom way. Regards, Will Hartung ([EMAIL PROTECTED]) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]