conf/103976: rc.d/named restart failure

Vivek Khera vivek at khera.org
Thu Jul 19 16:12:53 UTC 2007


On Jul 19, 2007, at 9:36 AM, dougb at FreeBSD.org wrote:
> Are you saying that with the output that you pasted there
> IS still a named running, and then the 'start' fails for
> that reason?

Yes, that seems to be the case.  verified just now.  named is  
running.  I try to restart.  it takes 3 attempts before it succeeds.   
it seems on the second attempt it might have actually killed named,  
but did not restart it because the named process took too long to  
actually exit between the time it was asked to exit and the time the  
new process was launched.



[root at bluefish]# ps axuw | grep ^bind
bind     54478  8.6  8.2 174428 170848  ??  Rs    5Mar07 4346:06.96 / 
usr/sbin/named -t /var/named -u bind
[root at bluefish]# /etc/rc.d/named restart
Stopping named.
named already running? (pid=54478).
[root at bluefish]# /etc/rc.d/named restart
Stopping named: rndc failed, trying killall: .
named already running? (pid=54478).
[root at bluefish]# /etc/rc.d/named restart
Stopping named: rndc failed, trying killall: No matching processes  
were found
Starting named.
[root at bluefish]# ps axuw | grep ^bind
bind     31155  7.9  0.3  9484  6376  ??  Rs   11:51AM   0:00.42 /usr/ 
sbin/named -t /var/named -u bind
[root at bluefish]# uname -a
FreeBSD bluefish.kcilink.com 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10  
#3: Tue Oct  3 10:49:29 EDT 2006     vivek at redfish.kcilink.com:/n/ 
lorax1/usr6/obj.amd64/n/lorax1/usr6/src/sys/KCI64SMP  amd64



I tried it one more time just to be sure:


[root at bluefish]# ps axuw | grep ^bind
bind     31155 11.0  0.6 14732 11640  ??  Rs   11:51AM   0:19.93 /usr/ 
sbin/named -t /var/named -u bind
[root at bluefish]# /etc/rc.d/named restart
Stopping named.
named already running? (pid=31155).
[root at bluefish]# ps axuw | grep ^bind
[root at bluefish]# /etc/rc.d/named restart
Stopping named: rndc failed, trying killall: No matching processes  
were found
Starting named.
[root at bluefish]#



So it does seem that there needs to be something that waits for named  
to finish exiting before starting it again.

This is a pretty fast box: CPU: Intel(R) Xeon(TM) CPU 3.00GHz  
(3000.12-MHz K8-class CPU) dual core with 2GB RAM and pretty much all  
it does is DNS and logfile collecting.



More information about the freebsd-rc mailing list