freebsd-dev/share/man/man5
Doug Barton 196b6a193e Overhaul the named boot script:
1. Remove a now-spurious NetBSD CVS Id, as we are no longer synching work
2. Remove a now-spurious BEFORE, since ntpdate now REQUIRE's named
3. Replace the call to set rcvar with what that function would output,
and generally reduce indirection ($name -> named) since it's highly
unlikely the name of the named process or service will change any time soon.
4. Resort the order the variables at the top of the file to a more
traditional format, and remove a spurious required_dirs from the top, as it
works better after load_rc_config.
5. We do not want the default reload method with named, so define a simple
but appropriate substitute using rndc. If I were writing this script for
the first time I would not include this at all, since it's preferable to
control a running daemon with rndc to start with, but given that this is
already here, let's do it right. I hope that future generations will
however resist the tempation to add reconfig to extra_commands.
6. By the same token, we want to use rndc to shut down named, but given
that by defining a stop function we lose the "find the process by its
pid file in an emergency" goodness of rc.subr, try to do something useful
in the event that rndc is not available, and keep the user informed.
7. Replace some "test -f" with "test -r" to handle the unlikely event
that the relevant file exists, but is unreadable.
8. Twiddle whitespace in a few areas, remove a spurious blank line,
a bogus double space, and try to do better indenting.
9. Improve generation of the rndc.key file significantly
a. If for some reason a user has an rndc.conf file, assume that they
did that on purpose, and hence know what they are doing, so leave them alone.
b. Introduce a named_uid configuration variable so that the user which owns
the rndc.key file and the user named runs as always match, and is more
easily configurable. This should dramatically reduce problems with rndc.
c. Also test that the rndc.key file size is greater than zero, rather than
simply that the file exists. I have seen at least one user report this exact
problem, and although neither of us is sure where the empty file came from,
the fix is simple, so include it.
d. Rather than try to create an rndc.key file in both /etc/namedb and the
chroot'ed /etc/namedb, assume that they are be the same (which they should
be), and only create the file in the chroot'ed version of the directory.
This partially addresses the problem described in conf/73929, but I have
not yet finished thinking about the PREFIX issue that PR also raises.

As a result of introducing the named_uid knob, the default named_flags
are now empty.

Update defaults/rc.conf and rc.conf(5) to reflect these changes.
2006-02-13 08:45:51 +00:00
..
a.out.5 Use 'manual page' instead of 'man page' for consistency. 2005-06-30 13:18:15 +00:00
acct.5
bluetooth.device.conf.5 Add bluetooth.device.conf(5) man page 2005-12-02 00:17:33 +00:00
bluetooth.hosts.5 Pathnames as .Nm arguments in the NAME section isn't a 2004-07-07 13:09:37 +00:00
bluetooth.protocols.5 Pathnames as .Nm arguments in the NAME section isn't a 2004-07-07 13:09:37 +00:00
core.5 Remove some information that only applies to the old a.out core dump format. 2004-11-22 03:15:21 +00:00
devfs.5 Mechanically kill hard sentence breaks and double whitespaces. 2004-07-03 18:29:24 +00:00
devfs.conf.5 Remove usbd(8) and all references to it. It is no longer necessary 2005-12-15 01:04:51 +00:00
devfs.rules.5 Expand contractions. 2006-02-01 14:33:14 +00:00
device.hints.5 Document portsize. 2003-09-19 22:27:54 +00:00
dir.5 Sort sections. 2005-01-21 08:36:40 +00:00
disktab.5 -mdoc sweep. 2005-11-18 10:56:28 +00:00
elf.5 Update the date. Forgotten in previous commit. 2005-12-19 01:51:17 +00:00
ethers.5 Fixed macro abuse. 2005-01-21 10:46:36 +00:00
eui64.5 Fixed markup. 2004-07-07 20:32:33 +00:00
fbtab.5
fdescfs.5 Deal with unsafe tab characters. 2004-07-02 19:55:26 +00:00
forward.5 Mechanically kill hard sentence breaks and double whitespaces. 2004-07-03 18:29:24 +00:00
fs.5 Expand *n't contractions. 2005-02-13 22:25:33 +00:00
fstab.5 Mechanically kill hard sentence breaks and double whitespaces. 2004-07-03 18:29:24 +00:00
group.5 Sort sections. 2005-01-21 08:36:40 +00:00
hesiod.conf.5 Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
hosts.5 Mechanically kill hard sentence breaks and double whitespaces. 2004-07-03 18:29:24 +00:00
hosts.equiv.5 Use 'manual page' instead of 'man page' for consistency. 2005-06-30 13:18:15 +00:00
hosts.lpd.5 Assorted markup, spelling, and grammar fixes. 2004-06-16 08:33:57 +00:00
intro.5 Sort sections. 2005-01-21 08:36:40 +00:00
libmap.conf.5 Update example libmap.conf file: 2005-10-27 16:59:02 +00:00
link.5 Mechanically kill hard sentence breaks and double whitespaces. 2004-07-03 18:29:24 +00:00
linprocfs.5 Sort sections. 2005-01-21 08:36:40 +00:00
mailer.conf.5 Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
make.conf.5 Document NO_AUDIT make variable. 2006-02-12 17:06:14 +00:00
Makefile config.5 was repocopied from share/man/man5/ to usr.sbin/config/. 2005-12-09 06:46:41 +00:00
moduli.5
motd.5
mqueuefs.5 Fix markup. 2005-12-05 09:31:23 +00:00
msdosfs.5 Remove superfluous reference to the FreeBSD handbook. 2005-09-14 16:32:21 +00:00
networks.5 Sort sections. 2005-01-21 08:36:40 +00:00
nsmb.conf.5 Add a nsmb.conf manual page. 2003-08-09 19:11:52 +00:00
nsswitch.conf.5 Add note to remove nis entries when compiling with NO_NIS. 2005-04-24 20:24:59 +00:00
passwd.5 A single `*' character doesn't disable *ANY* form of authentication. 2005-09-19 16:32:27 +00:00
pbm.5 Mechanically kill hard sentence breaks and double whitespaces. 2004-07-03 18:29:24 +00:00
periodic.conf.5 Document the daily_status_ata_raid_enable and daily_status_gmirror_enable 2006-01-31 19:14:28 +00:00
phones.5 Mechanically kill hard sentence breaks and double whitespaces. 2004-07-03 18:29:24 +00:00
portsnap.conf.5 Teach portsnap how to ignore unwanted parts of the ports tree. A line 2005-09-06 19:28:37 +00:00
procfs.5 Update doc dates. 2004-09-03 18:56:59 +00:00
protocols.5 Sort sections. 2005-01-21 08:36:40 +00:00
quota.user.5 Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
rc.conf.5 Overhaul the named boot script: 2006-02-13 08:45:51 +00:00
remote.5 Sort sections. 2005-01-21 08:36:40 +00:00
resolver.5 Improve the description of "timeout" and "attempts" resolver 2004-09-09 17:19:27 +00:00
services.5 Sort sections. 2005-01-21 08:36:40 +00:00
shells.5
stab.5 Sort sections. 2005-01-21 08:36:40 +00:00
style.Makefile.5 Replace "/etc/make.conf" with references to make.conf(5) 2005-10-10 14:55:59 +00:00
sysctl.conf.5 Mechanically kill hard sentence breaks and double whitespaces. 2004-07-03 18:29:24 +00:00
utmp.5 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00