sysctl: config directory order
Matches the systemd directory order (/run is after /etc) and document what directories are used better.
This commit is contained in:
parent
5cd29e5093
commit
24a1574f0a
2
NEWS
2
NEWS
@ -14,6 +14,8 @@ procps-ng-3.3.16
|
|||||||
* docs: install translated man pages issue #146
|
* docs: install translated man pages issue #146
|
||||||
* pgrep: Match on runstate issue #109, Debian #919381
|
* pgrep: Match on runstate issue #109, Debian #919381
|
||||||
* snice: Fix matching on pid merge #89
|
* snice: Fix matching on pid merge #89
|
||||||
|
* sysctl: Match systemd directory order
|
||||||
|
* sysctl: Document directory order Debian #951550
|
||||||
* top: can now exploit 256-color terminals issue #96
|
* top: can now exploit 256-color terminals issue #96
|
||||||
* top: preserves 'other filters' in configuration file issue #99
|
* top: preserves 'other filters' in configuration file issue #99
|
||||||
* top: can now collapse/expand forest view children issue #99
|
* top: can now collapse/expand forest view children issue #99
|
||||||
|
16
sysctl.8
16
sysctl.8
@ -6,7 +6,7 @@
|
|||||||
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
|
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
.\" GNU General Public License for more details."
|
.\" GNU General Public License for more details."
|
||||||
.TH SYSCTL "8" "2018-02-19" "procps-ng" "System Administration"
|
.TH SYSCTL "8" "2020-02-27" "procps-ng" "System Administration"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
sysctl \- configure kernel parameters at runtime
|
sysctl \- configure kernel parameters at runtime
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -81,10 +81,10 @@ directories in the following list in given order from top to bottom.
|
|||||||
Once a file of a given filename is loaded, any file of the same name
|
Once a file of a given filename is loaded, any file of the same name
|
||||||
in subsequent directories is ignored.
|
in subsequent directories is ignored.
|
||||||
.br
|
.br
|
||||||
/run/sysctl.d/*.conf
|
|
||||||
.br
|
|
||||||
/etc/sysctl.d/*.conf
|
/etc/sysctl.d/*.conf
|
||||||
.br
|
.br
|
||||||
|
/run/sysctl.d/*.conf
|
||||||
|
.br
|
||||||
/usr/local/lib/sysctl.d/*.conf
|
/usr/local/lib/sysctl.d/*.conf
|
||||||
.br
|
.br
|
||||||
/usr/lib/sysctl.d/*.conf
|
/usr/lib/sysctl.d/*.conf
|
||||||
@ -152,6 +152,16 @@ echo 256 > /proc/sys/net/ipv6/neigh/eth0/base_reachable_time
|
|||||||
.SH FILES
|
.SH FILES
|
||||||
.I /proc/sys
|
.I /proc/sys
|
||||||
.br
|
.br
|
||||||
|
.I /etc/sysctl.d/*.conf
|
||||||
|
.br
|
||||||
|
.I /run/sysctl.d/*.conf
|
||||||
|
.br
|
||||||
|
.I /usr/local/lib/sysctl.d/*.conf
|
||||||
|
.br
|
||||||
|
.I /usr/lib/sysctl.d/*.conf
|
||||||
|
.br
|
||||||
|
.I /lib/sysctl.d/*.conf
|
||||||
|
.br
|
||||||
.I /etc/sysctl.conf
|
.I /etc/sysctl.conf
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR sysctl.conf (5)
|
.BR sysctl.conf (5)
|
||||||
|
2
sysctl.c
2
sysctl.c
@ -622,8 +622,8 @@ static int PreloadSystem(void)
|
|||||||
{
|
{
|
||||||
unsigned di, i;
|
unsigned di, i;
|
||||||
const char *dirs[] = {
|
const char *dirs[] = {
|
||||||
"/run/sysctl.d",
|
|
||||||
"/etc/sysctl.d",
|
"/etc/sysctl.d",
|
||||||
|
"/run/sysctl.d",
|
||||||
"/usr/local/lib/sysctl.d",
|
"/usr/local/lib/sysctl.d",
|
||||||
"/usr/lib/sysctl.d",
|
"/usr/lib/sysctl.d",
|
||||||
"/lib/sysctl.d",
|
"/lib/sysctl.d",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
|
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
.\" GNU General Public License for more details."
|
.\" GNU General Public License for more details."
|
||||||
.TH SYSCTL.CONF "5" "2019-09-21" "procps-ng" "File Formats"
|
.TH SYSCTL.CONF "5" "2020-02-27" "procps-ng" "File Formats"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
sysctl.conf \- sysctl preload/configuration file
|
sysctl.conf \- sysctl preload/configuration file
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
@ -55,22 +55,22 @@ to list all possible parameters. The description of individual parameters can be
|
|||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
.SH FILES
|
.SH FILES
|
||||||
.TP
|
.I /etc/sysctl.d/*.conf
|
||||||
/run/sysctl.d/*.conf
|
.br
|
||||||
.TQ
|
.I /run/sysctl.d/*.conf
|
||||||
/etc/sysctl.d/*.conf
|
.br
|
||||||
.TQ
|
.I /usr/local/lib/sysctl.d/*.conf
|
||||||
/usr/local/lib/sysctl.d/*.conf
|
.br
|
||||||
.TQ
|
.I /usr/lib/sysctl.d/*.conf
|
||||||
/usr/lib/sysctl.d/*.conf
|
.br
|
||||||
.TQ
|
.I /lib/sysctl.d/*.conf
|
||||||
/lib/sysctl.d/*.conf
|
.br
|
||||||
.TQ
|
.I /etc/sysctl.conf
|
||||||
/etc/sysctl.conf
|
|
||||||
The paths where
|
The paths where
|
||||||
sysctl
|
.B sysctl
|
||||||
preload files usually exist. See also
|
preload files usually exist. See also
|
||||||
sysctl
|
.B sysctl
|
||||||
option
|
option
|
||||||
.IR \-\-system .
|
.IR \-\-system .
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
|
Loading…
Reference in New Issue
Block a user