What does /etc/init.d/named do when you run it with the restart option?
That file is not part of the BIND distribution and is likely a shell script so take a look and see what's its attempting to do. I wonder if its running 'rndc stop' and not waiting for the process to finish up before trying to start named again.

We had similar issues when trying to convert Solaris operating environment RC script to SMF and alas had to resort to old signals (kill) to have named shut down reliably within a given time. I should point out the at a 'stop' request causes named to shut down in an orderly fashion completing certain tasks, for some configurations that could take too much time.

Stace

On 11/11/2010 18:49, Carlos Vicente wrote:
Has anybody had this problem?

# /etc/init.d/named restart
Stopping named: .............                              [FAILED]
Starting named: named: already running                     [  OK  ]

I notice it happens after the daemon has been running for a while. If I
kill it and start it again, then restart works OK.

This is a caching resolver, with dnssec validation enabled.

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)


# named -V
BIND 9.7.1-P2-RedHat-9.7.1-5.P2.uopel5 built with
'--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu'
'--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib64' '--libexecdir=/usr/libexec'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--with-libtool' '--localstatedir=/var'
'--enable-threads' '--enable-ipv6' '--with-pic' '--disable-static'
'--disable-openssl-version-check' '--with-gssapi=yes'
'--disable-isc-spnego' 'build_alias=x86_64-redhat-linux-gnu'
'host_alias=x86_64-redhat-linux-gnu'
'target_alias=x86_64-redhat-linux-gnu' 'CFLAGS= -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic' 'CPPFLAGS=
-DDIG_SIGCHASE' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic' 'FFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic'


Thanks in advance for any pointers.

cv
_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to