"Craig R. McClanahan" wrote: > > In short, trying to implement and support something like this is going to > be risky -- and a challenger for the top-reported user problem area on > TOMCAT-USER :-) if we actually tried to implement it. > Hmm. Didn't think that such an extension could cause that many troubles. Maybe better tackling the more general solution:
> > Again: the possibility to remotely trigger a Tomcat restart would be the > > preferred solution. I already noticed some need for this feature here. > > Are there any plans do do this? > > Sounds like an OS-specific grant of access to the startup and shutdown > scripts would be all that is necessary. > There is a better and simpler solution: If a terminating Tomcat instance would return some special value (e.g. System.exit(0)), this value could be used by the existing scripts to just start the server again. E.g. for the "start" command in catalina.sh and catalina.bat: --- catalina.sh Sun Oct 14 20:15:08 2001 +++ catalina.sh.new Mon Jan 21 11:43:12 2002 @@ -201,10 +201,12 @@ org.apache.catalina.startup.Bootstrap "$@" start \ >> $CATALINA_BASE/logs/catalina.out 2>&1 & else + ( while \ $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ org.apache.catalina.startup.Bootstrap "$@" start \ + ; do true ; done ) \ >> $CATALINA_BASE/logs/catalina.out 2>&1 & fi --- catalina.bat Sun Oct 14 20:15:08 2001 +++ catalina.bat.new Mon Jan 21 11:41:05 2002 @@ -109,6 +109,7 @@ :doStart if "%2" == "-security" goto doStartSecure %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start +if not errorlevel 1 goto doStart goto cleanup :doStartSecure echo Using Security Manager (The latter diff output will be displayed incorrectly since my mailer truncates the line "%_STARTJAVA%...%9 start" that is too long.) That's all! Now, there's "just" the Tomcat-internal stuff left, that triggers the System.exit(0) ;-) What about new /manager/reboot and /manager/shutdown commands? Best regards, Hans -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>