freebsd-dev/etc
Dimitry Andric 66aa9b8dc9 Whenever you boot with nfsv4_server_enable=NO (the default) in rc.conf,
the /etc/rc.d/nfsd script sets vfs.nfsd.server_max_nfsvers to 3.

Then, when you set nfsv4_server_enable=YES in rc.conf, and restart nfsd
via the rc.d script, without rebooting, the sysctl does *not* get reset
to max version 4, so NFSv4 still doesn't work.

Fix this by explicitly setting vfs.nfsd.server_max_nfsvers to 4 when
NFSv4 is requested.

I also added resetting of the nfs_privport sysctls, since this has the
same issue: nfs_reserved_port_only=YES in rc.conf sets the nfs_privport
sysctl to 1, but in the other case, the sysctl doesn't get reset to 0.

Reviewed by:	rmacklem
Silence from:	rc@
MFC after:	3 days
2011-11-05 16:47:47 +00:00
..
bluetooth Correct BD_ADDR entry for "Dummy" device in the default hcsecd.conf. 2006-05-18 17:53:49 +00:00
defaults Increase default scrub threshold from 30 days to 5 weeks. Using 2011-10-27 21:25:41 +00:00
devd Add new USB IDs to RUN driver. Update usb.conf. 2011-10-19 10:09:01 +00:00
etc.amd64 Remove the reference to pseudo-terminals from the description. 2011-03-30 08:22:29 +00:00
etc.arm Remove the reference to pseudo-terminals from the description. 2011-03-30 08:22:29 +00:00
etc.i386 Remove the reference to pseudo-terminals from the description. 2011-03-30 08:22:29 +00:00
etc.ia64 Remove the reference to pseudo-terminals from the description. 2011-03-30 08:22:29 +00:00
etc.mips Remove the reference to pseudo-terminals from the description. 2011-03-30 08:22:29 +00:00
etc.pc98 Remove the reference to pseudo-terminals from the description. 2011-03-30 08:22:29 +00:00
etc.powerpc Remove the reference to pseudo-terminals from the description. 2011-03-30 08:22:29 +00:00
etc.sparc64 Remove the reference to pseudo-terminals from the description. 2011-03-30 08:22:29 +00:00
gss Implement support for RPCSEC_GSS authentication to both the NFS client 2008-11-03 10:38:00 +00:00
mail o Add user 'hast'. 2011-01-31 07:47:28 +00:00
mtree Revive the LLVM and Clang license files, which were removed in my 2011-09-29 18:12:40 +00:00
namedb Commemorate the release of RFC 6303 by updating the comments regarding 2011-07-17 06:20:47 +00:00
pam.d Forgot to commit this change along with r219563: pam_group(8) now issues 2011-03-15 10:13:35 +00:00
periodic Increase default scrub threshold from 30 days to 5 weeks. Using 2011-10-27 21:25:41 +00:00
ppp Remove COMPILATIONDATE from the default section. This string is no longer 2010-02-16 01:07:06 +00:00
rc.d Whenever you boot with nfsv4_server_enable=NO (the default) in rc.conf, 2011-11-05 16:47:47 +00:00
root Switch the default terminal emulation style to xterm for most platforms. 2009-11-13 05:54:55 +00:00
sendmail Minor change to force commit this file so new freebsd*.cf files are 2011-06-14 04:34:20 +00:00
amd.map Switch default proto to TCP. 2006-11-06 01:42:11 +00:00
apmd.conf
auth.conf
crontab Remove HOME= - this has surprised me several times in the past. 2009-06-14 06:37:19 +00:00
csh.cshrc
csh.login Change the commented msgs examples in profile/csh.login from -f to -q. 2010-05-15 17:49:56 +00:00
csh.logout
ddb.conf Use the new command file feature of ddb(8) to support setting ddb(4) 2008-03-05 18:32:58 +00:00
devd.conf - Add support for a "!" character in regex matching in devd(8). It inverts 2011-10-26 02:11:28 +00:00
devfs.conf Remove example for linking /dev/vga to /dev/ttyv0, this hasn't been 2011-10-27 20:39:20 +00:00
dhclient.conf
disktab Replace duplicate and not quite accurate capabilities 2006-10-14 16:39:03 +00:00
fbtab
freebsd-update.conf Add support for backing up the old kernel when installing a new kernel 2009-08-19 20:47:31 +00:00
ftpusers o Add user 'hast'. 2011-01-31 07:47:28 +00:00
gettytab Fix spelling of "weirdo" in /etc/gettytab comment. 2010-07-12 19:09:18 +00:00
group Add 'hast' user and 'hast' group that will be used by hastd (and maybe hastctl) 2011-01-28 22:28:12 +00:00
hosts
hosts.allow Comment out lines that use example addresses and example.com names so 2006-08-29 09:20:48 +00:00
hosts.equiv
hosts.lpd
inetd.conf Add -k to the recommended fingerd(8) command line. 2010-04-01 13:13:09 +00:00
libalias.conf Fix a regression: let natd load libalias modules before /usr is mounted 2006-10-08 14:02:00 +00:00
login.access
login.conf Remove vestiges of 'slip'. 2010-06-19 09:21:34 +00:00
mac.conf
Makefile Revert r224760, and enhance the sed patterns from r224659 to comment out 2011-08-10 20:52:02 +00:00
man.alias
master.passwd Change hast user home directory to /var/empty. 2011-01-28 22:29:38 +00:00
minfree
motd Fix path to the handbook and provide a hint about how to install it if it 2011-08-26 14:05:48 +00:00
netconfig
netstart /etc/rc.d/network_ipv6 was deprecated. 2010-08-05 15:11:03 +00:00
network.subr Add support for removing addresses added by ipv6_prefix_hostid_addr_up() 2011-10-23 07:37:36 +00:00
networks
newsyslog.conf Updated `flags' field description. 2011-05-03 12:22:46 +00:00
nls.alias
nscd.conf - Extend the nsswitch to support Services, Protocols and Rpc 2006-04-28 12:03:38 +00:00
nsmb.conf
nsswitch.conf Revert r224760, and enhance the sed patterns from r224659 to comment out 2011-08-10 20:52:02 +00:00
ntp.conf 1) Use our vendor domain at the pool. 2009-07-13 05:51:33 +00:00
opieaccess
pccard_ether Implement a "quiet" mode for rc.d/netif, which only outputs 2008-06-23 20:50:11 +00:00
pf.os Sync pf.os with OpenBSD: 2011-09-08 23:46:07 +00:00
phones Kill the default phone numbers. 2006-08-31 21:13:12 +00:00
portsnap.conf Now that the portsnap buildbox is generating the raw bits for INDEX-9, 2011-10-12 03:29:12 +00:00
printcap
profile Change the commented msgs examples in profile/csh.login from -f to -q. 2010-05-15 17:49:56 +00:00
protocols Update /etc/protocols with IANA list updated 2007-02-12 2007-05-20 03:55:22 +00:00
rc Rather than trusting that nothing is going to sneak in before the 2011-04-29 21:10:41 +00:00
rc.bsdextended Clean up, comment out non-base utilities, fix up comments. 2006-04-22 11:02:44 +00:00
rc.firewall Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
rc.initdiskless Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
rc.resume Consistently use full pathnames for external commands. 2010-08-13 21:23:13 +00:00
rc.sendmail
rc.shutdown Instead of killing the 'watchdog' subshell and leaving a sleep for 2009-01-25 10:31:45 +00:00
rc.subr rc.subr: Make sure all functions are under if [ -z "${_rc_subr_loaded}" ]. 2011-06-19 15:23:32 +00:00
rc.suspend Consistently use full pathnames for external commands. 2010-08-13 21:23:13 +00:00
regdomain.xml More Japan regulatory domain fixes: 2011-07-14 05:49:35 +00:00
remote Add ucomX shortcuts just like its uart sibling. 2008-10-27 17:19:14 +00:00
rpc
services Add for existing protocol entries the missing SCTP port allocations 2010-11-13 17:52:04 +00:00
shells
snmpd.config Add (disabled) sample configuration lines needed to enable snmp_target(3) module 2010-12-20 17:28:15 +00:00
sysctl.conf
syslog.conf syslog.conf: pop up from logging only ppp messages at the end of file 2009-06-11 15:07:02 +00:00
termcap.small Fix termcap entry typo. 2011-02-09 10:06:31 +00:00