From nobody Sun Dec 05 16:56:31 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D452718CF099; Sun, 5 Dec 2021 16:56:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J6XlM2X2dz4Qpx; Sun, 5 Dec 2021 16:56:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 29EF51B776; Sun, 5 Dec 2021 16:56:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B5GuVDB082732; Sun, 5 Dec 2021 16:56:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B5GuVgp082731; Sun, 5 Dec 2021 16:56:31 GMT (envelope-from git) Date: Sun, 5 Dec 2021 16:56:31 GMT Message-Id: <202112051656.1B5GuVgp082731@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 8de3cb052ebc - stable/13 - rc.subr.8: Document changes to load_rc_config List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 8de3cb052ebc6c3e9c3e0913059fd2540cffb22d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638723391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RQ0VHZD6CZZpIc080tpmOFkjm67fZFkZbQ6a4BQYYK0=; b=Z3LUpDGshlql3NKRAS+pXnUAb5T6zRpm+JEvJkEdV1ea/x3wEBSdjWhvbVQW3QYG7MjqQ6 OBDv6AllhnvNYQzGC9S0kaC/yxMexVt6lhpwy0cj69o2QG05eNtIil/3P/DxriIajYRQXD 22W7mMq1Pp+Nw0TWNkea/P+xf9/3hPFOC5VT3sPeGBDyDyAuABcfoW3L1uakWrXCV+jQCM N9WmNtyPmF1twt5RFkHKPs29k9pJDx1y7ClR/xWZ9HwQJ7OEXNrJ1gSyC++iuG0JOFtq0y lwjHZQB57D+6wGBsJwL87Pr0ovLTRYtwvAT7Te21KmIbAuPQ6iv4Zu6s88JRWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638723391; a=rsa-sha256; cv=none; b=B3aWl1Xb4XNaBSFFAQ4jrCxF2PnNATYhUI0tE5iyXgtqesKG1bWHrl/2SoCIK+5TF6EDPZ FXBVj55vjFqZ4Eel4rSCEd7CAbEG0ioJsqzaa6zBLh28TRFMn6/92JDN+DUu+NbzhfvX3K 3c13eB78wqJ5QCcRSAlsdTcujIiFcKGMJPmUX/xhFLEW+Ygm0QtMe2YPwro1VyJMLQT0UT dXWDie/o33rl7HcK/ZDvo0Afn7ZpLKZFJuhuy334ihyds45LeMrIEE8bfNtYkkApgtTxOg /bECzFhwrazt/qsWnGKWHnXCimgxRQdykzHaSYfzR7t2W4cG/GdNe7+zHHRfjA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by 0mp (doc, ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=8de3cb052ebc6c3e9c3e0913059fd2540cffb22d commit 8de3cb052ebc6c3e9c3e0913059fd2540cffb22d Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2021-11-29 15:02:32 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2021-12-05 16:45:33 +0000 rc.subr.8: Document changes to load_rc_config Since e27961a496322e2590da29f3c5fe710b269e6754, load_rc_config does not require a service name as its first argument. This change was documented in the rc.subr script in 0b9c2e7ac58caac0413aa36749e4c212514d142d. Let's update the manual page as well. MFC after: 3 days (cherry picked from commit 5d21348dfd95bdc19290dd172c5352e3787e86a5) --- share/man/man8/rc.subr.8 | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/share/man/man8/rc.subr.8 b/share/man/man8/rc.subr.8 index f522a5d162c3..14718ecf2737 100644 --- a/share/man/man8/rc.subr.8 +++ b/share/man/man8/rc.subr.8 @@ -29,7 +29,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 31, 2020 +.Dd November 29, 2021 .Dt RC.SUBR 8 .Os .Sh NAME @@ -59,7 +59,7 @@ .It .Ic load_kld Oo Fl e Ar regex Oc Oo Fl m Ar module Oc Ar file .It -.Ic load_rc_config Ar name +.Ic load_rc_config Op Ar service .It .Ic load_rc_config_var Ar name Ar var .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 .Ar file , which is not always the case. -.It Ic load_rc_config Ar name -Source in the configuration files for -.Ar name . +.It Ic load_rc_config Op Ar service +Source in the configuration file(s) for +.Ar service . +If no +.Ar service +is specified, +only the global configuration file(s) will be loaded. First, .Pa /etc/rc.conf is sourced if it has not yet been read in. 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. The latter may also contain other variable assignments to override .Ic run_rc_command