[nsd-users] nsd init patch
paul at nohats.ca
Mon Apr 9 14:35:32 UTC 2012
On Mon, 9 Apr 2012, Andrey Scopenco wrote:
> on the big installations NSD can stop some secs/mins and "nsdc restart"
> this patch for nsd.init fix this:
> --- /etc/init.d/nsd 2012-04-09 18:01:39.446909907 +0400
> +++ /etc/init.d/nsd 2012-04-09 18:01:24.248314446 +0400
> @@ -71,6 +71,7 @@
> # ensure notifies are sent at startup
> rm -f $NSD_XFRDFILE
> + while [[ $(pidof nsd) ]]; do sleep 1;done
> return $RETVAL
That's a nice possible infinite loop there.
What is taking so long for you? The "nsd patch" should be blocking,
so it is the actual "stop" that is taking so long? Is it a very
That said, I do experience problems with nsd and rhel init
scripts too, where a "service nsd stop" won't kill nsd,
but I believe those are related to nsdc reloads and pid
changing, and nsd being unable to deal with the pid file.
More information about the nsd-users