Re: 'service named reload' with non-default system directories.

From: Ian FREISLICH <ianf_at_clue.co.za>
Date: Wed, 24 Apr 2013 18:55:42 +0200
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
Received on Wed Apr 24 2013 - 14:55:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:36 UTC