Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 03/12/2001 18:08:39
Module Name:	basesrc
Committed By:	lukem
Date:		Mon Mar 12 16:08:39 UTC 2001

Modified Files:
	basesrc/etc/rc.d: named

Log Message:
if $named_chrootdir != "", ensure that the following files, devices,
and links exist:
	${named_chrootdir}/usr/libexec/named-xfer
	${named_chrootdir}/dev/null
	${named_chrootdir}/etc/localtime
	/var/run/named.pid -> ${named_chrootdir}/var/run/named.pid
	/var/run/ndc -> ${named_chrootdir}/var/run/ndc
and then start named with the appropriate options to run chroot(2)ed
under $named_chrootdir as user named group named.

to take advantage of this, an admin should copy /etc/namedb ->
${named_chrootdir}/etc/namedb, and set named_chrootdir in /etc/rc.conf.

[dev/null & etc/localtime setup inspired by openbsd. i already had the rest]


To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 basesrc/etc/rc.d/named

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.