Cleanup (or crazy idea): Drop forking
Eric S. Raymond
esr at thyrsus.com
Tue Aug 28 14:04:21 UTC 2018
Hal Murray via devel <devel at ntpsec.org>:
> systemd has the option to support code that doesn't fork/daemonize. Taking
> advantage of that could clean up some of our code.
> That would break the -w option.
> Of course, this doesn't work on systems that don't have systemd. Is there a
> commonly used way to do this?
I've seen it done under System V init with a shell wrapper that runs a
daemon in background, nohupping it and directing stderr to a logfile.
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
My work is funded by the Internet Civil Engineering Institute: https://icei.org
Please visit their site and donate: the civilization you save might be your own.
More information about the devel