From nobody Mon Nov 29 15:09:36 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 787A318AB37B; Mon, 29 Nov 2021 15:09:37 +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 4J2pfn0SJDz4ZP2; Mon, 29 Nov 2021 15:09:37 +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 C6F50246E2; Mon, 29 Nov 2021 15:09:36 +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 1ATF9aCY013223; Mon, 29 Nov 2021 15:09:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATF9aOB013222; Mon, 29 Nov 2021 15:09:36 GMT (envelope-from git) Date: Mon, 29 Nov 2021 15:09:36 GMT Message-Id: <202111291509.1ATF9aOB013222@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 5d21348dfd95 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 5d21348dfd95bdc19290dd172c5352e3787e86a5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638198577; 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=rdZAfPgY4zT7ENCMCeERh99DRoF2JOM0HEKupnTHvkY=; b=iSUDYaZvU2CDE8Z5rtKdr3+pmEMMwwsIL5SB5P+d8Ot2eotFJfyyjD7F4NPOBRs+n0cyR+ fX7mnWGek3eVipxGkM4hBRtebXMQZtNYzis5OduAAwe8SrkzPjOmmKoQ8Y9MxxfMHBZEbj icjNEzr19+7wDf1a48r1KG3ItD3GhCUWBfWl6OBk4b308sZu04oSqIcKepSNCkBxDUYXLi Mlu1fOpMb8o1E3c9qXJqafax0pJjABeOe4oUPa5UQObEdRjyYpU+xffNEo7pSlqevBSILU gX0sDQJyEjijb/yLXgvLfGGFDpkGFni2DRYxexgXZi4DxaxKyQPE8ujMTTVaEQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638198577; a=rsa-sha256; cv=none; b=LNGYkAMZJRU3acoWrII/GOGPzxQzOJ2gPw+LPUx3mZHKC3oQMPVhs99nhX2UEhXQer6VC/ gikJ8C/sSyxKkZzPg7M3VUebg62O3nR8FqH9CN/O35Q/FXk/JOtZkdqIGv7y4fAr5v3UfG 4cOdzDub3GRP1VC0rML1CTSW63lC7/OMgva+GrWHNj6M7CZX/qVsyvxRasUq+RJOMTF+4v TYCOLdQbe6vBZ6SCL7c8v1ONM1KBuzls/s5szhjYPg+Rv377ZM1EB2xrxdfjemw1MiGo85 8dtySkG/+OqG+VQAOVBv60STNsK/o3lqK/U8ttUvd6j+R+V5A/ukP6YoXR3WpA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by 0mp (doc, ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=5d21348dfd95bdc19290dd172c5352e3787e86a5 commit 5d21348dfd95bdc19290dd172c5352e3787e86a5 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2021-11-29 15:02:32 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2021-11-29 15:09:02 +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 --- 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