Having every daemon put itself into the background is bad software design

Mark Felder feld at FreeBSD.org
Fri Dec 6 15:11:36 UTC 2013


On Tue, Dec 3, 2013, at 11:38, Unga wrote:
> 
> Btw, I got in to this problem by trying to use DJB's daemontools to
> supervise my server running on FreeBSD. But it creates zombie processes
> and spawn quite fast. In my daemons, after fork(2), parent returns.
> 

Our own /usr/sbin/daemon utility has the ability to supervise processes
as well, but doesn't respawn processes at an insane rate like
daemontools does. I've seen a coredumping process supervised by
daemontools actually take a server down because of the CPU load.... our
own daemon utility respawns it after waiting 1 second.


More information about the freebsd-questions mailing list