From nobody Sat Feb 10 20:31:19 2024 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 4TXMnM3mg3z5BJyc; Sat, 10 Feb 2024 20:31:19 +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 4TXMnM3H7Xz4Vf5; Sat, 10 Feb 2024 20:31:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707597079; 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=O6bZGts1f0dDEFiAkeCuO/VXJn2AGnGEVq289b6Qg9A=; b=t5rvhzuEl2yXEnJyD6JrEZMB2vQ6DdyJxth3auJKFM4BENXBm+Lp0gHwuwo6BX0A+TMgAW eLLaZxrO//WAhJjMSKQpd/WcFnwYuoLgwvonpRsCZsKDuOE9tFqe1/mYir32yyTVDnMC74 JZfp0gT6pZh2rt3jXfcY13lzc7G0jdSi8C8DECN4NjlgbOKLSAVneiiqUCvHSX1umqlGgU +wPPISa9+MxxCoUC0cwmLTl3gL8+1LJxmY3WZ9NVKEP3602uKQddznEZo1n6KuiwnaBgrW aGljx9vs1Rhb9hDvhhyIa4EoLE82B2AyHOeMvG7PpqoN3b4yOtUuQ01SIbGfTw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707597079; a=rsa-sha256; cv=none; b=pyUb8sCE6ou+fRKdremSBD09fOGjKHdqR/7odCdFHDwTiqEMhvsqYDnBfuoSu7gqAc5L1e sDjYtR7GoELAvlqdytOToATaYEYgCjXXizrH+HS0MhU11oRREetjH2FPiuvfNg8b6dcIrz o3rAhJEjzgvrpuCHs1geQZRse3SvDe37XvfGcwyrsfmnm+hR3LmC4in4IBSZkrzZh3oz7/ zeysqEE+6nFMUT729nwWs26m6Mspxq3H5UYOOEkgM4qyWu1tsPDK2PORxshcd9RPBAXoeU MYMEN8T1S3HsX7NrJ7t04D63tltGzNNfDrLZTHr/4UeAR+lhjIgTxAnCflRxoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707597079; 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=O6bZGts1f0dDEFiAkeCuO/VXJn2AGnGEVq289b6Qg9A=; b=kwhaTrONUoImglAPSzh5XKiyKavGQHHXOMm3u3zWA0qDVJe9vV6+2jWIK4V9NYmnZ1gYRF fEl+AhFfw0+WKhdyaHxLwf77lb3uaUhNb+usv9DTdDHW2I6+hVCHCIqSO6WFMP3eq+boW5 vkpWYamP6PoTNMCLPEiBVFlxIbSmrudtCl777X0Bo2dhmLmGv+Aqhzs31cR1zMPsNfwfaU ctSQOxeMy3EjR75tvT/5Yvif6go4JqvaDpRxb7ph8MJrCjhAyrQPDPd16l2ry0fVHAfhEB kcGhaDe6HpF2P/Kd5AOq3aNO0msQ6fmp6N/jV51xEdhuY4FGGcUKkQtQ951tdQ== 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 4TXMnM2KjCzW86; Sat, 10 Feb 2024 20:31:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41AKVJoq048361; Sat, 10 Feb 2024 20:31:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41AKVJ5J048358; Sat, 10 Feb 2024 20:31:19 GMT (envelope-from git) Date: Sat, 10 Feb 2024 20:31:19 GMT Message-Id: <202402102031.41AKVJ5J048358@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Simon J. Gerraty" Subject: git: 41f9823eda94 - main - rc.subr.8 note when DebugOn will be called 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: sjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 41f9823eda9424ebaa37ed00db4e8534f9e5561c Auto-Submitted: auto-generated The branch main has been updated by sjg: URL: https://cgit.FreeBSD.org/src/commit/?id=41f9823eda9424ebaa37ed00db4e8534f9e5561c commit 41f9823eda9424ebaa37ed00db4e8534f9e5561c Author: Simon J. Gerraty AuthorDate: 2024-02-10 20:30:53 +0000 Commit: Simon J. Gerraty CommitDate: 2024-02-10 20:31:10 +0000 rc.subr.8 note when DebugOn will be called --- share/man/man8/rc.subr.8 | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/share/man/man8/rc.subr.8 b/share/man/man8/rc.subr.8 index 91ed5364bd6a..0906ecb2e787 100644 --- a/share/man/man8/rc.subr.8 +++ b/share/man/man8/rc.subr.8 @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd January 31, 2024 +.Dd February 10, 2024 .Dt RC.SUBR 8 .Os .Sh NAME @@ -385,8 +385,10 @@ mechanism for an administrator to override the behaviour of a given .Xr rc.d 8 script without requiring the editing of that script. .Pp -The function -.Ic dot +The function named by +.Va load_rc_config_reader +(default is +.Ic dot ) is used to read configuration unless .Ar flag is: @@ -404,6 +406,12 @@ use .Ic vdot to read in configuration only if it is verified. .El +.Pp +.Ic DebugOn +will be called with tags derived from +.Ar name +to enable tracing if any appear in +.Va DEBUG_SH . .It Ic load_rc_config_var Ar name Ar var Read the .Xr rc.conf 5 @@ -441,7 +449,7 @@ If the file is empty or does not contain a value for .Va RC_LEVEL , set it to -Li 0 . +.Li 0 . .Pp If .Ar level @@ -993,6 +1001,14 @@ However, if .Ic is_verified Ar file fails, just return. .Pp +.Ic DebugOn +will be called with tags derrived from +.Va name +and +.Va rc_arg +to enable tracing if any of those tags appear in +.Va DEBUG_SH . +.Pp The startup behaviour of .Ar file depends upon the following checks: