freebsd-nq/etc
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
..
bluetooth Start integrating Bluetooth into rc.d system. 2005-11-10 19:09:22 +00:00
defaults Overhaul the named boot script: 2006-02-13 08:45:51 +00:00
etc.alpha
etc.amd64
etc.arm
etc.i386
etc.ia64
etc.powerpc Comment out ofw_console 'screen' entry and zs tty entries. 2005-09-10 22:46:03 +00:00
etc.sparc64 Enable getty(8) on ttyu2 by default in order to get machines that use a 2006-02-04 23:30:09 +00:00
gss Add a new extensible GSS-API layer which can support GSS-API plugins, 2005-12-29 14:40:22 +00:00
isdn Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
mail Finish adding _dhcp user. 2005-06-07 03:41:20 +00:00
mtree Change group for /var/audit to audit, so that audit review can be 2006-02-05 18:22:56 +00:00
namedb In accordance with my intentions announced (and not objected to) 2005-09-05 13:42:22 +00:00
pam.d Remove rexecd(8), a server that implements a particularly insecure 2005-06-10 20:52:36 +00:00
periodic When there are no interesting information in output, exit with 0. 2006-02-07 08:21:06 +00:00
ppp Catch up with PHK's sio(4) cuaa->cuad rework [sys/dev/sio/sio.c rev. 1.456]. 2004-11-19 17:12:56 +00:00
rc.d Overhaul the named boot script: 2006-02-13 08:45:51 +00:00
root
sendmail Use new OSTYPE(freebsd6). 2005-06-14 02:25:17 +00:00
amd.map
apmd.conf
auth.conf
crontab
csh.cshrc
csh.login
csh.logout
devd.conf Move the remaining entries from usbd.conf to devd.conf. This now 2005-12-11 00:18:28 +00:00
devfs.conf
dhclient.conf
disktab
fbtab
ftpusers Finish adding _dhcp user. 2005-06-07 03:41:20 +00:00
gettytab Add gettytab entry for 3wire 19200 baud console 2006-01-22 15:33:16 +00:00
group Assign gid 77 to audit instead of gid 73. The ports group list did not 2006-02-05 19:34:09 +00:00
hosts
hosts.allow
hosts.equiv
hosts.lpd
inetd.conf The rpc.pcnfsd server was in the base for a little over seven minutes 2006-02-05 19:23:05 +00:00
login.access
login.conf Add a short description of how a literal colon ':' can be inlined in the 2005-08-31 15:02:11 +00:00
mac.conf
Makefile Install audit_control and audit_user, both of which are likely to be 2006-02-12 13:01:39 +00:00
man.alias
master.passwd Add _dhcp user/group as required by the OpenBSD dhclient. 2005-06-06 20:19:56 +00:00
minfree
motd
netconfig
netstart Transforming "ppp-user" into just "ppp", step 4: 2005-10-29 05:08:00 +00:00
network.subr Add a new configuration variable, ipv4_addrs_<ifn>, which adds one or 2005-11-14 23:34:50 +00:00
networks
newsyslog.conf - Update etc/rc.d/newsyslog to FreeBSD standards and install it. 2005-03-02 00:40:55 +00:00
nls.alias
nsmb.conf
opieaccess
pccard_ether Use more rc.subr bits to clean up pccard_ether and implement new 2005-10-03 18:20:44 +00:00
pf.conf Document the user/group LOR in our sample pf.conf 2006-01-27 17:16:20 +00:00
pf.os
phones
portsnap.conf Add a warning pointing out that incomplete ports trees are not 2006-01-18 03:40:57 +00:00
printcap
profile
protocols Add CARP (Common Address Redundancy Protocol), which allows multiple 2005-02-22 13:04:05 +00:00
rc Remove rcconf.sh from /etc/rc.d, and instead load the configuration 2005-12-10 20:21:46 +00:00
rc.bsdextended
rc.firewall don't match packets other than IPv4 against divert rule. 2005-11-18 02:23:59 +00:00
rc.firewall6 stop RFC 4193 address on the outside interface. 2005-10-05 07:00:42 +00:00
rc.initdiskless Creating memory file systems with softupdates enabled is pointless, 2006-01-11 21:59:30 +00:00
rc.resume
rc.sendmail
rc.shutdown Introduce startup scripts from the local_startup directories to 2005-12-02 20:06:07 +00:00
rc.subr Don't include geli devices in list when noauto is specified in the options field. 2006-02-12 12:57:07 +00:00
rc.suspend
remote
rpc
services o Add IANA assigned InterBase Database Remote Protocol 3050/tcp/udp. 2006-01-25 17:37:15 +00:00
shells
snmpd.config The bar.com is an existing domain. Instead of trying to listen on 2006-02-08 11:55:03 +00:00
sysctl.conf
syslog.conf Fix a terrible braino in last commit. Put kern.debug back to /var/log/messages 2005-03-12 12:31:16 +00:00
termcap.small