Rich Goodson wrote: >> If -p is specified named's process id is returned. This allows an >> external process to determine when named had completed halting. > > Whether named is still answering queries or just cleaning up its > allocated memory, the PID is returned BEFORE named is gone, as named is > still running for a good while after the PID is returned (I've seen up > to 15 or 20 seconds or so). So, if I use this in a script, assuming the > behavior that seems to be implied in the documentation, I'm going to be > starting a new instance of named once the PID is returned, so I'm going > to end up with 2 concurrent named processes.
You are expected to 'wait' on the PID that was returned before you start anything new. rndc operates asynchronously to the BIND process, so it does not wait for BIND to exit. Reference: 'man wait' AlanC
signature.asc
Description: OpenPGP digital signature
_______________________________________________ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users