[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] Systemd and forking programs (was systemd can't start a dæmon and doesn't give any error either)

On Tue, Oct 09, 2018 at 10:31:41AM +0100, Jonathan Dowland wrote:
> If you have a program that does fork, but you don't want it to, there's
> nothing you can do to stop it.

There's DJB's fghack program, but as the name implies, it's a hack, and
not guaranteed to work.


Fortunately, upstream maintainers of daemons and other services have
come to understand that self-backgrounding is no longer considered
appropriate mandatory behavior for a daemon.  All the recent releases
of major daemons have options to STOP self-backgrounding, or they no
longer do it by default, and offer an option to do it if desired.

Reply to: