NetBSD/etc/rc.d
lukem bd11504cb2 - only perform the checkyesno on the variable named in $rcvar (rather than
implicitly using $name if $rcvar isn't set), and always perform this check,
  even when using start_cmd (et al).
  this check is performed before the pidcmd
  is run, speeding up scripts that weren't going to be run anyway.
  this should speed up booting slow systems.

- take advantage of the above and remove
	start_precmd="checkyesno foo"
  in scripts that use start_cmd.

- explicitly set rcvar=foo in the rc.d/foo scripts which have an equivalent
  rc.conf entry

- fix `rcvar' and `restart' when $rcvar isn't set.
  these above changes fix PR [bin/11027].

- when doing `force*', ignore the return value of *_precmd.
  this fixes PR [bin/10781].

- rename what sysdb provides from `databases' to `sysdb', to reflect
  the name of the script.

- improve the comments in rc.subr
2000-09-19 13:04:38 +00:00
..
DAEMON - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
LOGIN sort REQUIRE lines 2000-08-21 23:36:50 +00:00
Makefile convert fsck.sh -> fsck (using kill -TERM $$ to stop autoboot). 2000-08-21 23:38:07 +00:00
NETWORK * add new dummy dependancy `NETWORK' to be REQUIREd by services which need 2000-07-26 00:11:48 +00:00
SERVERS Startup script glue for the Heimdal KDC. 2000-08-06 21:32:56 +00:00
accounting - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
amd - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
apmd - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
bootconf.sh `REQUIRE bootconf' in lkm1 rather than `BEFORE beforenetlkm' in bootconf.sh 2000-08-21 23:34:45 +00:00
bootparams - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
ccd Use load_rc_config() (from rc.subr) instead of sourcing /etc/rc.conf. 2000-05-13 08:45:06 +00:00
cleartmp - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
cron - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
dhclient - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
dhcpd - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
dhcrelay - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
dmesg - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
fsck convert fsck.sh -> fsck (using kill -TERM $$ to stop autoboot). 2000-08-21 23:38:07 +00:00
gated - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
inetd - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
ipfilter - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
ipmon - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
ipnat - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
ipsec - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
kdc - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
ldconfig Use load_rc_config() (from rc.subr) instead of sourcing /etc/rc.conf. 2000-05-13 08:45:06 +00:00
lkm1 - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
lkm2 - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
lkm3 - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
local support running /etc/rc.shutdown.local 2000-08-21 23:33:06 +00:00
lpd - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
mopd - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
motd - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
mountall Use load_rc_config() (from rc.subr) instead of sourcing /etc/rc.conf. 2000-05-13 08:45:06 +00:00
mountcritlocal move recreating /var/run/utmp from mountcritlocal (where /var/run is 2000-07-27 13:58:49 +00:00
mountcritremote * add new dummy dependancy `NETWORK' to be REQUIREd by services which need 2000-07-26 00:11:48 +00:00
mountd * add new dummy dependancy `NETWORK' to be REQUIREd by services which need 2000-07-26 00:11:48 +00:00
mrouted - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
named - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
network REQUIRE ipfilter and ipsec 2000-08-21 23:35:20 +00:00
nfsd * Portmap is now called rpcbind. 2000-06-02 22:54:08 +00:00
nfslocking - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
ntpd - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
ntpdate - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
postfix - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
ppp Adjust comment to what's actually being done 2000-08-02 11:07:51 +00:00
pwcheck * add new dummy dependancy `NETWORK' to be REQUIREd by services which need 2000-07-26 00:11:48 +00:00
quota Use load_rc_config() (from rc.subr) instead of sourcing /etc/rc.conf. 2000-05-13 08:45:06 +00:00
raidframe At boot, initiate parity/mirror reconstruction as required. 2000-05-16 16:54:33 +00:00
rarpd - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
rbootd - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
root Use load_rc_config() (from rc.subr) instead of sourcing /etc/rc.conf. 2000-05-13 08:45:06 +00:00
route6d - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
routed - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
rpcbind - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
rtadvd - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
rtsold - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
rwho - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
savecore - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
screenblank - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
securelevel REQUIRE ipnat and mountd. 2000-09-06 01:05:43 +00:00
sendmail - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
sshd - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
swap1 use "load_rc_config swap" for swap1 and swap2 2000-07-17 12:27:04 +00:00
swap2 remove BEFORE DAEMON 2000-08-21 23:35:41 +00:00
sysctl migrate raising of securelevel from sysctl to separate securelevel script. 2000-08-21 23:31:24 +00:00
sysdb - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
syslogd - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
timed - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
ttys Use load_rc_config() (from rc.subr) instead of sourcing /etc/rc.conf. 2000-05-13 08:45:06 +00:00
virecover * add new dummy dependancy `NETWORK' to be REQUIREd by services which need 2000-07-26 00:11:48 +00:00
wscons - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
xdm - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
xfs - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
ypbind - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
yppasswdd - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00
ypserv - only perform the checkyesno on the variable named in $rcvar (rather than 2000-09-19 13:04:38 +00:00