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