This property controls what the Wrapper will do in response to specific exit codes of event commands.
It makes it possible to react in different ways depending on whether or not the command had any problems.
Globally for all events: wrapper.event.default.command.on_exit.<n> property, or
For a specific event: wrapper.event.<event_name>.command.on_exit.<n> property.
The "<event_name>" component of the property name can be
either the keyword "default",
or one of the Event Types.
By setting the default property, all Event Types which are not set explicitly will take on that value.
The "<n>" component of the property name is an exit code.
The action can be one of the following:
will proceed to shutdown the Wrapper.
CONTINUE or IGNORE -
will tell the Wrapper to continue with normal operation.
The following example will execute a cleanup script immediately before launching any JVM instance.
It will wait for up to 30 seconds for the script to complete.
Then if the script exits with an exit code of "0" (zero), the Wrapper will continue.
Any other exit code will be treated as an error and the Wrapper will shutdown without launching the JVM.
When defining this property, it is possible to define a default action, not only for the exit code,
but also for the event type.
When searching for an action for a given exit code and given event,
the Wrapper will search in the following order:
The Java Service Wrapper provides a full set of configuration properties that allows you to make the Wrapper meet your exact needs.
Please take a look at the documentation for the individual properties to see all of the possibilities beyond the examples shown above.