ProcessManager()

Manager for the Inexor Flex process. Exit handlers: - on SIGHUP a reload is triggered (excluding win32, which exits) - on SIGINT and SIGTERM the process is killed and the PID file is removed - on exiting, a message is printed about the exit code or signal - we cannot handle SIGKILL, in this case the PID file cannot be removed cleanly

new ProcessManager()

Methods

createProcessHandlers()

Creates handlers for process signals and exit handler.

onExit()

On exit print a status message why the process has ended.

onReloadSignal()

Handle the reload signals. On all platforms but windows.

onSegfault()

In case segfaults happens in native modules print an error and the stacktrace and

onShutdownSignal()

Handle the shutdown signals.

onUncaughtException()

Handle uncaught exceptions.