example03

The example demonstrates how to run vibe.d server in daemon mode.

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

Members

Aliases

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

Functions

handleRequest
void handleRequest(HTTPServerRequest req, HTTPServerResponse res)
Undocumented in source. Be warned that the author may not have intended to support it.
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>