]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Prepare for the removal of set_rcvar() by changing the rcvar=
authordougb <dougb@FreeBSD.org>
Sat, 14 Jan 2012 02:18:41 +0000 (02:18 +0000)
committerdougb <dougb@FreeBSD.org>
Sat, 14 Jan 2012 02:18:41 +0000 (02:18 +0000)
commit3645513107afb90d956b4b3843a780daa7272dd1
treec935ebd8ad80aacee0a36fef89dd1e71e33fb10a
parent0a57e7ea32cd0809baf900cdeb776807b701f72d
Prepare for the removal of set_rcvar() by changing the rcvar=
assignments to the literal values it would have returned.

The concept of set_rcvar() was nice in theory, but the forks
it creates are a drag on the startup process, which is especially
noticeable on slower systems, such as embedded ones.

During the discussion on freebsd-rc@ a preference was expressed for
using ${name}_enable instead of the literal values. However the
code portability concept doesn't really apply since there are so
many other places where the literal name has to be searched for
and replaced. Also, using the literal value is also a tiny bit
faster than dereferencing the variables, and every little bit helps.
66 files changed:
etc/rc.d/accounting
etc/rc.d/amd
etc/rc.d/apm
etc/rc.d/apmd
etc/rc.d/bootparams
etc/rc.d/bsnmpd
etc/rc.d/bthidd
etc/rc.d/cleanvar
etc/rc.d/cleartmp
etc/rc.d/cron
etc/rc.d/ddb
etc/rc.d/devd
etc/rc.d/dmesg
etc/rc.d/ftp-proxy
etc/rc.d/ftpd
etc/rc.d/gptboot
etc/rc.d/hastd
etc/rc.d/hcsecd
etc/rc.d/hostapd
etc/rc.d/inetd
etc/rc.d/ip6addrctl
etc/rc.d/ipfilter
etc/rc.d/ipfs
etc/rc.d/ipmon
etc/rc.d/ipnat
etc/rc.d/ipsec
etc/rc.d/ipxrouted
etc/rc.d/jail
etc/rc.d/keyserv
etc/rc.d/lpd
etc/rc.d/mountd
etc/rc.d/moused
etc/rc.d/mroute6d
etc/rc.d/mrouted
etc/rc.d/natd
etc/rc.d/netwait
etc/rc.d/newsyslog
etc/rc.d/nfscbd
etc/rc.d/nfsd
etc/rc.d/nfsuserd
etc/rc.d/nscd
etc/rc.d/ntpd
etc/rc.d/ntpdate
etc/rc.d/pf
etc/rc.d/pflog
etc/rc.d/pfsync
etc/rc.d/powerd
etc/rc.d/ppp
etc/rc.d/pppoed
etc/rc.d/quota
etc/rc.d/rarpd
etc/rc.d/rfcomm_pppd_server
etc/rc.d/route6d
etc/rc.d/routed
etc/rc.d/rpcbind
etc/rc.d/rtadvd
etc/rc.d/rtsold
etc/rc.d/rwho
etc/rc.d/sdpd
etc/rc.d/sendmail
etc/rc.d/sshd
etc/rc.d/syslogd
etc/rc.d/timed
etc/rc.d/ubthidhci
etc/rc.d/virecover
etc/rc.d/watchdogd