example01

The example demonstrates basic daemonize features. Described daemon responds to SIGTERM and SIGHUP signals.

If SIGTERM is received, daemon terminates. If SIGHUP is received, daemon prints "Hello World!" message to logg.

Daemon will auto-terminate after 5 minutes of running.

Members

Aliases

daemon
alias daemon = Daemon!("DaemonizeExample1", KeyValueList!(Composition!(Signal.Terminate, Signal.Quit, Signal.Shutdown, Signal.Stop), (logger, signal), Signal.HangUp, (logger)), (logger, shouldExit))
Undocumented in source.

Functions

main
int main()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE file.

Authors

NCrashed <ncrashed@gmail.com>