sysctl.d.xml revision 71418295125c542d3edd1e7251bb0701ef1af89b
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend<!--*-nxml-*-->
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
7ec4d5cc4aa574e3191bc5a612e68fd8f25ab7earpluem This file is part of systemd.
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend Copyright 2011 Lennart Poettering
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend systemd is free software; you can redistribute it and/or modify it
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend under the terms of the GNU Lesser General Public License as published by
d9b843d090f14405079b4a61a493316cd3f1e5b9minfrin the Free Software Foundation; either version 2.1 of the License, or
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend (at your option) any later version.
909ce17e2bd0faef7b1c294f2307f009793fd493nd systemd is distributed in the hope that it will be useful, but
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend WITHOUT ANY WARRANTY; without even the implied warranty of
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0ce5630695a7aa568811a9dd0aceedd685f040dend Lesser General Public License for more details.
367d146f245f3b1c9f77c18e6ec591b52e0b344cbnicholes You should have received a copy of the GNU Lesser General Public License
6fe26506780e73be2a412d758af77fafdf03291and along with systemd; If not, see <http://www.gnu.org/licenses/>.
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend <refentryinfo>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend <authorgroup>
05ede5110427cb9dc071cc671d5aaba5d3b88c79nd </authorgroup>
e8b603fa9ccf7b17b11b42df6d8916fd97c2331dnd </refentryinfo>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend </refmeta>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend <refnamediv>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend <refpurpose>Configure kernel parameters at boot</refpurpose>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend </refnamediv>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend <refsynopsisdiv>
7d15331eeb5429d7148d13d6fd914a641bf1c000pquerna <para><filename>/run/sysctl.d/*.conf</filename></para>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend <para><filename>/usr/lib/sysctl.d/*.conf</filename></para>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend </refsynopsisdiv>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend <refsect1>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend <para>At boot,
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend <citerefentry><refentrytitle>systemd-sysctl.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend reads configuration files from the above directories
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend to configure
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend <citerefentry><refentrytitle>sysctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend kernel parameters.</para>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend </refsect1>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend <para>The configuration files contain a list of
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend variable assignments, separated by newlines. Empty
4277c95b5a9454a5c25f8d8762634fcff37aa840minfrin lines and lines whose first non-whitespace character
4277c95b5a9454a5c25f8d8762634fcff37aa840minfrin ignored.</para>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend <para>Each configuration file shall be named in the
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend style of <filename><replaceable>program</replaceable>.conf</filename>.
10eed2803538d660048f6e733602e82a75ef6885noodl <filename>/run/</filename> override files with the same
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend should install their configuration files in
03c25fb6f628ac81f2ecb637d1e7502dcee783f3nd administrator, who may use this logic to override the
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend configuration files installed by vendor packages. All
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend configuration files are sorted by their filename in
0ce5630695a7aa568811a9dd0aceedd685f040dend lexicographic order, regardless of which of the
7fa75a06a4fee19e995c069ee00310455d1452e1pquerna directories they reside in. If multiple files specify the
0ce5630695a7aa568811a9dd0aceedd685f040dend same variable name, the entry in the file with the
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend lexicographically latest name will be applied. It is
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend recommended to prefix all filenames with a two-digit
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend number and a dash, to simplify the ordering of the
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend files.</para>
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend sysctl variable names. If the first separator is a
usually loaded on demand, e.g. when certain hardware
<citerefentry><refentrytitle>systemd-sysctl.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> which runs
an <citerefentry><refentrytitle>udev</refentrytitle><manvolnum>7</manvolnum></citerefentry> rule to set those parameters when they become
<citerefentry><refentrytitle>modules-load.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>, causing it to be loaded statically
<programlisting>ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge"
<citerefentry><refentrytitle>systemd-sysctl.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,