[opencms-dev] Restarting OpenCms programmatically

Marcus Popetz marcus at roundpeg.com
Tue May 16 22:17:32 CEST 2006


At 04:14 PM 5/16/2006, Jonathan Woods wrote:
>You could execute the same Java class/method which shuts down the whole of
>Tomcat, in org.apache.catalina.startup.Bootstrap.  I haven't looked inside
>that class, but I imagine you could mimic the same environment you need to
>provide on the command line:

If you're on windows, set the tomcat service to restart on failure (right 
click-> properties in the services control panel) and then call 
System.exit() when you want a reboot.

-mp





More information about the opencms-dev mailing list