]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-sysctl.service.xml
man: standarize on one-line license header
[thirdparty/systemd.git] / man / systemd-sysctl.service.xml
CommitLineData
9393a877
LP
1<?xml version="1.0"?>
2<!--*-nxml-*-->
12b42c76 3<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
0307f791 4<!-- SPDX-License-Identifier: LGPL-2.1+ -->
14f01575
FS
5<refentry id="systemd-sysctl.service"
6 xmlns:xi="http://www.w3.org/2001/XInclude">
9393a877 7
798d3a52
ZJS
8 <refentryinfo>
9 <title>systemd-sysctl.service</title>
10 <productname>systemd</productname>
798d3a52 11 </refentryinfo>
9393a877 12
798d3a52
ZJS
13 <refmeta>
14 <refentrytitle>systemd-sysctl.service</refentrytitle>
15 <manvolnum>8</manvolnum>
16 </refmeta>
9393a877 17
798d3a52
ZJS
18 <refnamediv>
19 <refname>systemd-sysctl.service</refname>
20 <refname>systemd-sysctl</refname>
21 <refpurpose>Configure kernel parameters at boot</refpurpose>
22 </refnamediv>
9393a877 23
798d3a52 24 <refsynopsisdiv>
14f01575
FS
25 <cmdsynopsis>
26 <command>/usr/lib/systemd/systemd-sysctl</command>
27 <arg choice="opt" rep="repeat">OPTIONS</arg>
28 <arg choice="opt" rep="repeat"><replaceable>CONFIGFILE</replaceable></arg>
29 </cmdsynopsis>
798d3a52 30 <para><filename>systemd-sysctl.service</filename></para>
798d3a52 31 </refsynopsisdiv>
9393a877 32
798d3a52
ZJS
33 <refsect1>
34 <title>Description</title>
9393a877 35
b938cb90 36 <para><filename>systemd-sysctl.service</filename> is an early boot
798d3a52 37 service that configures
3ba3a79d 38 <citerefentry project='man-pages'><refentrytitle>sysctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>
7382a3cc 39 kernel parameters by invoking <command>/usr/lib/systemd/systemd-sysctl</command>.</para>
9393a877 40
7382a3cc
ZJS
41 <para>When invoked with no arguments, <command>/usr/lib/systemd/systemd-sysctl</command> applies
42 all directives from configuration files listed in
43 <citerefentry><refentrytitle>sysctl.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
44 If one or more filenames are passed on the command line, only the directives in these files are
45 applied.</para>
46
47 <para>In addition, <option>--prefix=</option> option may be used to limit which sysctl
48 settings are applied.</para>
14f01575 49
798d3a52 50 <para>See
2d56bdab 51 <citerefentry><refentrytitle>sysctl.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>
7382a3cc
ZJS
52 for information about the configuration of sysctl settings. After sysctl configuration is
53 changed on disk, it must be written to the files in <filename>/proc/sys</filename> before it
54 takes effect. It is possible to update specific settings, or simply to reload all configuration,
55 see Examples below.</para>
798d3a52 56 </refsect1>
9393a877 57
14f01575
FS
58 <refsect1><title>Options</title>
59 <variablelist>
7382a3cc
ZJS
60 <varlistentry id='prefix'>
61 <term><option>--prefix=</option></term>
14f01575
FS
62 <listitem>
63 <para>Only apply rules with the specified prefix.</para>
64 </listitem>
65 </varlistentry>
66
3c51c626 67 <xi:include href="standard-options.xml" xpointer="cat-config" />
dcd5c891 68 <xi:include href="standard-options.xml" xpointer="no-pager" />
14f01575
FS
69 <xi:include href="standard-options.xml" xpointer="help" />
70 <xi:include href="standard-options.xml" xpointer="version" />
71
72 </variablelist>
73 </refsect1>
74
7382a3cc
ZJS
75 <refsect1>
76 <title>Examples</title>
77
78 <example>
79 <title>Reset all sysctl settings</title>
80
81 <programlisting>systemctl restart systemd-sysctl</programlisting>
82 </example>
83
84 <example>
85 <title>View coredump handler configuration</title>
86
87 <programlisting># sysctl kernel.core_pattern
88kernel.core_pattern = |/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t %P %I
89</programlisting>
90 </example>
91
92 <example>
93 <title>Update coredump handler configuration</title>
94
95 <programlisting># /usr/lib/systemd/systemd-sysctl --prefix kernel.core_pattern</programlisting>
96
97 <para>This searches all the directories listed in
98 <citerefentry><refentrytitle>sysctl.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>
99 for configuration files and writes <filename>/proc/sys/kernel/core_pattern</filename>.</para>
100 </example>
101
102 <example>
103 <title>Update coredump handler configuration according to a specific file</title>
104
105 <programlisting># /usr/lib/systemd/systemd-sysctl 50-coredump.conf</programlisting>
106
107 <para>This applies all the settings found in <filename>50-coredump.conf</filename>.
108 Either <filename>/etc/sysctl.d/50-coredump.conf</filename>, or
109 <filename>/run/sysctl.d/50-coredump.conf</filename>, or
110 <filename>/usr/lib/sysctl.d/50-coredump.conf</filename> will be used, in the order
111 of preference.</para>
112 </example>
113
114 <para>See
115 <citerefentry project='man-pages'><refentrytitle>sysctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>
116 for various ways to directly apply sysctl settings.</para>
117 </refsect1>
118
798d3a52
ZJS
119 <refsect1>
120 <title>See Also</title>
121 <para>
122 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
2d56bdab 123 <citerefentry><refentrytitle>sysctl.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
3ba3a79d 124 <citerefentry project='man-pages'><refentrytitle>sysctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
798d3a52
ZJS
125 </para>
126 </refsect1>
9393a877
LP
127
128</refentry>