freebsd-dev/share
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
..
colldef New Ukrainian locale: uk_UA.CP1251. 2005-03-04 14:24:30 +00:00
dict Add more technical terms to reduce false positives when spellchecking 2005-05-04 14:19:36 +00:00
doc sync with KAME regarding NDP 2005-10-21 16:23:01 +00:00
examples Document NO_AUDIT. 2006-02-12 19:56:01 +00:00
info Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
isdn
man Overhaul the named boot script: 2006-02-13 08:45:51 +00:00
me
misc o DragonFly 1.4.0 added. 2006-01-08 20:23:35 +00:00
mk Handle NO_INCS solely inside bsd.incs.mk. 2006-02-03 16:50:32 +00:00
mklocale Enable SWIDTH. 2006-02-12 17:56:16 +00:00
monetdef Fix currency symbol -- it should be 'NEW SHEQEL SIGN' (U+20AA). 2005-11-16 11:20:51 +00:00
msgdef Sort LOCALES. 2005-09-28 07:40:03 +00:00
numericdef New Ukrainian locale: uk_UA.CP1251. 2005-03-04 14:24:30 +00:00
security Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
sendmail Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
skel Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
snmp Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
syscons Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
tabset
termcap xterm-basic: add AX flag 2005-10-18 16:11:48 +00:00
timedef New Ukrainian locale: uk_UA.CP1251. 2005-03-04 14:24:30 +00:00
zoneinfo Merge tzdata2005r from vendor branch. Only significant change is to 2005-12-27 19:55:21 +00:00
Makefile Introduce NO_LOCALES build option. 2005-08-05 14:59:50 +00:00
Makefile.inc