From owner-freebsd-stable@FreeBSD.ORG Fri Jan 1 11:06:18 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED82A1065676 for ; Fri, 1 Jan 2010 11:06:18 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [78.111.72.186]) by mx1.freebsd.org (Postfix) with SMTP id 4B86F8FC13 for ; Fri, 1 Jan 2010 11:06:17 +0000 (UTC) Received: (qmail 1603 invoked by uid 89); 1 Jan 2010 11:05:48 -0000 Received: from unknown (HELO kartoffel.salatschuessel.net) (78.111.72.187) by avocado.salatschuessel.net with SMTP; 1 Jan 2010 11:05:48 -0000 Date: Fri, 1 Jan 2010 12:05:48 +0100 From: Oliver Lehmann To: dougb@freebsd.org Message-Id: <20100101120548.dc06edfb.lehmann@ans-netz.de> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.5; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: stable@freebsd.org Subject: RELENG_7 changes for rc.d/named 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: Fri, 01 Jan 2010 11:06:19 -0000 Hi, since my last RELENG_7 update a new rc.conf variable named_conf appeared. How is this supposted to work with a chroot named? I guess not at all? I have in my rc.conf: named_enable="YES" named_program="/usr/local/sbin/named" named_flags="-u bind -c /etc/named/named.conf" named_chrootdir="/usr/chroot/named" named_symlink_enable="YES" named_conf="/usr/chroot/named/etc/named/named.conf" #named_conf="/etc/named/named.conf" When I now try to start named: # /etc/rc.d/named start /usr/chroot/named/etc/named/named.conf:12: change directory to '/etc/named' failed: file not found /usr/chroot/named/etc/named/named.conf:12: parsing failed /etc/rc.d/named: ERROR: named-checkconf for $named_conf failed Exit 3 # Of cource /etc/named does not exists because when the configuration file is used, /etc/named is for named in reality /usr/chroot/named/etc/named... To illustrate how it is implemented and how it would work if it gets right: # named-checkconf /usr/chroot/named/etc/named/named.conf /usr/chroot/named/etc/named/named.conf:12: change directory to '/etc/named' failed: file not found /usr/chroot/named/etc/named/named.conf:12: parsing failed Exit 1 # named-checkconf -t /usr/chroot/named /etc/named/named.conf # Could this please be fixed so it works with a chrooted named too? I now have to change the rc.d file on my own to get named to startup (Luky me I added backup resolvers in resolv.conf before I rebooted the system) -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/