links http://www.mikeperham.com/2014/09/22/dont-daemonize-your-daemons/ Log to stdout. Shut down on TERM/INT. Reload config on HUP. Provide the necessary config file for your favorite init system to control your daemon.