2 .TH "SYSCTL\&.D" "5" "" "systemd 214" "sysctl.d"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
17 .\" disable justification (adjust text to left margin only)
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
23 sysctl.d \- Configure kernel parameters at boot
26 /etc/sysctl\&.d/*\&.conf
28 /run/sysctl\&.d/*\&.conf
30 /usr/lib/sysctl\&.d/*\&.conf
34 \fBsystemd-sysctl.service\fR(8)
35 reads configuration files from the above directories to configure
38 .SH "CONFIGURATION FORMAT"
40 The configuration files contain a list of variable assignments, separated by newlines\&. Empty lines and lines whose first non\-whitespace character is
50 may be used as separators within sysctl variable names\&. If the first separator is a slash, remaining slashes and dots are left intact\&. If the first separator is a dot, dots and slashes are interchanged\&.
51 "kernel\&.domainname=foo"
53 "kernel/domainname=foo"
54 are equivalent and will cause
57 /proc/sys/kernel/domainname\&. Either
58 "net\&.ipv4\&.conf\&.enp3s0/200\&.forwarding"
60 "net/ipv4/conf/enp3s0\&.200/forwarding"
61 may be used to refer to
62 /proc/sys/net/ipv4/conf/enp3s0\&.200/forwarding\&.
64 Each configuration file shall be named in the style of
65 \fIprogram\fR\&.conf\&. Files in
67 override files with the same name in
72 override files with the same name in
73 /usr/lib/\&. Packages should install their configuration files in
76 are reserved for the local administrator, who may use this logic to override the configuration files installed by vendor packages\&. All configuration files are sorted by their filename in lexicographic order, regardless of which of the directories they reside in\&. If multiple files specify the same variable name, the entry in the file with the lexicographically latest name will be applied\&. It is recommended to prefix all filenames with a two\-digit number and a dash, to simplify the ordering of the files\&.
78 If the administrator wants to disable a configuration file supplied by the vendor, the recommended way is to place a symlink to
82 bearing the same filename\&.
84 The settings configured with
86 files will be applied early on boot\&. The network interface\-specific options will also be applied individually for each network interface as it shows up in the system\&. (More specifically,
87 net\&.ipv4\&.conf\&.*,
88 net\&.ipv6\&.conf\&.*,
89 net\&.ipv4\&.neigh\&.*
91 net\&.ipv6\&.neigh\&.*)
94 \fBExample\ \&1.\ \&/etc/sysctl.d/domain-name.conf example:\fR
100 # Set kernel YP domain name
101 kernel\&.domainname=example\&.com
109 \fBsystemd-sysctl.service\fR(8),
110 \fBsystemd-delta\fR(1),