named won't restart

Steve Arntzen isc at arntzen.us
Fri Nov 12 12:47:39 UTC 2010


Is it possible named was killed and restarted without
the /etc/init.d/named script?

The script looks up the process ID from /var/run/bind/run/named.pid (on
Debian) and if the PID doesn't match, the script can't stop named.

You can cat /var/run/bind/run/named.pid and compare the PID to what you
see in the process table.  If you stop bind and restart it with the init
script the PID should match and "restart" should work after that.

Steve.



On Fri, 2010-11-12 at 14:00 +0200, Bèrto ëd Sèra wrote:
> maybe this can be of help:
> http://bugs.gentoo.org/show_bug.cgi?id=324315
> 
> On 11 November 2010 20:49, Carlos Vicente
> <cvicente at network-services.uoregon.edu> 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 at lists.isc.org
>         https://lists.isc.org/mailman/listinfo/bind-users
> 
> 
> 
> -- 
> ==============================
> Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement
> viole les droits du peuple, l'insurrection est, pour le peuple et pour
> chaque portion du peuple, le plus sacré des droits et le plus
> indispensable des devoirs.
> 
> _______________________________________________
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users




More information about the bind-users mailing list