True daemon mode on Unix
For the master and slave to properly work as daemons on Unix, the processes need to call "daemon()" to detach themselves from the terminal. This is a must to include the master and slave in startup (init.d) scripts (related ticket: #29).
I attach a patch that adds a new commandline option (-d) that enables this daemon() call. It was tested here at Bren Entertainment with our custom init.d scripts and is working right.
#1 Updated by Andreas Schröder over 7 years ago
- Priority changed from High to Normal
- Target version set to 0.64.6
The daemon() function is only available on unix-like systems. For Windows, another solution has to be worked out.
By the way, Gentoo uses the start-stop-daemon tool to make a daemon functionality possible. See http://bugs.gentoo.org/attachment.cgi?id=128205 for an example.