Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157943857
D56898.id177519.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D56898.id177519.diff
View Options
diff --git a/etc/mtree/BSD.root.dist b/etc/mtree/BSD.root.dist
--- a/etc/mtree/BSD.root.dist
+++ b/etc/mtree/BSD.root.dist
@@ -105,6 +105,8 @@
untrusted tags=package=caroot
..
..
+ sysctl.conf.d tags=package=rc
+ ..
sysctl.kld.d tags=package=rc
..
syslog.d tags=package=syslogd
diff --git a/libexec/rc/rc.d/sysctl b/libexec/rc/rc.d/sysctl
--- a/libexec/rc/rc.d/sysctl
+++ b/libexec/rc/rc.d/sysctl
@@ -26,7 +26,7 @@
;;
esac
- for _f in /etc/sysctl.conf /etc/sysctl.conf.local; do
+ for _f in /etc/sysctl.conf /etc/sysctl.conf.local /etc/sysctl.conf.d/*.conf; do
if [ -r ${_f} ]; then
${command} ${command_args} ${_f} > /dev/null
fi
diff --git a/sbin/sysctl/sysctl.conf b/sbin/sysctl/sysctl.conf
--- a/sbin/sysctl/sysctl.conf
+++ b/sbin/sysctl/sysctl.conf
@@ -1,7 +1,10 @@
#
-# This file is read when going to multi-user and its contents piped thru
-# ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details.
+# Refer to sysctl.conf(5) and sysctl(8) man pages for details on how to
+# configure kernel state.
#
+# The contents of /etc/sysctl.conf, /etc/sysctl.conf.local and any .conf
+# file(s) in the directory /etc/sysctl.conf.d are read when the system
+# transitions to multi-user operation, and piped to through to sysctl(8).
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
diff --git a/share/man/man5/sysctl.conf.5 b/share/man/man5/sysctl.conf.5
--- a/share/man/man5/sysctl.conf.5
+++ b/share/man/man5/sysctl.conf.5
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd June 30, 2022
+.Dd May 10, 2026
.Dt SYSCTL.CONF 5
.Os
.Sh NAME
@@ -74,6 +74,10 @@
.It Pa /etc/sysctl.conf.local
Machine-specific settings for sites with a common
.Pa /etc/sysctl.conf .
+.It Pa /etc/sysctl.conf.d
+Directory for modularized
+.Xr sysctl 8
+files.
.It Pa /etc/sysctl.kld.d
Module specific settings for kernel modules loaded via
.Xr rc.subr 8 .
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, May 27, 6:15 PM (8 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33562904
Default Alt Text
D56898.id177519.diff (2 KB)
Attached To
Mode
D56898: sysctl.conf(5): Add support for sysctl.conf.d
Attached
Detach File
Event Timeline
Log In to Comment