rc.subr.8: Document changes to load_rc_config

Since e27961a496, load_rc_config does not
require a service name as its first argument. This change was documented
in the rc.subr script in 0b9c2e7ac5. Let's
update the manual page as well.

MFC after:	3 days
This commit is contained in:
Mateusz Piotrowski 2021-11-29 16:02:32 +01:00
parent aa798fc2f1
commit 5d21348dfd

View File

@ -29,7 +29,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd July 31, 2020 .Dd November 29, 2021
.Dt RC.SUBR 8 .Dt RC.SUBR 8
.Os .Os
.Sh NAME .Sh NAME
@ -59,7 +59,7 @@
.It .It
.Ic load_kld Oo Fl e Ar regex Oc Oo Fl m Ar module Oc Ar file .Ic load_kld Oo Fl e Ar regex Oc Oo Fl m Ar module Oc Ar file
.It .It
.Ic load_rc_config Ar name .Ic load_rc_config Op Ar service
.It .It
.Ic load_rc_config_var Ar name Ar var .Ic load_rc_config_var Ar name Ar var
.It .It
@ -279,14 +279,18 @@ regular expression matching the module name can be supplied via
By default, the module is assumed to have the same name as By default, the module is assumed to have the same name as
.Ar file , .Ar file ,
which is not always the case. which is not always the case.
.It Ic load_rc_config Ar name .It Ic load_rc_config Op Ar service
Source in the configuration files for Source in the configuration file(s) for
.Ar name . .Ar service .
If no
.Ar service
is specified,
only the global configuration file(s) will be loaded.
First, First,
.Pa /etc/rc.conf .Pa /etc/rc.conf
is sourced if it has not yet been read in. is sourced if it has not yet been read in.
Then, Then,
.Pa /etc/rc.conf.d/ Ns Ar name .Pa /etc/rc.conf.d/ Ns Ar service
is sourced if it is an existing file. is sourced if it is an existing file.
The latter may also contain other variable assignments to override The latter may also contain other variable assignments to override
.Ic run_rc_command .Ic run_rc_command