example04

The example demonstrates using a custom logger with daemonize.

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!("DaemonizeExample4", KeyValueList!(Composition!(Signal.Terminate, Signal.Quit, Signal.Shutdown, Signal.Stop), (logger, signal), Composition!(Signal.HangUp, Signal.Pause, Signal.Continue), (logger)), (logger, shouldExit))
Undocumented in source.

Classes

MyLogger
class MyLogger
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>