Doug Barton e729c4f2fd Use the allexport option in load_rc_config() in order to avoid having
to repeatedly read the conf files. Depending on what is enabled the
files are being read anywhere from 15, 30, or more times currently.
By loading the values in the environment this is reduced to 1, with
perhaps a couple more, again depending on what is enabled.

The speed-up for boot and shutdown is negligible when rc.conf is
on local disk, noticable when accessing files over NFS, and dramatic
when pulling rc.conf values from a database.

This change also includes a minor optimization to the conditional
for $_rc_conf_loaded.
2011-03-12 21:13:08 +00:00
..
2011-01-31 07:47:28 +00:00
2009-10-05 09:28:54 +00:00
2011-01-04 23:00:54 +00:00
2011-01-31 07:47:28 +00:00
2010-06-19 09:21:34 +00:00
2009-07-13 05:51:33 +00:00
rc
rpc
2011-02-09 10:06:31 +00:00