1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00
freebsd/etc/rc.d
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
..
abi
accounting The new accounting file needs to be 644 so that unprivileged users 2011-02-24 06:28:48 +00:00
addswap
adjkerntz
amd
apm
apmd
archdep
atm1
atm2
atm3
auditd
bgfsck
bluetooth Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
bootparams
bridge Use REQUIRE: line to reorder rc.d/bridge instead of BEFORE: line. 2011-09-20 00:37:35 +00:00
bsnmpd
bthidd
ccd
cleanvar Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
cleartmp Avoid to try to remove suj journal file (.sujournal) and conventional 2010-09-05 05:44:40 +00:00
cron
DAEMON
ddb This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
defaultroute /etc/rc.d/defaultroute currently bails immediately if all interfaces 2010-09-29 13:08:23 +00:00
devd Introduce to rc.subr get_pidfile_from_conf(). It does just what it sounds 2011-04-23 04:26:31 +00:00
devfs
dhclient Fix handling of rc_force in /etc/rc.d/dhclient 2011-10-28 06:03:38 +00:00
dmesg
dumpon This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
encswap
faith Replace ${SYSCTL_W} with ${SYSCTL} in rc.d scripts, as they are identical. 2011-03-30 01:19:00 +00:00
FILESYSTEMS
fsck
ftp-proxy
ftpd
gbde
geli Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
geli2 Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
gptboot Add gptboot_enable rc variable, which allows to turn gptboot reporting off in 2010-11-24 15:25:17 +00:00
gssd
hastd Remove the svn:executable property on Makefile 2011-03-13 08:22:46 +00:00
hcsecd
hostapd
hostid Replace ${SYSCTL_W} with ${SYSCTL} in rc.d scripts, as they are identical. 2011-03-30 01:19:00 +00:00
hostid_save This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
hostname
inetd
initrandom Replace ${SYSCTL_W} with ${SYSCTL} in rc.d scripts, as they are identical. 2011-03-30 01:19:00 +00:00
ip6addrctl Split $ipv6_prefer into $ip6addrctl_policy and $ipv6_activate_all_interfaces. 2010-09-13 19:55:40 +00:00
ipfilter Remove redundant keywords. 2011-05-17 07:40:13 +00:00
ipfs
ipfw Replace ${SYSCTL_W} with ${SYSCTL} in rc.d scripts, as they are identical. 2011-03-30 01:19:00 +00:00
ipmon Allow starting /etc/rc.d/ipmon if ipnat is enabled but ipfilter is not 2010-08-01 15:41:00 +00:00
ipnat
ipsec
ipxrouted
jail Replace ${SYSCTL_W} with ${SYSCTL} in rc.d scripts, as they are identical. 2011-03-30 01:19:00 +00:00
kadmind
kerberos
keyserv
kld Revert the apparently-unecessary module_path twiddling from r223917 2011-07-22 21:08:19 +00:00
kldxref
kpasswdd
ldconfig Don't require /usr/lib/aout to be on the system. Test for its 2011-01-06 21:09:22 +00:00
local
localpkg
lockd Delete the /etc/rc.d/nfsserver script, since it is no 2011-07-08 00:49:50 +00:00
LOGIN
lpd
Makefile Add etc/rc.d/static_ndp, analogous to etc/rc.d/static_arp. 2011-10-23 09:08:42 +00:00
mdconfig This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
mdconfig2 Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
mixer
motd
mountcritlocal Add a sync to the shutdown step. In the common case this will be harmless 2010-11-25 18:20:28 +00:00
mountcritremote Add the netwait rc.d script. It waits for the specified period for the 2011-06-19 22:48:40 +00:00
mountd Delete the /etc/rc.d/nfsserver script, since it is no 2011-07-08 00:49:50 +00:00
mountlate
moused
mroute6d
mrouted
msgs
named Introduce to rc.subr get_pidfile_from_conf(). It does just what it sounds 2011-04-23 04:26:31 +00:00
natd
netif Split $ipv6_prefer into $ip6addrctl_policy and $ipv6_activate_all_interfaces. 2010-09-13 19:55:40 +00:00
netoptions Add $ipv6_cpe_wanif to enable functionality required for IPv6 CPE 2011-09-13 00:06:11 +00:00
netwait I knew there was something funny about this line 2011-06-22 06:27:32 +00:00
NETWORKING Add etc/rc.d/static_ndp, analogous to etc/rc.d/static_arp. 2011-10-23 09:08:42 +00:00
newsyslog
nfscbd
nfsclient Make three one line changes to the rc scripts so that 2011-06-11 21:14:22 +00:00
nfsd Whenever you boot with nfsv4_server_enable=NO (the default) in rc.conf, 2011-11-05 16:47:47 +00:00
nfsuserd
nisdomain
nscd Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
nsswitch Prefer echo over printf 2010-09-27 15:55:39 +00:00
ntpd
ntpdate
opensm Add svn:executable property 2011-04-25 05:57:01 +00:00
othermta
pf Remove redundant keywords. 2011-05-17 07:40:13 +00:00
pflog
pfsync
power_profile
powerd
ppp
pppoed
pwcheck
quota Run load_rc_config before stop_cmd definition, so that ${quotaoff_flags} 2011-06-28 14:26:34 +00:00
random
rarpd
rctl Add startup script, to load rules from /etc/rctl.conf. 2011-03-30 18:32:45 +00:00
resolv Use resolvconf(8) to create /etc/resolv.conf, not directly overwrite it. 2011-09-19 15:56:50 +00:00
rfcomm_pppd_server Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
root
route6d
routed
routing rc.d/routing: Fix ugly output with additional routing options. 2011-07-17 14:52:55 +00:00
rpcbind Let rpcbind clean up after itself 2011-01-31 21:03:08 +00:00
rtadvd - Remove $ipv6_gateway_enable check. 2011-06-11 21:41:44 +00:00
rtsold Add the shutdown KEYWORD. 2010-02-27 19:02:21 +00:00
rwho
savecore This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
sdpd
securelevel Replace ${SYSCTL_W} with ${SYSCTL} in rc.d scripts, as they are identical. 2011-03-30 01:19:00 +00:00
sendmail
serial
SERVERS This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
sppp
sshd Upgrade to OpenSSH 5.8p2. 2011-05-04 07:34:44 +00:00
statd Delete the /etc/rc.d/nfsserver script, since it is no 2011-07-08 00:49:50 +00:00
static_arp
static_ndp Correctly reassign copyright of etc/rc.d/static_ndp back to delphij@ 2011-10-23 10:17:42 +00:00
stf Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
swap1
syscons Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
sysctl This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
syslogd
timed
tmp Create a function for the code from r192246 so that it can be used both 2011-04-25 06:03:22 +00:00
ubthidhci Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
ugidfw
var Add rc.d/kld to load kernel modules after local disks are up. 2011-06-18 19:41:05 +00:00
virecover
watchdogd
wpa_supplicant
ypbind
yppasswdd
ypserv
ypset
ypupdated
ypxfrd
zfs
zvol Commit two more files missed in r219089. 2011-02-27 19:44:10 +00:00