From owner-freebsd-current@FreeBSD.ORG Wed Apr 24 16:55:54 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 90406AC8; Wed, 24 Apr 2013 16:55:54 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from zcs03.jnb1.cloudseed.co.za (zcs03.jnb1.cloudseed.co.za [41.154.0.139]) by mx1.freebsd.org (Postfix) with ESMTP id 2D2391067; Wed, 24 Apr 2013 16:55:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zcs03.jnb1.cloudseed.co.za (Postfix) with ESMTP id A89E42B43067; Wed, 24 Apr 2013 18:55:45 +0200 (SAST) X-Virus-Scanned: amavisd-new at zcs03.jnb1.cloudseed.co.za Received: from zcs03.jnb1.cloudseed.co.za ([127.0.0.1]) by localhost (zcs03.jnb1.cloudseed.co.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MUoUHbkPQzjL; Wed, 24 Apr 2013 18:55:44 +0200 (SAST) Received: from clue.co.za (unknown [41.154.88.19]) by zcs03.jnb1.cloudseed.co.za (Postfix) with ESMTPSA id 57DCD2B42FB0; Wed, 24 Apr 2013 18:55:44 +0200 (SAST) Received: from localhost ([127.0.0.1] helo=zen.clue.co.za) by clue.co.za with esmtp (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1UV2yt-0006YV-34; Wed, 24 Apr 2013 18:55:43 +0200 To: sbruno@freebsd.org From: Ian FREISLICH Subject: Re: 'service named reload' with non-default system directories. In-reply-to: <1366820838.1405.3.camel@localhost> References: <1366820838.1405.3.camel@localhost> X-Attribution: BOFH Date: Wed, 24 Apr 2013 18:55:42 +0200 Message-Id: Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Apr 2013 16:55:54 -0000 Sean Bruno wrote: > Would we need a change to /etc/defaults/rc.conf to set ${named_confdir} > to the default location if not set? I'm not sure. It's derived: load_rc_config $name # Updating the following variables requires that rc.conf be loaded first # required_dirs="$named_chrootdir" # if it is set, it must exist named_confdir="${named_chrootdir}${named_conf%/*}" I don't think that I did a particularly good job of making it work for all instances. It's more of an opening move to get this working properly wherever the admin chooses to put the named chroot. I'm still expecting comments from Doug Barton. > Also, there already appears to be a ${named_conf} that points to > whatever named.conf specified (defaults to /etc/namedb/named.conf). Is > this complementary to what you're poking at? This is specifically rndc (not named) that fails to find its key or config if you choose to use a chrootdir that isn't the default. Ian -- Ian Freislich