From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PIRVE-0008JL-Kc for garchives@archives.gentoo.org; Tue, 16 Nov 2010 19:47:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 16221E05B9; Tue, 16 Nov 2010 19:47:01 +0000 (UTC) Received: from mail-ew0-f53.google.com (mail-ew0-f53.google.com [209.85.215.53]) by pigeon.gentoo.org (Postfix) with ESMTP id CB754E05B9 for ; Tue, 16 Nov 2010 19:47:00 +0000 (UTC) Received: by ewy10 with SMTP id 10so649553ewy.40 for ; Tue, 16 Nov 2010 11:47:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=yOT906BjWCdIIMvRQaVKUJEtMScRLwaxPIYwpWhh0AI=; b=eAmnolfVlFRefMwUrMFD3v03a0WpF02upskyEvTGuaZ4yyJEg68knjw6OJlI0huZQf OT2V1g8JEjtsG1/ZYvYbtRMHNaFHIvVFRat4+3DJkf137Ql34dTeySfBDjrXy4kIBM6p 4xx4yAkG/5Ggqe8DzHmtN8+Xr48/Yw6MXsLxw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=lzeRSeuUH68Bdv0QwyuA5qFpzpK1muxvv7zUuI5GcLegdK1T9CCB/yRww26fWvsxo9 NpDvANHRJpqiw03GkgcU8BaI80RZREtFqnkhPdsGsOahGNFSws+asL6DOtdh+3XFqY8Z 4bAnOJ0UOpzkPKdKsl16fF6iLLYhqQpUAsLrU= Received: by 10.213.112.209 with SMTP id x17mr6433342ebp.96.1289936820069; Tue, 16 Nov 2010 11:47:00 -0800 (PST) Received: from nazgul.localnet (196-210-238-14.dynamic.isadsl.co.za [196.210.238.14]) by mx.google.com with ESMTPS id w20sm1472183eeh.0.2010.11.16.11.46.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 16 Nov 2010 11:46:59 -0800 (PST) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] bind-9.7.1_p2 does not want to stop... Date: Tue, 16 Nov 2010 21:47:27 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.36-ck; KDE/4.5.3; x86_64; ; ) References: <4CE2D8B8.4040009@gmail.com> In-Reply-To: <4CE2D8B8.4040009@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201011162147.27963.alan.mckinnon@gmail.com> X-Archives-Salt: d39334dc-e271-4880-ad0d-499b67836462 X-Archives-Hash: 0a07e2886fd1174cd30a95d5dd36850c Apparently, though unproven, at 21:17 on Tuesday 16 November 2010, Jarry did opine thusly: > Hi, > today I updated my bind from 9.4.3_p5 to 9.7.1_p2. I noticed > a few changes in configuration so first I did full backup, then > uninstalled 9.4.3_p5 first, removed all configuration files, > then emerged 9.7.1_p2, and configured it to run from chroot. > > named seems to start normally: > > # /etc/init.d/named start > * Starting chrooted named ... > * Mounting chroot dirs > * mounting /etc/bind to /chroot/dns/etc/bind > * mounting /var/bind to /chroot/dns/var/bind > * mounting /var/log/named to /chroot/dns/var/log/named [ ok ] > > The problem is, it runs forever, and does not want to stop: > > # /etc/init.d/named stop > * Stopping chrooted named ... > * Umounting chroot dirs > * Waiting until all named processes are stopped > > And there it hangs. I have been waiting for 15min, but nothing > happened and ps shows named is still running. I aborted with > ctrl+c and tried again, but still the same. I checked logs, > but did not find anything suspicious. So where is the problem? Do you absolutely *have* to run bind? Aside from it being a 100% RFC-compliant reference server, it's a pig to run in real life. For an auth server, powerdns is very good. For a cache, unbound. What you have here is common. Bind can't find, or can't deal with, it's PID file. Or it's just being stubborn. Check your config that the PID file is in the right place, usable and that it has the correct pid in it. Also check the init script for the same thing. Failing that, there's "kill -9", this won't break anything but might disconnect a client. -- alan dot mckinnon at gmail dot com