From nobody Fri Jul 22 00:28:01 2022 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 4Lpqz62Dgcz4WjJQ; Fri, 22 Jul 2022 00:28:02 +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 4Lpqz61Sz6z3GNJ; Fri, 22 Jul 2022 00:28:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658449682; 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=MEj6RAJdgmTkPhe83693DK9wUukbxirQIpXvuDCkbfo=; b=qW8LF5Qfy6inPG6rN7O9p8ZodewGfc/+3CiQBv65tEeOI8oIJ+NUZEEFe+C55iWsq2Kpu5 p/abTjbNAdiN6gKUFsj8WcBMQf9RUsdzIe4pHb5Se+OHzuO4J+7orpSSmLTkbqvdI36+8S 0XYakVuMy+S3eaSqdEpGzQ2Agl7huu+F6LDOZEhBnNi51f/PV8jPgnmhvTkukJxKJr06nX vqA1qHevCEuO7J+E4/zqUpsftfPXCZ6s4kmxJ3FSa6MUI3/LYMTYjSJFdjUE1Bdv0/ZdFW YMuA/RXaImzLgU6A6VpIPLXZUxcd0lukwCijWcFGuLf88895Jz709c/vI74cjg== 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 4Lpqz60YbdzhSV; Fri, 22 Jul 2022 00:28:02 +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 26M0S1kY076618; Fri, 22 Jul 2022 00:28:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26M0S1pG076617; Fri, 22 Jul 2022 00:28:01 GMT (envelope-from git) Date: Fri, 22 Jul 2022 00:28:01 GMT Message-Id: <202207220028.26M0S1pG076617@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: fffc757d0fb3 - stable/12 - sysctl.conf.5: Document rc.d/sysctl and rc.d/sysctl_lastload 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/12 X-Git-Reftype: branch X-Git-Commit: fffc757d0fb38fd7a2b95b1fe632e67f867d7022 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658449682; 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=MEj6RAJdgmTkPhe83693DK9wUukbxirQIpXvuDCkbfo=; b=V7ZkqK3wGPZ93d8jBO6ipfsUZgyBtJXWV5Axd6wO96Zzz+fFv4BeB6idee0ou+QnObCyEt oveOUFMhNgAJ6s6EKqTweMTZ1X6i495iSOvZ1OppWPoCEX8Z+zrY2h5WjB1YdznOMDCXyd J+avY3C6W6vQvnlcK4Y2+qqi7XqnTyoETmZ5FIUmaCnnQXhE6eIHuE7p4eDnbot6aJbFZf qjbH8SQg0K7M9GeKj30PN1Waz8YyeKoupP/rV0mvJEE1Qm1dE29dPXSRas1N+w386eM6VN COCNhvvA+ZyHf7lEtbfuVRvbmeAa+Vk5Tp34u23dVnjZVbl9DetcQFvyRh2dtg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658449682; a=rsa-sha256; cv=none; b=bJqNq7GktgiUV1FmaS9qyf1zUnLDsCFycikVidaMQJW1aw7S8Sz8tzP9tfvXLSFmBmaD6N uN/IZFsoW+CiT/xZzGCnfeYEsxgXskvRVJB56v3ha6Rf/FAcaENSzPVRQadndCZBjyOLEW WfgdwDK2iBx3y1yL6t9BFRikXUPKv6EUTdDXEgTC9x56qh/NYkjw1ZNRApCMIM9vGKYnkg oq3bx2CCsqlmDqW3DXExWjqcoFolwW+bw94XGWD08nGT+Z8XxHn0z3qttCQsEQzf71SYXy i99aKyJzNxhjJn1M5YUuA73oqphH0Sq9lHGKzhWUNas6EmH3W6APVcmnGboSSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by 0mp (doc, ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=fffc757d0fb38fd7a2b95b1fe632e67f867d7022 commit fffc757d0fb38fd7a2b95b1fe632e67f867d7022 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:21 +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.