From owner-freebsd-stable@FreeBSD.ORG Mon Aug 24 21:35:33 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2C79106568D for ; Mon, 24 Aug 2009 21:35:33 +0000 (UTC) (envelope-from ghelmer@palisadesys.com) Received: from cetus.palisadesys.com (cetus.palisadesys.isupark.org [205.237.115.21]) by mx1.freebsd.org (Postfix) with ESMTP id 79D778FC21 for ; Mon, 24 Aug 2009 21:35:33 +0000 (UTC) Received: from cancer.palisadesys.com (serverwatch [172.16.1.98]) by cetus.palisadesys.com (8.14.3/8.14.3) with ESMTP id n7OLZT9Y050736; Mon, 24 Aug 2009 16:35:29 -0500 (CDT) (envelope-from ghelmer@palisadesys.com) Received: from [172.16.2.133] (cetus.palisadesys.isupark.org [205.237.115.21]) (authenticated bits=0) by cancer.palisadesys.com (8.14.2/8.14.2) with ESMTP id n7OLZR2h001150; Mon, 24 Aug 2009 16:35:27 -0500 (CDT) (envelope-from ghelmer@palisadesys.com) Message-ID: <4A93079F.1030602@palisadesys.com> Date: Mon, 24 Aug 2009 16:35:27 -0500 From: Guy Helmer User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Kevin Oberman References: <20090824205618.852C21CC09@ptavv.es.net> In-Reply-To: <20090824205618.852C21CC09@ptavv.es.net> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (cancer.palisadesys.com [205.237.115.20]); Mon, 24 Aug 2009 16:35:27 -0500 (CDT) X-Palisade-MailScanner-Information: Please contact the ISP for more information X-Palisade-MailScanner: Found to be clean X-Palisade-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-4.398, required 6, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60, HTML_MESSAGE 0.00) X-Palisade-MailScanner-From: ghelmer@palisadesys.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org, besko@msu.edu Subject: Re: named stop not stopping X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2009 21:35:33 -0000 Kevin Oberman wrote: >> Date: Mon, 24 Aug 2009 15:01:53 -0500 >> From: Guy Helmer >> 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. > Right, and it looks like the default pid file in named is /var/run/named.pid, so until I added a pid-file line to named.conf to match named_pidfile's setting in /etc/default/rc.conf, the named rc script wasn't successfully stopping/restarting named. Guy