Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 09/19/2000 16:04:39
Module Name:	basesrc
Committed By:	lukem
Date:		Tue Sep 19 13:04:39 UTC 2000

Modified Files:
	basesrc/etc: rc.subr
	basesrc/etc/rc.d: DAEMON accounting amd apmd bootparams cleartmp cron
	    dhclient dhcpd dhcrelay dmesg gated inetd ipfilter ipmon ipnat
	    ipsec kdc lkm1 lkm2 lkm3 lpd mopd motd mrouted named nfslocking
	    ntpd ntpdate postfix rarpd rbootd route6d routed rpcbind rtadvd
	    rtsold rwho savecore screenblank sendmail sshd sysdb syslogd timed
	    wscons xdm xfs ypbind yppasswdd ypserv

Log Message:
- 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


To generate a diff of this commit:
cvs rdiff -r1.23 -r1.24 basesrc/etc/rc.subr
cvs rdiff -r1.4 -r1.5 basesrc/etc/rc.d/DAEMON basesrc/etc/rc.d/bootparams \
    basesrc/etc/rc.d/cron basesrc/etc/rc.d/dmesg basesrc/etc/rc.d/lkm1 \
    basesrc/etc/rc.d/lkm3 basesrc/etc/rc.d/motd basesrc/etc/rc.d/mrouted \
    basesrc/etc/rc.d/postfix basesrc/etc/rc.d/rbootd basesrc/etc/rc.d/routed \
    basesrc/etc/rc.d/rpcbind basesrc/etc/rc.d/sysdb \
    basesrc/etc/rc.d/yppasswdd basesrc/etc/rc.d/ypserv
cvs rdiff -r1.2 -r1.3 basesrc/etc/rc.d/accounting basesrc/etc/rc.d/cleartmp \
    basesrc/etc/rc.d/ipmon basesrc/etc/rc.d/ntpd basesrc/etc/rc.d/savecore
cvs rdiff -r1.5 -r1.6 basesrc/etc/rc.d/amd basesrc/etc/rc.d/inetd \
    basesrc/etc/rc.d/ipnat basesrc/etc/rc.d/ipsec basesrc/etc/rc.d/named \
    basesrc/etc/rc.d/ntpdate basesrc/etc/rc.d/wscons basesrc/etc/rc.d/xdm
cvs rdiff -r1.3 -r1.4 basesrc/etc/rc.d/apmd basesrc/etc/rc.d/dhcpd \
    basesrc/etc/rc.d/dhcrelay basesrc/etc/rc.d/gated basesrc/etc/rc.d/lkm2 \
    basesrc/etc/rc.d/lpd basesrc/etc/rc.d/mopd basesrc/etc/rc.d/nfslocking \
    basesrc/etc/rc.d/rarpd basesrc/etc/rc.d/route6d basesrc/etc/rc.d/rtadvd \
    basesrc/etc/rc.d/rtsold basesrc/etc/rc.d/rwho \
    basesrc/etc/rc.d/screenblank basesrc/etc/rc.d/timed basesrc/etc/rc.d/xfs \
    basesrc/etc/rc.d/ypbind
cvs rdiff -r1.6 -r1.7 basesrc/etc/rc.d/dhclient basesrc/etc/rc.d/ipfilter \
    basesrc/etc/rc.d/syslogd
cvs rdiff -r1.1 -r1.2 basesrc/etc/rc.d/kdc
cvs rdiff -r1.10 -r1.11 basesrc/etc/rc.d/sendmail
cvs rdiff -r1.7 -r1.8 basesrc/etc/rc.d/sshd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.