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