From owner-freebsd-stable@FreeBSD.ORG Mon Aug 24 20:56:19 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 D773D106568D for ; Mon, 24 Aug 2009 20:56:19 +0000 (UTC) (envelope-from oberman@es.net) Received: from mailgw.es.net (mail1.es.net [IPv6:2001:400:201:1::2]) by mx1.freebsd.org (Postfix) with ESMTP id BDE4B8FC14 for ; Mon, 24 Aug 2009 20:56:19 +0000 (UTC) Received: from ptavv.es.net (ptavv.es.net [IPv6:2001:400:910::29]) by mailgw.es.net (8.14.3/8.14.3) with ESMTP id n7OKuI6Y000853 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 24 Aug 2009 13:56:19 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 852C21CC09; Mon, 24 Aug 2009 13:56:18 -0700 (PDT) To: Guy Helmer In-reply-to: Your message of "Mon, 24 Aug 2009 15:01:53 CDT." <4A92F1B1.6050007@palisadesys.com> Date: Mon, 24 Aug 2009 13:56:18 -0700 From: "Kevin Oberman" Message-Id: <20090824205618.852C21CC09@ptavv.es.net> X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2009-08-24_10:2009-08-11, 2009-08-24, 2009-08-24 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0907200000 definitions=main-0908240154 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 20:56:19 -0000 > 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. -- 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