[nsd-users] PATCH: option to allow nofork without enabling debug mode
Anand Buddhdev
anandb at ripe.net
Thu Apr 18 21:19:58 UTC 2013
On 18/04/2013 23:01, Paul Wouters wrote:
> Hi,
>
> I'm looking at running nsd from systemd without forking. The man page
> for nsd states:
>
> -d Turn on debugging mode, do not fork, stay in the foreground.
>
> Now I don't really want "debugging mode", I just want it to not fork.
>
> Attached is a small patch that adds the -D option that does not change
> the debugging level, but will prevent nsd from forking when specified.
>
> This allows systemd to restart nsd when it crashes.
Hey Paul,
Have you tested nsd long enough with this option? I'm not certain it
will work. It will appear to work in the beginning, but when nsd does
zone transfers, it will fork a child, which will load the zone database,
and then kill its parents. At this point, systemd may not be able to
keep track of nsd. At least, this was what I experienced when trying to
make nsd3 work under Redhat's upstart.
Changing this is more work than a simple patch, and Wouter has already
done this for the upcoming nsd 4, which runs just fine under upstart.
But it may never make it into nsd 3. Please do correct me if I got it wrong.
Regards,
Anand
More information about the nsd-users
mailing list