Debian Codegraph @

debian/patches/sysctl_conf5_update

raw
1 Description: sysctl.conf.8 Various updates
2 Update sysctl.conf.8 so its the same as the current upstream.
3 Branden's content and style updates
4 Branden's TH style fixes
5 Craigs format updates and note about systemd-sysctl
6 Author: G. Branden Robinson <[email protected]>
7 Origin: upstream
8 Bug-Debian: https://bugs.debian.org/1077187
9 Applied-Upstream: 4.0.5
10 Last-Update: 2025-04-14
11 ---
12 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
13 --- a/man/sysctl.conf.5
14 +++ b/man/sysctl.conf.5
15 @@ -1,6 +1,6 @@
16 .\"
17 .\" Copyright (c) 2016-2023 Jim Warner <[email protected]>
18 -.\" Copyright (c) 2019-2023 Craig Small <[email protected]>
19 +.\" Copyright (c) 2019-2024 Craig Small <[email protected]>
20 .\" Copyright (c) 2011-2012 Sami Kerola <[email protected]>
21 .\" Copyright (c) 1999 George Staikos <[email protected]>
22 .\"
23 @@ -10,83 +10,94 @@
24 .\" (at your option) any later version.
25 .\"
26 .\"
27 -.TH SYSCTL.CONF "5" "2021-09-15" "procps-ng" "File Formats"
28 +.TH SYSCTL.CONF 5 2024-10-24 procps-ng
29 .SH NAME
30 -sysctl.conf \- sysctl preload/configuration file
31 +sysctl.conf \- Linux kernel configuration parameters
32 .SH DESCRIPTION
33 .B sysctl.conf
34 -is a simple file containing sysctl values to be read in and set by
35 +is a set of configuration files that contain
36 +Linux kernel configuration parameters
37 +to be read and set by
38 +.BR sysctl (8).
39 +.PP
40 +This man page describes the configuration files for
41 +.I procps
42 .BR sysctl .
43 -The syntax is simply as follows:
44 +If you are using
45 +.BR systemd\-sysctl (8),
46 +refer to
47 +.BR sysctl.d (5)
48 +and note that it won't use the file
49 +.IR \%/etc/\:\%sysctl\:\%.conf .
50 +.SS "Configuration Format"
51 +Each line of a file read by
52 +.I procps
53 +.B sysctl
54 +describes a kernel parameter in the following format.
55 +.P
56 .RS
57 -.sp
58 -.nf
59 -.ne 7
60 -# comment
61 -; comment
62 -
63 +.EX
64 token = value
65 -.fi
66 +.EE
67 .RE
68 -.PP
69 -Note that blank lines are ignored, and whitespace before and after a token or
70 -value is ignored, although a value can contain whitespace within. Lines which
71 -begin with a \fI#\fR or \fI;\fR are considered comments and ignored.
72 -
73 -If a line begins with a single \-, any attempts to set the value that fail will be
74 -ignored.
75 -
76 -.SH NOTES
77 -As the
78 -.BR /etc/sysctl.conf
79 -file is used to override default kernel parameter values, only a small number of parameters is predefined in the file.
80 -Use
81 -.IR /sbin/sysctl\ \-a
82 -or follow
83 -.BR sysctl (8)
84 -to list all possible parameters. The description of individual parameters can be found in the kernel documentation.
85 -
86 -Maximum supported line length of the value is 4096 characters due
87 -to a limitation of \fI/proc\fR entries in Linux kernel.
88 -.SH EXAMPLE
89 +.P
90 +Blank lines and lines that start with
91 +.RB \[lq] # \[rq]
92 +or
93 +.RB \[lq] ; \[rq]
94 +are ignored.
95 +.P
96 +If a line begins with a single
97 +.RB \[lq] \- \[rq],
98 +a failing attempt to set the value is ignored.
99 +.SH FILES
100 +.I procps
101 +.BR sysctl ,
102 +when run with the
103 +.B \%\-\-system
104 +option,
105 +reads files from directories
106 +in the order shown below.
107 +.P
108 .RS
109 -.sp
110 -.nf
111 -.ne 7
112 -# sysctl.conf sample
113 -#
114 - kernel.domainname = example.com
115 -; this one has a space which will be written to the sysctl!
116 - kernel.modprobe = /sbin/mod probe
117 -.fi
118 +.TP
119 +.IR /etc/sysctl.d/ * .conf
120 +.TQ
121 +.IR /run/sysctl.d/ * .conf
122 +.TQ
123 +.IR /usr/local/lib/sysctl.d/ * .conf
124 +.TQ
125 +.IR /usr/lib/sysctl.d/ * .conf
126 +.TQ
127 +.IR /lib/sysctl.d/ * .conf
128 .RE
129 -.PP
130 -.SH FILES
131 -.I /etc/sysctl.d/*.conf
132 -.br
133 -.I /run/sysctl.d/*.conf
134 -.br
135 -.I /usr/local/lib/sysctl.d/*.conf
136 -.br
137 -.I /usr/lib/sysctl.d/*.conf
138 -.br
139 -.I /lib/sysctl.d/*.conf
140 -.br
141 -.I /etc/sysctl.conf
142 -
143 -The paths where
144 +.P
145 +Finally,
146 +.I procps
147 .B sysctl
148 -preload files usually exist. See also
149 +reads
150 +.IR \%/etc/\:\%sysctl\:\%.conf .
151 +This file is not used by
152 +.BR systemd\-sysctl ,
153 +which means that some kernel parameters are not set depending on the
154 +implementation of
155 .B sysctl
156 -option
157 -.IR \-\-system .
158 -.SH SEE ALSO
159 -.BR sysctl (8)
160 -.SH AUTHOR
161 -.UR [email protected]
162 -George Staikos
163 -.UE
164 -.SH "REPORTING BUGS"
165 -Please send bug reports to
166 -.UR [email protected]
167 -.UE
168 +that is installed.
169 +.SH BUGS
170 +The maximum supported length of
171 +.I value
172 +is 4096 characters due to a limitation on
173 +.I /proc
174 +entry length in the Linux kernel.
175 +.SH EXAMPLES
176 +.EX
177 +#
178 +#
179 +kernel.domainname = example.com
180 +; A value containing a space is written to the sysctl.
181 +kernel.modprobe = /sbin/mod probe
182 +.EE
183 +.SH "SEE ALSO"
184 +.BR sysctl.d (5),
185 +.BR sysctl (8),
186 +.BR systemd\-sysctl (8)