From nobody Fri Jul 22 00:27:48 2022 X-Original-To: dev-commits-src-branches@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 4Lpqys14K9z4Wj3V; Fri, 22 Jul 2022 00:27:49 +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 4Lpqys0d1yz3FJy; Fri, 22 Jul 2022 00:27:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658449669; 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=hbZ9g/lfq+THj8oSUSI02soLZAqCCXfrj3rIIJXa6iQ=; b=b1Jc3dLkdFxrrkSliJE97JIQuYiUxVpEsHe6EB/s9fDHSbWYsHnnFjqjQnqwtg9ohgeagB ngz7zXH/B6FjhdA4nxBSz1Lrf8FsMBlULMMc0bSyCmeQy1HJXlqrxqdQDKQBzU8nIIXsvN ZPE4xgBimsToRqdpqNyLMzXoCAYsf5Yl7CCrIU9maPB6bdr9VtvRNc+Gv6Nx9zhQhqZ6if +hh4MhPm+yPrdL7JGh00LtTU4AS+OlrjwrFDECeack0lSJj9KtNyOmVCXO/fn7z5Y07usz hR6er4T3rFXP/M7fzhIyPjXibGqeuqTiXNCNoIIKr6NBw7uWz8R/WDS9Tr/lfw== 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 4Lpqyr6rNWzh2b; Fri, 22 Jul 2022 00:27:48 +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 26M0RmBp076393; Fri, 22 Jul 2022 00:27:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26M0RmH1076392; Fri, 22 Jul 2022 00:27:48 GMT (envelope-from git) Date: Fri, 22 Jul 2022 00:27:48 GMT Message-Id: <202207220027.26M0RmH1076392@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: 40a3ae0e0cd8 - stable/13 - sysctl.conf.5: Document rc.d/sysctl and rc.d/sysctl_lastload List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: 40a3ae0e0cd82b370adcc7202105780531adf0fc Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658449669; 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=hbZ9g/lfq+THj8oSUSI02soLZAqCCXfrj3rIIJXa6iQ=; b=XfERUvEWrnx+MKJRDX4k20yEgHkEDy/RMCyGE+Q3xwGLH386r9tXKwz1Sk9Fk0kZDP1qt6 yBAJ3rS8K7+NMBsIkzbdfTJ4Sw/stNk836DOf8JjApulBVARbX0gO1Rua19Y/n+qBr2XAa GcpDXCDdtnfvhnPlUjo5Y06dcPba3Q5NFV1XKOBJrFYRheZxRDh2MMd3aUinPCvlmS0X6z eeqj/IWexRk5K1rSA8obJTiadi5zojulustC+1cVP9D9HanBunB+MifT5yB2rdHRHH+hnW jcAafuXbl6JYKRPs7xX6XiCI80VwcGZtJpz28gGzyqWg0mPfWrWdhckdI60LtA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658449669; a=rsa-sha256; cv=none; b=FWW00WBJWYVVzleQ20f443mCLWmCo2hyuJ9/RrcsHVM64gwkzbKhrLfmdZ21COr2IKgBnG 7ze19PqUXvHyLBVZ/4kraggAb2ub41Lz/dV5WW93KiTTjfkMgVU4C/nE09NHZgi7RKkuMF q4TVWPTrPmzutMarYP9IYCyx1nDQx7IwWDngfhpU7jXZtT025gggTOFsYwTc/OjuOaO/X2 xabHnS0E8ljxELXrLwIelGYN/PawLpAW6BK7p2XpCyNrK2O31NKi7kX9/6XuJuke+3JQWn /mFALm4oEmnia0YNE85sWNVOf1/iWp8deHiI/K0894x19UTgSPX4NS96fe4E+w== 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=40a3ae0e0cd82b370adcc7202105780531adf0fc commit 40a3ae0e0cd82b370adcc7202105780531adf0fc Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2022-06-30 13:27:21 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2022-07-22 00:27:33 +0000 sysctl.conf.5: Document rc.d/sysctl and rc.d/sysctl_lastload Also, update the BUGS section. The example describes an issue, which is not true anymore thanks to sysctl_lastload. Point readers to rcorder(8) instead. MFC after: 2 weeks (cherry picked from commit 383ccaa4050e3cbbd8ce8163c8aebd07c3d94ab1) --- share/man/man5/sysctl.conf.5 | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/share/man/man5/sysctl.conf.5 b/share/man/man5/sysctl.conf.5 index 99df8b794d83..f21aac6e726b 100644 --- a/share/man/man5/sysctl.conf.5 +++ b/share/man/man5/sysctl.conf.5 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd April 8, 2021 +.Dd June 30, 2022 .Dt SYSCTL.CONF 5 .Os .Sh NAME @@ -50,9 +50,19 @@ at the beginning of a line. Comments can also exist at the end of a line, as seen in the .Sx EXAMPLES -section, below. +section. .Sh FILES -.Bl -tag -width /etc/sysctl.conf.local -compact +.Bl -tag -width /etc/rc.d/sysctl_lastload -compact +.It Pa /etc/rc.d/sysctl +.Xr rc 8 +script which processes +.Nm +early on in the process of transitioning to multi-user mode. +.It Pa /etc/rc.d/sysctl_lastload +.Xr rc 8 +script which processes +.Nm +shortly before the system reaches the multi-user mode. .It Pa /etc/sysctl.conf Initial settings for .Xr sysctl 8 . @@ -81,11 +91,8 @@ If loadable kernel modules are used to introduce additional kernel functionality and sysctls to manage that functionality, .Nm may be processed too early in the boot process to set those sysctls. -For example, sysctls to manage the Linux compatibility layer -.Po -.Xr linux 4 -.Pc -cannot be set in -.Nm -if the Linux compatibility layer is loaded as a module rather than -compiled into the kernel. +Please consult +.Xr rcorder 8 +to learn more about the ordering of +.Xr rc 8 +scripts.