Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Aug 2009 13:56:18 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        Guy Helmer <ghelmer@palisadesys.com>
Cc:        freebsd-stable@FreeBSD.org, besko@msu.edu
Subject:   Re: named stop not stopping 
Message-ID:  <20090824205618.852C21CC09@ptavv.es.net>
In-Reply-To: Your message of "Mon, 24 Aug 2009 15:01:53 CDT." <4A92F1B1.6050007@palisadesys.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Mon, 24 Aug 2009 15:01:53 -0500
> From: Guy Helmer <ghelmer@palisadesys.com>
> Sender: owner-freebsd-stable@freebsd.org
> 
> Lisa Besko wrote:
> > We had an issue with the /etc/rc.d/named script this morning where it 
> > looped/hung in the wait_for_pids subroutine.  We run a job to restart 
> > named which calls the /etc/rc.d/named script with a stop command.  For 
> > some reason named did not stop properly and the process continued to 
> > list PIDs from the wait_for_pids subroutine forever.  Has anyone ever 
> > encountered this before?
> >
> > We are running 7.2 stable and bind 9.4.3-P3 on an AMD system.
> >
> > Thanks,
> >
> > LB
> Has named's rc script worked OK before?  If not, it might be a config  
> problem like mine.  I found that after I added
>   pid-file        "/var/run/named/pid";
> to the options section of my named.conf file, the rc script was able to 
> stop/restart a running named process.
> 
> Hope this helps,
> Guy Helmer

Odd. Unless something (like /etc/defaults/rc.conf) else was touched,
this should not be required. It is already in /etc/defaults/rc.conf, a
file that should be modified only with a really good understanding of
the way it is used.

Here is the current defaults for named:
named_pidfile="/var/run/named/pid" # Must set this in named.conf as well

You probably should only put the line 'named_enable="yes"' into
/etc/rc.conf. Do not put it into /etc/defaults/rc.conf or change the
entry in that file! Changes should only be made to /etc/rc.conf.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090824205618.852C21CC09>