[nsd-users] NSD 4.0.1 unclean shutdown
anandb at ripe.net
Tue Jan 28 13:16:22 UTC 2014
I've noticed that when NSD shuts down, it can be a bit messy. Here's an
 nsd: warning: signal received, shutting down...
 nsd: warning: rmdir /var/lib/nsd/nsd-xfr-1093
failed: Directory not empty
 nsd: warning: rmdir /var/lib/nsd/nsd-xfr-1093 failed:
Directory not empty
 nsd: info: zone 96.147.in-addr.arpa. received update
to serial 2014012801 at 2014-01-28T12:58:23 from 126.96.36.199 TSIG
verified with key ripencc-20110222 of 1026966 bytes in 0.202617 seconds
Notice that processes 22966 and 1093 (1093 is the main process) both
tried to delete a directory which contained an incoming zone transfer,
and failed. This incoming zone transfer was being processed by process
When I killed 1093, it exited almost immediately, and did not wait for
any of its children. In particular 23003 continued running for 24 more
seconds, and only exited after applying the zone transfer to the database.
This is problematic, because when I killed 1093, and it exited, as far
as I was concerned, NSD was completely shut down, and I could restart
it, or do other housekeeping. But one NSD process was still running.
Additionally, that last process, after applying its zone transfer, did
not remove the directory /var/lib/nsd/nsd-xfr-1093, so that directory is
now hanging around.
Is there any reason the master process does not wait for its children to
finish before exiting?
More information about the nsd-users