Restart/Shutdown functionality for Geronimo when using Java Service Wrapper ---------------------------------------------------------------------------
Key: GERONIMO-1801 URL: http://issues.apache.org/jira/browse/GERONIMO-1801 Project: Geronimo Type: New Feature Security: public (Regular issues) Components: startup/shutdown Versions: 1.x Environment: Windows, Linux, Mac OS X, Solaris, HP-UX Reporter: Mario Ruebsam Priority: Minor If running Geronimo with Java Service Wrapper (also mentioned in GERONIMO-693), easy restart/shutdown functionality could be added to the JSW configuration by adding the following lines to the Java Service Wrapper "wrapper.conf". # Filter settings. Add parameters as needed starting from 1 wrapper.filter.trigger.1=JSWRestartGeronimo wrapper.filter.action.1=RESTART wrapper.filter.trigger.2=JSWShutdownGeronimo wrapper.filter.action.2=SHUTDOWN wrapper.filter.trigger.3=java.lang.OutOfMemoryError wrapper.filter.action.3=RESTART The Servlet/JSP code for triggering shutdown/restart is then very simple by printing an output to the standard out or err e.g. System.out.println("JSWRestartGeronimo"); or System.out.println("JSWShutdownGeronimo"); Also the "java.lang.OutOfMemoryError" which is not easy to catch in the JVM can be handled this way using the JSW. If added to some JSW configuration scripts packaged with Geronimo the above configuration should also described in the JSW section in the current documentation. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira