Using daemon from /etc/init.d/functions

Andrew Jorgensen andrew.jorgensen at
Fri Mar 30 17:00:24 MDT 2007

On 3/30/07, Steve <smorrey at> wrote:
> I dunno about redhat, but anything I've ever wanted to run as a
> daemon, I'ld just do the double fork thing in code.

Double fork?  I thought all you had to do was close the STD* file
handles, fork, and setsid to detach from the process tree.

I'm not one who would know, though, so I'm interested in this trick.

More information about the PLUG mailing list