DaemonApp.onSignal

ISignalExtExtension method default implementation.

This method is implemented with behaviour most commonly desired in apps that don't do any custom signal handling - attempt cleaner shutdown on SIGTERM signal.

See ISignalExtExtension documentation for more information on how to override this method with own behaviour. super.onSignal is not needed to be called when doing so.

Note that the default onSignal implementation handles SIGTERM and calls theScheduler.shutdown upon receiving the signal. This results in clean termination but may also cause some in-progress data loss from killed tasks - any application that must never loose data needs to implement own handler.

class DaemonApp
override
void
onSignal
(
int signum
)

Meta