]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/sysctl.d.xml
sysctl.d, binfmt.d, modules-load.d: switch to stacked config dirs in /lib, /etc,...
[thirdparty/systemd.git] / man / sysctl.d.xml
CommitLineData
c91faef3
LP
1<?xml version="1.0"?>
2<!--*-nxml-*-->
3<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4<!--
5 This file is part of systemd.
6
7 Copyright 2011 Lennart Poettering
8
9 systemd is free software; you can redistribute it and/or modify it
10 under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13
14 systemd is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with systemd; If not, see <http://www.gnu.org/licenses/>.
21-->
22<refentry id="sysctl.d">
23
24 <refentryinfo>
25 <title>sysctl.d</title>
26 <productname>systemd</productname>
27
28 <authorgroup>
29 <author>
30 <contrib>Developer</contrib>
31 <firstname>Lennart</firstname>
32 <surname>Poettering</surname>
33 <email>lennart@poettering.net</email>
34 </author>
35 </authorgroup>
36 </refentryinfo>
37
38 <refmeta>
39 <refentrytitle>sysctl.d</refentrytitle>
40 <manvolnum>5</manvolnum>
41 </refmeta>
42
43 <refnamediv>
44 <refname>sysctl.d</refname>
45 <refpurpose>Configure kernel parameters at boot</refpurpose>
46 </refnamediv>
47
48 <refsynopsisdiv>
db1413d7 49 <para><filename>/usr/lib/sysctl.d/*.conf</filename></para>
c91faef3 50 <para><filename>/etc/sysctl.d/*.conf</filename></para>
db1413d7 51 <para><filename>/run/sysctl.d/*.conf</filename></para>
c91faef3
LP
52 </refsynopsisdiv>
53
54 <refsect1>
55 <title>Description</title>
56
57 <para><command>systemd</command> uses
58 <filename>/etc/sysctl.d/</filename> to configure
59 <citerefentry><refentrytitle>sysctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>
60 kernel parameters to load during boot. Each
61 configuration file is named in the style of
62 <filename>/etc/sysctl.d/&lt;program&gt;.conf</filename>.</para>
63 </refsect1>
64
65 <refsect1>
66 <title>Configuration Format</title>
67
68 <para>The configuration files should simply contain a
69 list of variable assignments, separated by
70 newlines. Empty lines and lines whose first
71 non-whitespace character is # or ; are ignored.</para>
72
73 <para>Note that both / and . are accepted as
74 separators in sysctl variable names.</para>
75
db1413d7
KS
76 <para>Files in <filename>/etc/</filename> overwrite
77 files with the same name in <filename>/usr/lib/</filename>.
78 Files in <filename>/run</filename> overwrite files with
79 the same name in <filename>/etc/</filename> and
80 <filename>/usr/lib/</filename>. Packages should install their
81 configuration files in <filename>/usr/lib/</filename>, files
82 in <filename>/etc/</filename> are reserved for the local
83 administration, which possibly decides to overwrite the
84 configurations installed from packages. All files are sorted
85 by filename in alphabetical order, regardless in which of the
86 directories they reside, to ensure that a specific
87 configuration file takes precedence over another file with
88 an alphabetically later name.</para>
c91faef3
LP
89 </refsect1>
90
91 <refsect1>
92 <title>Example</title>
93 <example>
94 <title>/etc/sysctl.d/domain-name.conf example:</title>
95
96 <programlisting># Set kernel YP domain name
97kernel.domainname=example.com</programlisting>
98 </example>
99 </refsect1>
100
101 <refsect1>
102 <title>See Also</title>
103 <para>
104 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
105 <citerefentry><refentrytitle>sysctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
106 <citerefentry><refentrytitle>sysctl.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
107 </para>
108 </refsect1>
109
110</refentry>