freebsd-skq/etc/rc.d
Doug Barton 20ceedfb69 Fix various issues with the NFS and RPC related scripts:
1. Add new functionality to the force_depend method to incorporate the
   tests for whether the service is enabled and/or already running.
2. Add a new option to bypass checking only that the service is enabled
   at boot time, and always check if it is running.
3. Use this new functionality to greatly simplify the rc.d scripts that
   use force_depend.
4. Add a force_depend for statd in lockd
5. Remove the check that either nfs_server or nfs_client is _enable'd
   from statd and lockd. This was always overkill, and prevented using
   the {one|force}start options, as well as stop'ing on the command line.
6. The yp* scripts had some of their arguments in various weird orders.
   Bring them into line with the model.
7. If mountd fails to create /var/db/mountdtab, err out.

Ideas, suggestions, and/or review from delphij and jilles.
Pointy hats are completely my responsibility however.
2012-02-14 10:51:24 +00:00
..
abi As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
accounting Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
addswap In the days before r208307 addswap was running early in the second stage 2012-02-11 06:21:16 +00:00
adjkerntz As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
amd Fix various issues with the NFS and RPC related scripts: 2012-02-14 10:51:24 +00:00
apm Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
apmd Fix various issues with the NFS and RPC related scripts: 2012-02-14 10:51:24 +00:00
archdep Small cleanup, add (spurious) quotation marks around the value 2009-05-30 21:51:38 +00:00
atm1 As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
atm2 As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
atm3 As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
auditd Add 'nojail' keyword as auditd(8) can't really do anything useful when 2012-01-06 14:00:31 +00:00
bgfsck Spelling fixes for etc/ 2012-01-07 16:10:32 +00:00
bluetooth Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
bootparams Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
bridge Use REQUIRE: line to reorder rc.d/bridge instead of BEFORE: line. 2011-09-20 00:37:35 +00:00
bsnmpd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
bthidd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
ccd Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
cleanvar Move utmpx handling out of init(8). 2012-02-11 20:47:16 +00:00
cleartmp Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
cron Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
DAEMON Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
ddb Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
defaultroute /etc/rc.d/defaultroute currently bails immediately if all interfaces 2010-09-29 13:08:23 +00:00
devd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
devfs As it stands right now, the default devfs rulesets are only loaded as a 2012-02-08 08:52:40 +00:00
dhclient dhclient: don't use syslog for logging non-DHCP interface errors 2012-01-20 17:19:50 +00:00
dmesg Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
dumpon This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
encswap As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
faith Replace ${SYSCTL_W} with ${SYSCTL} in rc.d scripts, as they are identical. 2011-03-30 01:19:00 +00:00
FILESYSTEMS As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
fsck In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
ftp-proxy Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
ftpd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
gbde As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
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 Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
gssd Implement support for RPCSEC_GSS authentication to both the NFS client 2008-11-03 10:38:00 +00:00
hastd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
hcsecd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
hostapd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
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 There is no longer a need to abstract ${rcvar_manpage} as we are not 2012-01-08 20:25:29 +00:00
inetd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
initrandom Replace ${SYSCTL_W} with ${SYSCTL} in rc.d scripts, as they are identical. 2011-03-30 01:19:00 +00:00
ip6addrctl Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
ipfilter Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
ipfs Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
ipfw Replace ${SYSCTL_W} with ${SYSCTL} in rc.d scripts, as they are identical. 2011-03-30 01:19:00 +00:00
ipmon Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
ipnat Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
ipsec Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
ipxrouted Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
jail When creating the jails /dev/log symlink, do it by full path to avoid 2012-01-20 22:55:19 +00:00
kadmind As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
kerberos As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
keyserv Fix various issues with the NFS and RPC related scripts: 2012-02-14 10:51:24 +00:00
kld Ensure kldxref is run first. Currently both 'kldxref' and 'kld' depend 2011-12-01 22:50:10 +00:00
kldxref As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
kpasswdd As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
ldconfig Don't require /usr/lib/aout to be on the system. Test for its 2011-01-06 21:09:22 +00:00
local Output information only if /etc/rc.local exists. 2008-06-22 16:23:39 +00:00
localpkg As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
lockd Fix various issues with the NFS and RPC related scripts: 2012-02-14 10:51:24 +00:00
LOGIN Avoid using BEFORE in the utx rc script. 2012-02-12 07:45:48 +00:00
lpd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
Makefile Move utmpx handling out of init(8). 2012-02-11 20:47:16 +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 As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
motd In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
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 Fix various issues with the NFS and RPC related scripts: 2012-02-14 10:51:24 +00:00
mountlate As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
moused Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
mroute6d Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
mrouted Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
msgs As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
named Introduce to rc.subr get_pidfile_from_conf(). It does just what it sounds 2011-04-23 04:26:31 +00:00
natd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
netif Perform IPv6 DAD only in ifn_start. 2012-01-29 08:33:34 +00:00
netoptions Add $ipv6_cpe_wanif to enable functionality required for IPv6 CPE 2011-09-13 00:06:11 +00:00
netwait Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +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 Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
nfscbd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
nfsclient Make three one line changes to the rc scripts so that 2011-06-11 21:14:22 +00:00
nfsd Fix various issues with the NFS and RPC related scripts: 2012-02-14 10:51:24 +00:00
nfsuserd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
nisdomain Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
nscd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
nsswitch Prefer echo over printf 2010-09-27 15:55:39 +00:00
ntpd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
ntpdate Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
opensm Add svn:executable property 2011-04-25 05:57:01 +00:00
othermta As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
pf Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
pflog Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
pfsync Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
power_profile As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
powerd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
ppp Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
pppoed Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
pwcheck Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
quota Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
random As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
rarpd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
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 Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
root Do nextboot -D twice during boot. The first time in rc.d/root which ensures that 2008-03-11 17:21:14 +00:00
route6d Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
routed Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
routing Fix $ipv6_network_interfaces handling in rc.d/routing. It could fail when 2012-02-04 18:14:49 +00:00
rpcbind Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
rtadvd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
rtsold Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
rwho Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
savecore This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
sdpd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
securelevel Replace ${SYSCTL_W} with ${SYSCTL} in rc.d scripts, as they are identical. 2011-03-30 01:19:00 +00:00
sendmail Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
serial With uart(4) default, change /dev/cuad# to /dev/cuau# and 2008-07-19 20:12:02 +00:00
SERVERS start watchdogd before most of other daemons/servers 2012-02-12 14:58:50 +00:00
sppp As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
sshd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
statd Fix various issues with the NFS and RPC related scripts: 2012-02-14 10:51:24 +00:00
static_arp Set svn:executable to *. 2010-01-11 23:32:36 +00:00
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 Backout previous commit due to PEBKAC 2009-03-11 12:55:12 +00:00
syscons rc.d: Eliminate some unnecessary non-POSIX constructs: 2011-11-08 23:02:32 +00:00
sysctl This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
syslogd Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
timed Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
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 Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
ugidfw Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
utx Avoid using BEFORE in the utx rc script. 2012-02-12 07:45:48 +00:00
var In the days before r208307 addswap was running early in the second stage 2012-02-11 06:21:16 +00:00
virecover Prepare for the removal of set_rcvar() by changing the rcvar= 2012-01-14 02:18:41 +00:00
watchdogd start watchdogd before most of other daemons/servers 2012-02-12 14:58:50 +00:00
wpa_supplicant Move is_wired_interface() from rc.d/wpa_supplicant into network.subr, 2009-08-23 05:47:19 +00:00
ypbind Fix various issues with the NFS and RPC related scripts: 2012-02-14 10:51:24 +00:00
yppasswdd Fix various issues with the NFS and RPC related scripts: 2012-02-14 10:51:24 +00:00
ypserv Fix various issues with the NFS and RPC related scripts: 2012-02-14 10:51:24 +00:00
ypset Fix various issues with the NFS and RPC related scripts: 2012-02-14 10:51:24 +00:00
ypupdated Fix various issues with the NFS and RPC related scripts: 2012-02-14 10:51:24 +00:00
ypxfrd Fix various issues with the NFS and RPC related scripts: 2012-02-14 10:51:24 +00:00
zfs Currently there is a problem with fscking UFS file systems created on 2009-07-29 05:23:52 +00:00
zvol Commit two more files missed in r219089. 2011-02-27 19:44:10 +00:00