[nsd-users] PATCH: option to allow nofork without enabling debug mode

W.C.A. Wijngaards wouter at nlnetlabs.nl
Fri Apr 19 07:12:45 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Paul, Anand,

On 04/19/2013 12:47 AM, Paul Wouters wrote:
> On Thu, 18 Apr 2013, Anand Buddhdev wrote:
> 
>> Have you tested nsd long enough with this option?
> 
> After fixing the patch to add "D" to getopt, I ran it specifically 
> with various reload scenarios because I know even the RHEL version 
> with sysv still at times lost the proper pid (the build I fired
> off today hopefully fixes those now on RHEL, ns0.nohats.ca has not
> lost the right pid in several hours now)

The pidfile is changed when the scenario that Anand describes happens.
 So that means there is a brief race condition, but you did not notice
the issue that Anand described.  Also upstart may need nsd to keep
attached to the same console session, and that would then not happen,
and nsd4 can do all of that with the changes; i.e. for nsd4 the
pidfile does not change.

Best regards,
   Wouter

> So I did variations of: systemctl reload nsd.service nsdc reload 
> nsdc rebuild systemctl restart nsd.service
> 
> Note that the reload service calls rebuild, reload and notify:
> 

> 
> I'll do some more tests to ensure this will work (or not). Thanks 
> for pointing it out.
> 
> Paul _______________________________________________ nsd-users 
> mailing list nsd-users at NLnetLabs.nl 
> http://open.nlnetlabs.nl/mailman/listinfo/nsd-users

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRcO5oAAoJEJ9vHC1+BF+NMQ0P/0I5kyhl9LmG8CgResRcJeN5
fOqgiI1pC2alrkQ2CG5kU+S3I9TyVZoFxM9MAmtBzVznMdcy82fC6KVNdBX31W9T
3JzJiiG29mOZ9kuHWXp3UfVCXl8LaKUP1DlIxPjv5h9k6tAjsBHbdn5TXzktE4Nl
mrHCxYIDZi78D6vmpvka6rrNRi2M+05Uw4OY6yikSTwffbJEnN5FEH0BpDfU4gKq
kcIT35vLFHpbI2dmGqphY3ieYQzPjUhbmohNhnU6gOrwJKgzXN61KmA/S1EdKK2n
mWU/ZJGIP7WJHPhGcNjaQtJoumXW86dpLicu6QZ00ZtKfUcatxFXLTE1HTxWqzGZ
cryePIXbBYjiLlmgNZfvIQWq0lWXiN727OZrya56BrK27Mb/QSQYraf9flKg7MZE
fXrvHb70lIzkgWtqMRctK/Up9VMH4dlKpz2tpAFD2km59h7XjPg7GavOJwlQ/YhV
phdqej7EgtTw2GX+fU9EBlXp7kqQL6GomAlrNjkWoSqxrHewq0ZKqT1KsGm0WbuD
e3AVRl0oGqh6R+6wUpZs3oAg3WfLZy3EuEpBAyZJQ8T7wf0QBZGLRXvKKaWGTCg/
3/aeYsJ8k6adckYpnmDnOoRls65851XHeQosUfxOThilWG9E6oBJcR8Psb/92iPw
7r0d+Eo1DoV3Y7NbuziN
=5QPS
-----END PGP SIGNATURE-----



More information about the nsd-users mailing list