]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/systemd.unit.xml
docs: describe valid unit names in systemd.unit(5)
[thirdparty/systemd.git] / man / systemd.unit.xml
1 <?xml version='1.0'?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
4 <!ENTITY % entities SYSTEM "custom-entities.ent" >
5 %entities;
6 ]>
7 <!-- SPDX-License-Identifier: LGPL-2.1+ -->
8
9 <refentry id="systemd.unit">
10
11 <refentryinfo>
12 <title>systemd.unit</title>
13 <productname>systemd</productname>
14 </refentryinfo>
15
16 <refmeta>
17 <refentrytitle>systemd.unit</refentrytitle>
18 <manvolnum>5</manvolnum>
19 </refmeta>
20
21 <refnamediv>
22 <refname>systemd.unit</refname>
23 <refpurpose>Unit configuration</refpurpose>
24 </refnamediv>
25
26 <refsynopsisdiv>
27 <para><filename><replaceable>service</replaceable>.service</filename>,
28 <filename><replaceable>socket</replaceable>.socket</filename>,
29 <filename><replaceable>device</replaceable>.device</filename>,
30 <filename><replaceable>mount</replaceable>.mount</filename>,
31 <filename><replaceable>automount</replaceable>.automount</filename>,
32 <filename><replaceable>swap</replaceable>.swap</filename>,
33 <filename><replaceable>target</replaceable>.target</filename>,
34 <filename><replaceable>path</replaceable>.path</filename>,
35 <filename><replaceable>timer</replaceable>.timer</filename>,
36 <filename><replaceable>slice</replaceable>.slice</filename>,
37 <filename><replaceable>scope</replaceable>.scope</filename></para>
38
39 <refsect2>
40 <title>System Unit Search Path</title>
41
42 <para><literallayout><filename>/etc/systemd/system.control/*</filename>
43 <filename>/run/systemd/system.control/*</filename>
44 <filename>/run/systemd/transient/*</filename>
45 <filename>/run/systemd/generator.early/*</filename>
46 <filename>/etc/systemd/system/*</filename>
47 <filename>/etc/systemd/systemd.attached/*</filename>
48 <filename>/run/systemd/system/*</filename>
49 <filename>/run/systemd/systemd.attached/*</filename>
50 <filename>/run/systemd/generator/*</filename>
51 <filename></filename>
52 <filename>/usr/lib/systemd/system/*</filename>
53 <filename>/run/systemd/generator.late/*</filename></literallayout></para>
54 </refsect2>
55
56 <refsect2>
57 <title>User Unit Search Path</title>
58 <para><literallayout><filename>~/.config/systemd/user.control/*</filename>
59 <filename>$XDG_RUNTIME_DIR/systemd/user.control/*</filename>
60 <filename>$XDG_RUNTIME_DIR/systemd/transient/*</filename>
61 <filename>$XDG_RUNTIME_DIR/systemd/generator.early/*</filename>
62 <filename>~/.config/systemd/user/*</filename>
63 <filename>/etc/systemd/user/*</filename>
64 <filename>$XDG_RUNTIME_DIR/systemd/user/*</filename>
65 <filename>/run/systemd/user/*</filename>
66 <filename>$XDG_RUNTIME_DIR/systemd/generator/*</filename>
67 <filename>~/.local/share/systemd/user/*</filename>
68 <filename></filename>
69 <filename>/usr/lib/systemd/user/*</filename>
70 <filename>$XDG_RUNTIME_DIR/systemd/generator.late/*</filename></literallayout></para>
71 </refsect2>
72
73 </refsynopsisdiv>
74
75 <refsect1>
76 <title>Description</title>
77
78 <para>A unit file is a plain text ini-style file that encodes information about a service, a
79 socket, a device, a mount point, an automount point, a swap file or partition, a start-up
80 target, a watched file system path, a timer controlled and supervised by
81 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, a
82 resource management slice or a group of externally created processes. See
83 <citerefentry><refentrytitle>systemd.syntax</refentrytitle><manvolnum>5</manvolnum></citerefentry>
84 for a general description of the syntax.</para>
85
86 <para>This man page lists the common configuration options of all
87 the unit types. These options need to be configured in the [Unit]
88 or [Install] sections of the unit files.</para>
89
90 <para>In addition to the generic [Unit] and [Install] sections
91 described here, each unit may have a type-specific section, e.g.
92 [Service] for a service unit. See the respective man pages for
93 more information:
94 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
95 <citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
96 <citerefentry><refentrytitle>systemd.device</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
97 <citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
98 <citerefentry><refentrytitle>systemd.automount</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
99 <citerefentry><refentrytitle>systemd.swap</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
100 <citerefentry><refentrytitle>systemd.target</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
101 <citerefentry><refentrytitle>systemd.path</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
102 <citerefentry><refentrytitle>systemd.timer</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
103 <citerefentry><refentrytitle>systemd.slice</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
104 <citerefentry><refentrytitle>systemd.scope</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
105 </para>
106
107 <para>Unit files are loaded from a set of paths determined during compilation, described in the next
108 section.</para>
109
110 <para>Valid unit names consist of a "name prefix" and a dot and a suffix specifying the unit type. The
111 "unit prefix" must consist of one or more valid characters (ASCII letters, digits, <literal>:</literal>,
112 <literal>-</literal>, <literal>_</literal>, <literal>.</literal>, and <literal>\</literal>). The total
113 length of the unit name including the suffix must not exceed 256 characters. The type suffix must be one
114 of <literal>.service</literal>, <literal>.socket</literal>, <literal>.device</literal>,
115 <literal>.mount</literal>, <literal>.automount</literal>, <literal>.swap</literal>,
116 <literal>.target</literal>, <literal>.path</literal>, <literal>.timer</literal>,
117 <literal>.slice</literal>, or <literal>.scope</literal>.</para>
118
119 <para>Units names can be parameterized by a single argument called the "instance name". The unit is then
120 constructed based on a "template file" which serves as the definition of multiple services or other
121 units. A template unit must have a single <literal>@</literal> at the end of the name (right before the
122 type suffix). The name of the full unit is formed by inserting the instance name between
123 <literal>@</literal> and the unit type suffix. In the unit file itself, the instance parameter may be
124 referred to using <literal>%i</literal> and other specifiers, see below.</para>
125
126 <para>Unit files may contain additional options on top of those
127 listed here. If systemd encounters an unknown option, it will
128 write a warning log message but continue loading the unit. If an
129 option or section name is prefixed with <option>X-</option>, it is
130 ignored completely by systemd. Options within an ignored section
131 do not need the prefix. Applications may use this to include
132 additional information in the unit files.</para>
133
134 <para>Units can be aliased (have an alternative name), by creating a symlink from the new name to the
135 existing name in one of the unit search paths. For example, <filename>systemd-networkd.service</filename>
136 has the alias <filename>dbus-org.freedesktop.network1.service</filename>, created during installation as
137 a symlink, so when <command>systemd</command> is asked through D-Bus to load
138 <filename>dbus-org.freedesktop.network1.service</filename>, it'll load
139 <filename>systemd-networkd.service</filename>. Alias names may be used in commands like
140 <command>enable</command>, <command>disable</command>, <command>start</command>, <command>stop</command>,
141 <command>status</command>, and similar, and in all unit dependency directives, including
142 <varname>Wants=</varname>, <varname>Requires=</varname>, <varname>Before=</varname>,
143 <varname>After=</varname>. Aliases cannot be used with the <command>preset</command> command.</para>
144
145 <para>Unit files may specify aliases through the <varname>Alias=</varname> directive in the [Install]
146 section. When the unit is enabled, symlinks will be created for those names, and removed when the unit is
147 disabled. For example, <filename>reboot.target</filename> specifies
148 <varname>Alias=ctrl-alt-del.target</varname>, so when enabled, the symlink
149 <filename>/etc/systemd/systemd/ctrl-alt-del.service</filename> pointing to the
150 <filename>reboot.target</filename> file will be created, and when
151 <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>Del</keycap></keycombo> is invoked,
152 <command>systemd</command> will look for the <filename>ctrl-alt-del.service</filename> and execute
153 <filename>reboot.service</filename>. <command>systemd</command> does not look at the [Install] section at
154 all during normal operation, so any directives in that section only have an effect through the symlinks
155 created during enablement.</para>
156
157 <para>Along with a unit file <filename>foo.service</filename>, the directory
158 <filename>foo.service.wants/</filename> may exist. All unit files symlinked from such a directory are
159 implicitly added as dependencies of type <varname>Wants=</varname> to the unit. Similar functionality
160 exists for <varname>Requires=</varname> type dependencies as well, the directory suffix is
161 <filename>.requires/</filename> in this case. This functionality is useful to hook units into the
162 start-up of other units, without having to modify their unit files. For details about the semantics of
163 <varname>Wants=</varname>, see below. The preferred way to create symlinks in the
164 <filename>.wants/</filename> or <filename>.requires/</filename> directory of a unit file is by embedding
165 the dependency in [Install] section of the target unit, and creating the symlink in the file system with
166 the with the <command>enable</command> or <command>preset</command> commands of
167 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para>
168
169 <para>Along with a unit file <filename>foo.service</filename>, a "drop-in" directory
170 <filename>foo.service.d/</filename> may exist. All files with the suffix <literal>.conf</literal> from this
171 directory will be parsed after the unit file itself is parsed. This is useful to alter or add configuration
172 settings for a unit, without having to modify unit files. Drop-in files must contain appropriate section
173 headers. For instantiated units, this logic will first look for the instance <literal>.d/</literal> subdirectory
174 (e.g. <literal>foo@bar.service.d/</literal>) and read its <literal>.conf</literal> files, followed by the template
175 <literal>.d/</literal> subdirectory (e.g. <literal>foo@.service.d/</literal>) and the <literal>.conf</literal>
176 files there. Moreover for units names containing dashes (<literal>-</literal>), the set of directories generated by
177 truncating the unit name after all dashes is searched too. Specifically, for a unit name
178 <filename>foo-bar-baz.service</filename> not only the regular drop-in directory
179 <filename>foo-bar-baz.service.d/</filename> is searched but also both <filename>foo-bar-.service.d/</filename> and
180 <filename>foo-.service.d/</filename>. This is useful for defining common drop-ins for a set of related units, whose
181 names begin with a common prefix. This scheme is particularly useful for mount, automount and slice units, whose
182 systematic naming structure is built around dashes as component separators. Note that equally named drop-in files
183 further down the prefix hierarchy override those further up,
184 i.e. <filename>foo-bar-.service.d/10-override.conf</filename> overrides
185 <filename>foo-.service.d/10-override.conf</filename>.</para>
186
187 <para>In addition to <filename>/etc/systemd/system</filename>, the drop-in <literal>.d/</literal>
188 directories for system services can be placed in <filename>/usr/lib/systemd/system</filename> or
189 <filename>/run/systemd/system</filename> directories. Drop-in files in <filename>/etc</filename>
190 take precedence over those in <filename>/run</filename> which in turn take precedence over those
191 in <filename>/usr/lib</filename>. Drop-in files under any of these directories take precedence
192 over unit files wherever located. Multiple drop-in files with different names are applied in
193 lexicographic order, regardless of which of the directories they reside in.</para>
194
195 <!-- Note that we do not document .include here, as we consider it mostly obsolete, and want
196 people to use .d/ drop-ins instead. -->
197
198 <para>Note that while systemd offers a flexible dependency system
199 between units it is recommended to use this functionality only
200 sparingly and instead rely on techniques such as bus-based or
201 socket-based activation which make dependencies implicit,
202 resulting in a both simpler and more flexible system.</para>
203
204 <para>As mentioned above, a unit may be instantiated from a template file. This allows creation
205 of multiple units from a single configuration file. If systemd looks for a unit configuration
206 file, it will first search for the literal unit name in the file system. If that yields no
207 success and the unit name contains an <literal>@</literal> character, systemd will look for a
208 unit template that shares the same name but with the instance string (i.e. the part between the
209 <literal>@</literal> character and the suffix) removed. Example: if a service
210 <filename>getty@tty3.service</filename> is requested and no file by that name is found, systemd
211 will look for <filename>getty@.service</filename> and instantiate a service from that
212 configuration file if it is found.</para>
213
214 <para>To refer to the instance string from within the
215 configuration file you may use the special <literal>%i</literal>
216 specifier in many of the configuration options. See below for
217 details.</para>
218
219 <para>If a unit file is empty (i.e. has the file size 0) or is
220 symlinked to <filename>/dev/null</filename>, its configuration
221 will not be loaded and it appears with a load state of
222 <literal>masked</literal>, and cannot be activated. Use this as an
223 effective way to fully disable a unit, making it impossible to
224 start it even manually.</para>
225
226 <para>The unit file format is covered by the
227 <ulink
228 url="https://www.freedesktop.org/wiki/Software/systemd/InterfaceStabilityPromise">Interface
229 Stability Promise</ulink>.</para>
230
231 </refsect1>
232
233 <refsect1>
234 <title>String Escaping for Inclusion in Unit Names</title>
235
236 <para>Sometimes it is useful to convert arbitrary strings into unit names. To facilitate this, a method of string
237 escaping is used, in order to map strings containing arbitrary byte values (except NUL) into valid unit names and
238 their restricted character set. A common special case are unit names that reflect paths to objects in the file
239 system hierarchy. Example: a device unit <filename>dev-sda.device</filename> refers to a device with the device
240 node <filename noindex='true'>/dev/sda</filename> in the file system.</para>
241
242 <para>The escaping algorithm operates as follows: given a string, any <literal>/</literal> character is replaced by
243 <literal>-</literal>, and all other characters which are not ASCII alphanumerics or <literal>_</literal> are
244 replaced by C-style <literal>\x2d</literal> escapes. In addition, <literal>.</literal> is replaced with such a
245 C-style escape when it would appear as the first character in the escaped string.</para>
246
247 <para>When the input qualifies as absolute file system path, this algorithm is extended slightly: the path to the
248 root directory <literal>/</literal> is encoded as single dash <literal>-</literal>. In addition, any leading,
249 trailing or duplicate <literal>/</literal> characters are removed from the string before transformation. Example:
250 <filename>/foo//bar/baz/</filename> becomes <literal>foo-bar-baz</literal>.</para>
251
252 <para>This escaping is fully reversible, as long as it is known whether the escaped string was a path (the
253 unescaping results are different for paths and non-path strings). The
254 <citerefentry><refentrytitle>systemd-escape</refentrytitle><manvolnum>1</manvolnum></citerefentry> command may be
255 used to apply and reverse escaping on arbitrary strings. Use <command>systemd-escape --path</command> to escape
256 path strings, and <command>systemd-escape</command> without <option>--path</option> otherwise.</para>
257 </refsect1>
258
259 <refsect1>
260 <title>Automatic dependencies</title>
261
262 <refsect2>
263 <title>Implicit Dependencies</title>
264
265 <para>A number of unit dependencies are implicitly established, depending on unit type and
266 unit configuration. These implicit dependencies can make unit configuration file cleaner. For
267 the implicit dependencies in each unit type, please refer to section "Implicit Dependencies"
268 in respective man pages.</para>
269
270 <para>For example, service units with <varname>Type=dbus</varname> automatically acquire
271 dependencies of type <varname>Requires=</varname> and <varname>After=</varname> on
272 <filename>dbus.socket</filename>. See
273 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>
274 for details.</para>
275 </refsect2>
276
277 <refsect2>
278 <title>Default Dependencies</title>
279
280 <para>Default dependencies are similar to implicit dependencies, but can be turned on and off
281 by setting <varname>DefaultDependencies=</varname> to <varname>yes</varname> (the default) and
282 <varname>no</varname>, while implicit dependencies are always in effect. See section "Default
283 Dependencies" in respective man pages for the effect of enabling
284 <varname>DefaultDependencies=</varname> in each unit types.</para>
285
286 <para>For example, target units will complement all configured dependencies of type
287 <varname>Wants=</varname> or <varname>Requires=</varname> with dependencies of type
288 <varname>After=</varname> unless <varname>DefaultDependencies=no</varname> is set in the
289 specified units. See
290 <citerefentry><refentrytitle>systemd.target</refentrytitle><manvolnum>5</manvolnum></citerefentry>
291 for details. Note that this behavior can be turned off by setting
292 <varname>DefaultDependencies=no</varname>.</para>
293 </refsect2>
294 </refsect1>
295
296 <refsect1>
297 <title>Unit File Load Path</title>
298
299 <para>Unit files are loaded from a set of paths determined during
300 compilation, described in the two tables below. Unit files found
301 in directories listed earlier override files with the same name in
302 directories lower in the list.</para>
303
304 <para>When the variable <varname>$SYSTEMD_UNIT_PATH</varname> is set,
305 the contents of this variable overrides the unit load path. If
306 <varname>$SYSTEMD_UNIT_PATH</varname> ends with an empty component
307 (<literal>:</literal>), the usual unit load path will be appended
308 to the contents of the variable.</para>
309
310 <table>
311 <title>
312 Load path when running in system mode (<option>--system</option>).
313 </title>
314
315 <tgroup cols='2'>
316 <colspec colname='path' />
317 <colspec colname='expl' />
318 <thead>
319 <row>
320 <entry>Path</entry>
321 <entry>Description</entry>
322 </row>
323 </thead>
324 <tbody>
325 <row>
326 <entry><filename>/etc/systemd/system.control</filename></entry>
327 <entry morerows="1">Persistent and transient configuration created using the dbus API</entry>
328 </row>
329 <row>
330 <entry><filename>/run/systemd/system.control</filename></entry>
331 </row>
332 <row>
333 <entry><filename>/run/systemd/transient</filename></entry>
334 <entry>Dynamic configuration for transient units</entry>
335 </row>
336 <row>
337 <entry><filename>/run/systemd/generator.early</filename></entry>
338 <entry>Generated units with high priority (see <replaceable>early-dir</replaceable> in <citerefentry
339 ><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>)</entry>
340 </row>
341 <row>
342 <entry><filename>/etc/systemd/system</filename></entry>
343 <entry>System units created by the administrator</entry>
344 </row>
345 <row>
346 <entry><filename>/run/systemd/system</filename></entry>
347 <entry>Runtime units</entry>
348 </row>
349 <row>
350 <entry><filename>/run/systemd/generator</filename></entry>
351 <entry>Generated units with medium priority (see <replaceable>normal-dir</replaceable> in <citerefentry
352 ><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>)</entry>
353 </row>
354 <row>
355 <entry><filename>/usr/local/lib/systemd/system</filename></entry>
356 <entry>System units installed by the administrator </entry>
357 </row>
358 <row>
359 <entry><filename>/usr/lib/systemd/system</filename></entry>
360 <entry>System units installed by the distribution package manager</entry>
361 </row>
362 <row>
363 <entry><filename>/run/systemd/generator.late</filename></entry>
364 <entry>Generated units with low priority (see <replaceable>late-dir</replaceable> in <citerefentry
365 ><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>)</entry>
366 </row>
367 </tbody>
368 </tgroup>
369 </table>
370
371 <table>
372 <title>
373 Load path when running in user mode (<option>--user</option>).
374 </title>
375
376 <tgroup cols='2'>
377 <colspec colname='path' />
378 <colspec colname='expl' />
379 <thead>
380 <row>
381 <entry>Path</entry>
382 <entry>Description</entry>
383 </row>
384 </thead>
385 <tbody>
386 <row>
387 <entry><filename>$XDG_CONFIG_HOME/systemd/user.control</filename> or <filename
388 >~/.config/systemd/user.control</filename></entry>
389 <entry morerows="1">Persistent and transient configuration created using the dbus API (<varname>$XDG_CONFIG_HOME</varname> is used if set, <filename>~/.config</filename> otherwise)</entry>
390 </row>
391 <row>
392 <entry><filename>$XDG_RUNTIME_DIR/systemd/user.control</filename></entry>
393 </row>
394 <row>
395 <entry><filename>/run/systemd/transient</filename></entry>
396 <entry>Dynamic configuration for transient units</entry>
397 </row>
398 <row>
399 <entry><filename>/run/systemd/generator.early</filename></entry>
400 <entry>Generated units with high priority (see <replaceable>early-dir</replaceable> in <citerefentry
401 ><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>)</entry>
402 </row>
403 <row>
404 <entry><filename>$XDG_CONFIG_HOME/systemd/user</filename> or <filename>$HOME/.config/systemd/user</filename></entry>
405 <entry>User configuration (<varname>$XDG_CONFIG_HOME</varname> is used if set, <filename>~/.config</filename> otherwise)</entry>
406 </row>
407 <row>
408 <entry><filename>/etc/systemd/user</filename></entry>
409 <entry>User units created by the administrator</entry>
410 </row>
411 <row>
412 <entry><filename>$XDG_RUNTIME_DIR/systemd/user</filename></entry>
413 <entry>Runtime units (only used when $XDG_RUNTIME_DIR is set)</entry>
414 </row>
415 <row>
416 <entry><filename>/run/systemd/user</filename></entry>
417 <entry>Runtime units</entry>
418 </row>
419 <row>
420 <entry><filename>$XDG_RUNTIME_DIR/systemd/generator</filename></entry>
421 <entry>Generated units with medium priority (see <replaceable>normal-dir</replaceable> in <citerefentry
422 ><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>)</entry>
423 </row>
424 <row>
425 <entry><filename>$XDG_DATA_HOME/systemd/user</filename> or <filename>$HOME/.local/share/systemd/user</filename></entry>
426 <entry>Units of packages that have been installed in the home directory (<varname>$XDG_DATA_HOME</varname> is used if set, <filename>~/.local/share</filename> otherwise)</entry>
427 </row>
428 <row>
429 <entry><filename>$dir/systemd/user</filename> for each <varname noindex='true'>$dir</varname> in <varname>$XDG_DATA_DIRS</varname></entry>
430 <entry>Additional locations for installed user units, one for each entry in <varname>$XDG_DATA_DIRS</varname></entry>
431 </row>
432 <row>
433 <entry><filename>/usr/local/lib/systemd/user</filename></entry>
434 <entry>User units installed by the administrator</entry>
435 </row>
436 <row>
437 <entry><filename>/usr/lib/systemd/user</filename></entry>
438 <entry>User units installed by the distribution package manager</entry>
439 </row>
440 <row>
441 <entry><filename>$XDG_RUNTIME_DIR/systemd/generator.late</filename></entry>
442 <entry>Generated units with low priority (see <replaceable>late-dir</replaceable> in <citerefentry
443 ><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>)</entry>
444 </row>
445 </tbody>
446 </tgroup>
447 </table>
448
449 <para>The set of load paths for the user manager instance may be augmented or
450 changed using various environment variables. And environment variables may in
451 turn be set using environment generators, see
452 <citerefentry><refentrytitle>systemd.environment-generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>.
453 In particular, <varname>$XDG_DATA_HOME</varname> and
454 <varname>$XDG_DATA_DIRS</varname> may be easily set using
455 <citerefentry><refentrytitle>systemd-environment-d-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
456 Thus, directories listed here are just the defaults. To see the actual list that
457 would be used based on compilation options and current environment use
458 <programlisting>systemd-analyze --user unit-paths</programlisting>
459 </para>
460
461 <para>Moreover, additional units might be loaded into systemd ("linked") from
462 directories not on the unit load path. See the <command>link</command> command
463 for
464 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
465 </para>
466 </refsect1>
467
468 <refsect1>
469 <title>Unit Garbage Collection</title>
470
471 <para>The system and service manager loads a unit's configuration automatically when a unit is referenced for the
472 first time. It will automatically unload the unit configuration and state again when the unit is not needed anymore
473 ("garbage collection"). A unit may be referenced through a number of different mechanisms:</para>
474
475 <orderedlist>
476 <listitem><para>Another loaded unit references it with a dependency such as <varname>After=</varname>,
477 <varname>Wants=</varname>, …</para></listitem>
478
479 <listitem><para>The unit is currently starting, running, reloading or stopping.</para></listitem>
480
481 <listitem><para>The unit is currently in the <constant>failed</constant> state. (But see below.)</para></listitem>
482
483 <listitem><para>A job for the unit is pending.</para></listitem>
484
485 <listitem><para>The unit is pinned by an active IPC client program.</para></listitem>
486
487 <listitem><para>The unit is a special "perpetual" unit that is always active and loaded. Examples for perpetual
488 units are the root mount unit <filename>-.mount</filename> or the scope unit <filename>init.scope</filename> that
489 the service manager itself lives in.</para></listitem>
490
491 <listitem><para>The unit has running processes associated with it.</para></listitem>
492 </orderedlist>
493
494 <para>The garbage collection logic may be altered with the <varname>CollectMode=</varname> option, which allows
495 configuration whether automatic unloading of units that are in <constant>failed</constant> state is permissible,
496 see below.</para>
497
498 <para>Note that when a unit's configuration and state is unloaded, all execution results, such as exit codes, exit
499 signals, resource consumption and other statistics are lost, except for what is stored in the log subsystem.</para>
500
501 <para>Use <command>systemctl daemon-reload</command> or an equivalent command to reload unit configuration while
502 the unit is already loaded. In this case all configuration settings are flushed out and replaced with the new
503 configuration (which however might not be in effect immediately), however all runtime state is
504 saved/restored.</para>
505 </refsect1>
506
507 <refsect1>
508 <title>[Unit] Section Options</title>
509
510 <para>The unit file may include a [Unit] section, which carries
511 generic information about the unit that is not dependent on the
512 type of unit:</para>
513
514 <variablelist class='unit-directives'>
515
516 <varlistentry>
517 <term><varname>Description=</varname></term>
518 <listitem><para>A human readable name for the unit. This is used by
519 <command>systemd</command> (and other UIs) as the label for the unit, so this string should
520 identify the unit rather than describe it, despite the name. <literal>Apache2 Web
521 Server</literal> is a good example. Bad examples are <literal>high-performance light-weight
522 HTTP server</literal> (too generic) or <literal>Apache2</literal> (too specific and
523 meaningless for people who do not know Apache). <command>systemd</command> will use this
524 string as a noun in status messages (<literal>Starting
525 <replaceable>description</replaceable>...</literal>, <literal>Started
526 <replaceable>description</replaceable>.</literal>, <literal>Reached target
527 <replaceable>description</replaceable>.</literal>, <literal>Failed to start
528 <replaceable>description</replaceable>.</literal>), so it should be capitalized, and should
529 not be a full sentence or a phrase with a continuous verb. Bad examples include
530 <literal>exiting the container</literal> or <literal>updating the database once per
531 day.</literal>.</para>
532 </listitem>
533 </varlistentry>
534
535 <varlistentry>
536 <term><varname>Documentation=</varname></term>
537 <listitem><para>A space-separated list of URIs referencing
538 documentation for this unit or its configuration. Accepted are
539 only URIs of the types <literal>http://</literal>,
540 <literal>https://</literal>, <literal>file:</literal>,
541 <literal>info:</literal>, <literal>man:</literal>. For more
542 information about the syntax of these URIs, see <citerefentry
543 project='man-pages'><refentrytitle>uri</refentrytitle><manvolnum>7</manvolnum></citerefentry>.
544 The URIs should be listed in order of relevance, starting with
545 the most relevant. It is a good idea to first reference
546 documentation that explains what the unit's purpose is,
547 followed by how it is configured, followed by any other
548 related documentation. This option may be specified more than
549 once, in which case the specified list of URIs is merged. If
550 the empty string is assigned to this option, the list is reset
551 and all prior assignments will have no
552 effect.</para></listitem>
553 </varlistentry>
554
555 <varlistentry>
556 <term><varname>Requires=</varname></term>
557
558 <listitem><para>Configures requirement dependencies on other units. If this unit gets activated, the units
559 listed here will be activated as well. If one of the other units fails to activate, and an ordering dependency
560 <varname>After=</varname> on the failing unit is set, this unit will not be started. Besides, with or without
561 specifying <varname>After=</varname>, this unit will be stopped if one of the other units is explicitly
562 stopped. This option may be specified more than once or multiple space-separated units may be
563 specified in one option in which case requirement dependencies for all listed names will be created. Note that
564 requirement dependencies do not influence the order in which services are started or stopped. This has to be
565 configured independently with the <varname>After=</varname> or <varname>Before=</varname> options. If a unit
566 <filename>foo.service</filename> requires a unit <filename>bar.service</filename> as configured with
567 <varname>Requires=</varname> and no ordering is configured with <varname>After=</varname> or
568 <varname>Before=</varname>, then both units will be started simultaneously and without any delay between them
569 if <filename>foo.service</filename> is activated. Often, it is a better choice to use <varname>Wants=</varname>
570 instead of <varname>Requires=</varname> in order to achieve a system that is more robust when dealing with
571 failing services.</para>
572
573 <para>Note that this dependency type does not imply that the other unit always has to be in active state when
574 this unit is running. Specifically: failing condition checks (such as <varname>ConditionPathExists=</varname>,
575 <varname>ConditionPathIsSymbolicLink=</varname>, … — see below) do not cause the start job of a unit with a
576 <varname>Requires=</varname> dependency on it to fail. Also, some unit types may deactivate on their own (for
577 example, a service process may decide to exit cleanly, or a device may be unplugged by the user), which is not
578 propagated to units having a <varname>Requires=</varname> dependency. Use the <varname>BindsTo=</varname>
579 dependency type together with <varname>After=</varname> to ensure that a unit may never be in active state
580 without a specific other unit also in active state (see below).</para>
581
582 <para>Note that dependencies of this type may also be configured outside of the unit configuration file by
583 adding a symlink to a <filename>.requires/</filename> directory accompanying the unit file. For details, see
584 above.</para></listitem>
585 </varlistentry>
586
587 <varlistentry>
588 <term><varname>Requisite=</varname></term>
589
590 <listitem><para>Similar to <varname>Requires=</varname>. However, if the units listed here
591 are not started already, they will not be started and the starting of this unit will fail
592 immediately. <varname>Requisite=</varname> does not imply an ordering dependency, even if
593 both units are started in the same transaction. Hence this setting should usually be
594 combined with <varname>After=</varname>, to ensure this unit is not started before the other
595 unit.</para>
596
597 <para>When <varname>Requisite=b.service</varname> is used on
598 <filename>a.service</filename>, this dependency will show as
599 <varname>RequisiteOf=a.service</varname> in property listing of
600 <filename>b.service</filename>. <varname>RequisiteOf=</varname>
601 dependency cannot be specified directly.</para>
602 </listitem>
603 </varlistentry>
604
605 <varlistentry>
606 <term><varname>Wants=</varname></term>
607
608 <listitem><para>A weaker version of
609 <varname>Requires=</varname>. Units listed in this option will
610 be started if the configuring unit is. However, if the listed
611 units fail to start or cannot be added to the transaction,
612 this has no impact on the validity of the transaction as a
613 whole. This is the recommended way to hook start-up of one
614 unit to the start-up of another unit.</para>
615
616 <para>Note that dependencies of this type may also be
617 configured outside of the unit configuration file by adding
618 symlinks to a <filename>.wants/</filename> directory
619 accompanying the unit file. For details, see
620 above.</para></listitem>
621 </varlistentry>
622
623 <varlistentry>
624 <term><varname>BindsTo=</varname></term>
625
626 <listitem><para>Configures requirement dependencies, very similar in style to
627 <varname>Requires=</varname>. However, this dependency type is stronger: in addition to the effect of
628 <varname>Requires=</varname> it declares that if the unit bound to is stopped, this unit will be stopped
629 too. This means a unit bound to another unit that suddenly enters inactive state will be stopped too.
630 Units can suddenly, unexpectedly enter inactive state for different reasons: the main process of a service unit
631 might terminate on its own choice, the backing device of a device unit might be unplugged or the mount point of
632 a mount unit might be unmounted without involvement of the system and service manager.</para>
633
634 <para>When used in conjunction with <varname>After=</varname> on the same unit the behaviour of
635 <varname>BindsTo=</varname> is even stronger. In this case, the unit bound to strictly has to be in active
636 state for this unit to also be in active state. This not only means a unit bound to another unit that suddenly
637 enters inactive state, but also one that is bound to another unit that gets skipped due to a failed condition
638 check (such as <varname>ConditionPathExists=</varname>, <varname>ConditionPathIsSymbolicLink=</varname>, … —
639 see below) will be stopped, should it be running. Hence, in many cases it is best to combine
640 <varname>BindsTo=</varname> with <varname>After=</varname>.</para>
641
642 <para>When <varname>BindsTo=b.service</varname> is used on
643 <filename>a.service</filename>, this dependency will show as
644 <varname>BoundBy=a.service</varname> in property listing of
645 <filename>b.service</filename>. <varname>BoundBy=</varname>
646 dependency cannot be specified directly.</para>
647 </listitem>
648 </varlistentry>
649
650 <varlistentry>
651 <term><varname>PartOf=</varname></term>
652
653 <listitem><para>Configures dependencies similar to
654 <varname>Requires=</varname>, but limited to stopping and
655 restarting of units. When systemd stops or restarts the units
656 listed here, the action is propagated to this unit. Note that
657 this is a one-way dependency — changes to this unit do not
658 affect the listed units.</para>
659
660 <para>When <varname>PartOf=b.service</varname> is used on
661 <filename>a.service</filename>, this dependency will show as
662 <varname>ConsistsOf=a.service</varname> in property listing of
663 <filename>b.service</filename>. <varname>ConsistsOf=</varname>
664 dependency cannot be specified directly.</para>
665 </listitem>
666 </varlistentry>
667
668 <varlistentry>
669 <term><varname>Conflicts=</varname></term>
670
671 <listitem><para>A space-separated list of unit names.
672 Configures negative requirement dependencies. If a unit has a
673 <varname>Conflicts=</varname> setting on another unit,
674 starting the former will stop the latter and vice versa. Note
675 that this setting is independent of and orthogonal to the
676 <varname>After=</varname> and <varname>Before=</varname>
677 ordering dependencies.</para>
678
679 <para>If a unit A that conflicts with a unit B is scheduled to
680 be started at the same time as B, the transaction will either
681 fail (in case both are required parts of the transaction) or be
682 modified to be fixed (in case one or both jobs are not a
683 required part of the transaction). In the latter case, the job
684 that is not required will be removed, or in case both are
685 not required, the unit that conflicts will be started and the
686 unit that is conflicted is stopped.</para></listitem>
687 </varlistentry>
688
689 <varlistentry>
690 <term><varname>Before=</varname></term>
691 <term><varname>After=</varname></term>
692
693 <listitem><para>These two settings expect a space-separated list of unit names. They configure ordering
694 dependencies between units. If a unit <filename>foo.service</filename> contains a setting
695 <option>Before=bar.service</option> and both units are being started, <filename>bar.service</filename>'s
696 start-up is delayed until <filename>foo.service</filename> has finished starting up. Note that this setting is
697 independent of and orthogonal to the requirement dependencies as configured by <varname>Requires=</varname>,
698 <varname>Wants=</varname> or <varname>BindsTo=</varname>. It is a common pattern to include a unit name in both
699 the <varname>After=</varname> and <varname>Requires=</varname> options, in which case the unit listed will be
700 started before the unit that is configured with these options. This option may be specified more than once, in
701 which case ordering dependencies for all listed names are created. <varname>After=</varname> is the inverse of
702 <varname>Before=</varname>, i.e. while <varname>After=</varname> ensures that the configured unit is started
703 after the listed unit finished starting up, <varname>Before=</varname> ensures the opposite, that the
704 configured unit is fully started up before the listed unit is started. Note that when two units with an
705 ordering dependency between them are shut down, the inverse of the start-up order is applied. i.e. if a unit is
706 configured with <varname>After=</varname> on another unit, the former is stopped before the latter if both are
707 shut down. Given two units with any ordering dependency between them, if one unit is shut down and the other is
708 started up, the shutdown is ordered before the start-up. It doesn't matter if the ordering dependency is
709 <varname>After=</varname> or <varname>Before=</varname>, in this case. It also doesn't matter which of the two
710 is shut down, as long as one is shut down and the other is started up. The shutdown is ordered before the
711 start-up in all cases. If two units have no ordering dependencies between them, they are shut down or started
712 up simultaneously, and no ordering takes place. It depends on the unit type when precisely a unit has finished
713 starting up. Most importantly, for service units start-up is considered completed for the purpose of
714 <varname>Before=</varname>/<varname>After=</varname> when all its configured start-up commands have been
715 invoked and they either failed or reported start-up success.</para></listitem>
716 </varlistentry>
717
718 <varlistentry>
719 <term><varname>OnFailure=</varname></term>
720
721 <listitem><para>A space-separated list of one or more units
722 that are activated when this unit enters the
723 <literal>failed</literal> state. A service unit using
724 <varname>Restart=</varname> enters the failed state only after
725 the start limits are reached.</para></listitem>
726 </varlistentry>
727
728 <varlistentry>
729 <term><varname>PropagatesReloadTo=</varname></term>
730 <term><varname>ReloadPropagatedFrom=</varname></term>
731
732 <listitem><para>A space-separated list of one or more units
733 where reload requests on this unit will be propagated to, or
734 reload requests on the other unit will be propagated to this
735 unit, respectively. Issuing a reload request on a unit will
736 automatically also enqueue a reload request on all units that
737 the reload request shall be propagated to via these two
738 settings.</para></listitem>
739 </varlistentry>
740
741 <varlistentry>
742 <term><varname>JoinsNamespaceOf=</varname></term>
743
744 <listitem><para>For units that start processes (such as service units), lists one or more other units
745 whose network and/or temporary file namespace to join. This only applies to unit types which support
746 the <varname>PrivateNetwork=</varname>, <varname>NetworkNamespacePath=</varname> and
747 <varname>PrivateTmp=</varname> directives (see
748 <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry> for
749 details). If a unit that has this setting set is started, its processes will see the same
750 <filename>/tmp</filename>, <filename>/var/tmp</filename> and network namespace as one listed unit
751 that is started. If multiple listed units are already started, it is not defined which namespace is
752 joined. Note that this setting only has an effect if
753 <varname>PrivateNetwork=</varname>/<varname>NetworkNamespacePath=</varname> and/or
754 <varname>PrivateTmp=</varname> is enabled for both the unit that joins the namespace and the unit
755 whose namespace is joined.</para></listitem>
756 </varlistentry>
757
758 <varlistentry>
759 <term><varname>RequiresMountsFor=</varname></term>
760
761 <listitem><para>Takes a space-separated list of absolute
762 paths. Automatically adds dependencies of type
763 <varname>Requires=</varname> and <varname>After=</varname> for
764 all mount units required to access the specified path.</para>
765
766 <para>Mount points marked with <option>noauto</option> are not
767 mounted automatically through <filename>local-fs.target</filename>,
768 but are still honored for the purposes of this option, i.e. they
769 will be pulled in by this unit.</para></listitem>
770 </varlistentry>
771
772 <varlistentry>
773 <term><varname>OnFailureJobMode=</varname></term>
774
775 <listitem><para>Takes a value of
776 <literal>fail</literal>,
777 <literal>replace</literal>,
778 <literal>replace-irreversibly</literal>,
779 <literal>isolate</literal>,
780 <literal>flush</literal>,
781 <literal>ignore-dependencies</literal> or
782 <literal>ignore-requirements</literal>. Defaults to
783 <literal>replace</literal>. Specifies how the units listed in
784 <varname>OnFailure=</varname> will be enqueued. See
785 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>'s
786 <option>--job-mode=</option> option for details on the
787 possible values. If this is set to <literal>isolate</literal>,
788 only a single unit may be listed in
789 <varname>OnFailure=</varname>..</para></listitem>
790 </varlistentry>
791
792 <varlistentry>
793 <term><varname>IgnoreOnIsolate=</varname></term>
794
795 <listitem><para>Takes a boolean argument. If <option>true</option>, this unit
796 will not be stopped when isolating another unit. Defaults to
797 <option>false</option> for service, target, socket, busname, timer, and path
798 units, and <option>true</option> for slice, scope, device, swap, mount, and
799 automount units.</para></listitem>
800 </varlistentry>
801
802 <varlistentry>
803 <term><varname>StopWhenUnneeded=</varname></term>
804
805 <listitem><para>Takes a boolean argument. If
806 <option>true</option>, this unit will be stopped when it is no
807 longer used. Note that, in order to minimize the work to be
808 executed, systemd will not stop units by default unless they
809 are conflicting with other units, or the user explicitly
810 requested their shut down. If this option is set, a unit will
811 be automatically cleaned up if no other active unit requires
812 it. Defaults to <option>false</option>.</para></listitem>
813 </varlistentry>
814
815 <varlistentry>
816 <term><varname>RefuseManualStart=</varname></term>
817 <term><varname>RefuseManualStop=</varname></term>
818
819 <listitem><para>Takes a boolean argument. If
820 <option>true</option>, this unit can only be activated or
821 deactivated indirectly. In this case, explicit start-up or
822 termination requested by the user is denied, however if it is
823 started or stopped as a dependency of another unit, start-up
824 or termination will succeed. This is mostly a safety feature
825 to ensure that the user does not accidentally activate units
826 that are not intended to be activated explicitly, and not
827 accidentally deactivate units that are not intended to be
828 deactivated. These options default to
829 <option>false</option>.</para></listitem>
830 </varlistentry>
831
832 <varlistentry>
833 <term><varname>AllowIsolate=</varname></term>
834
835 <listitem><para>Takes a boolean argument. If
836 <option>true</option>, this unit may be used with the
837 <command>systemctl isolate</command> command. Otherwise, this
838 will be refused. It probably is a good idea to leave this
839 disabled except for target units that shall be used similar to
840 runlevels in SysV init systems, just as a precaution to avoid
841 unusable system states. This option defaults to
842 <option>false</option>.</para></listitem>
843 </varlistentry>
844
845 <varlistentry>
846 <term><varname>DefaultDependencies=</varname></term>
847
848 <listitem><para>Takes a boolean argument. If
849 <option>yes</option>, (the default), a few default
850 dependencies will implicitly be created for the unit. The
851 actual dependencies created depend on the unit type. For
852 example, for service units, these dependencies ensure that the
853 service is started only after basic system initialization is
854 completed and is properly terminated on system shutdown. See
855 the respective man pages for details. Generally, only services
856 involved with early boot or late shutdown should set this
857 option to <option>no</option>. It is highly recommended to
858 leave this option enabled for the majority of common units. If
859 set to <option>no</option>, this option does not disable
860 all implicit dependencies, just non-essential
861 ones.</para></listitem>
862 </varlistentry>
863
864 <varlistentry>
865 <term><varname>CollectMode=</varname></term>
866
867 <listitem><para>Tweaks the "garbage collection" algorithm for this unit. Takes one of <option>inactive</option>
868 or <option>inactive-or-failed</option>. If set to <option>inactive</option> the unit will be unloaded if it is
869 in the <constant>inactive</constant> state and is not referenced by clients, jobs or other units — however it
870 is not unloaded if it is in the <constant>failed</constant> state. In <option>failed</option> mode, failed
871 units are not unloaded until the user invoked <command>systemctl reset-failed</command> on them to reset the
872 <constant>failed</constant> state, or an equivalent command. This behaviour is altered if this option is set to
873 <option>inactive-or-failed</option>: in this case the unit is unloaded even if the unit is in a
874 <constant>failed</constant> state, and thus an explicitly resetting of the <constant>failed</constant> state is
875 not necessary. Note that if this mode is used unit results (such as exit codes, exit signals, consumed
876 resources, …) are flushed out immediately after the unit completed, except for what is stored in the logging
877 subsystem. Defaults to <option>inactive</option>.</para>
878 </listitem>
879 </varlistentry>
880
881 <varlistentry>
882 <term><varname>FailureAction=</varname></term>
883 <term><varname>SuccessAction=</varname></term>
884
885 <listitem><para>Configure the action to take when the unit stops and enters a failed state or inactive state.
886 Takes one of <option>none</option>, <option>reboot</option>, <option>reboot-force</option>,
887 <option>reboot-immediate</option>, <option>poweroff</option>, <option>poweroff-force</option>,
888 <option>poweroff-immediate</option>, <option>exit</option>, and <option>exit-force</option>. In system mode,
889 all options are allowed. In user mode, only <option>none</option>, <option>exit</option>, and
890 <option>exit-force</option> are allowed. Both options default to <option>none</option>.</para>
891
892 <para>If <option>none</option> is set, no action will be triggered. <option>reboot</option> causes a reboot
893 following the normal shutdown procedure (i.e. equivalent to <command>systemctl reboot</command>).
894 <option>reboot-force</option> causes a forced reboot which will terminate all processes forcibly but should
895 cause no dirty file systems on reboot (i.e. equivalent to <command>systemctl reboot -f</command>) and
896 <option>reboot-immediate</option> causes immediate execution of the
897 <citerefentry><refentrytitle>reboot</refentrytitle><manvolnum>2</manvolnum></citerefentry> system call, which
898 might result in data loss (i.e. equivalent to <command>systemctl reboot -ff</command>). Similarly,
899 <option>poweroff</option>, <option>poweroff-force</option>, <option>poweroff-immediate</option> have the effect
900 of powering down the system with similar semantics. <option>exit</option> causes the manager to exit following
901 the normal shutdown procedure, and <option>exit-force</option> causes it terminate without shutting down
902 services. When <option>exit</option> or <option>exit-force</option> is used by default the exit status of the
903 main process of the unit (if this applies) is returned from the service manager. However, this may be overridden
904 with <varname>FailureActionExitStatus=</varname>/<varname>SuccessActionExitStatus=</varname>, see
905 below.</para></listitem>
906 </varlistentry>
907
908 <varlistentry>
909 <term><varname>FailureActionExitStatus=</varname></term>
910 <term><varname>SuccessActionExitStatus=</varname></term>
911
912 <listitem><para>Controls the exit status to propagate back to an invoking container manager (in case of a
913 system service) or service manager (in case of a user manager) when the
914 <varname>FailureAction=</varname>/<varname>SuccessAction=</varname> are set to <option>exit</option> or
915 <option>exit-force</option> and the action is triggered. By default the exit status of the main process of the
916 triggering unit (if this applies) is propagated. Takes a value in the range 0255 or the empty string to
917 request default behaviour.</para></listitem>
918 </varlistentry>
919
920 <varlistentry>
921 <term><varname>JobTimeoutSec=</varname></term>
922 <term><varname>JobRunningTimeoutSec=</varname></term>
923
924 <listitem><para>When a job for this unit is queued, a timeout <varname>JobTimeoutSec=</varname> may be
925 configured. Similarly, <varname>JobRunningTimeoutSec=</varname> starts counting when the queued job is actually
926 started. If either time limit is reached, the job will be cancelled, the unit however will not change state or
927 even enter the <literal>failed</literal> mode. This value defaults to <literal>infinity</literal> (job timeouts
928 disabled), except for device units (<varname>JobRunningTimeoutSec=</varname> defaults to
929 <varname>DefaultTimeoutStartSec=</varname>). NB: this timeout is independent from any unit-specific timeout
930 (for example, the timeout set with <varname>TimeoutStartSec=</varname> in service units) as the job timeout has
931 no effect on the unit itself, only on the job that might be pending for it. Or in other words: unit-specific
932 timeouts are useful to abort unit state changes, and revert them. The job timeout set with this option however
933 is useful to abort only the job waiting for the unit state to change.</para>
934 </listitem>
935 </varlistentry>
936
937 <varlistentry>
938 <term><varname>JobTimeoutAction=</varname></term>
939 <term><varname>JobTimeoutRebootArgument=</varname></term>
940
941 <listitem><para><varname>JobTimeoutAction=</varname> optionally configures an additional action to take when
942 the timeout is hit, see description of <varname>JobTimeoutSec=</varname> and
943 <varname>JobRunningTimeoutSec=</varname> above. It takes the same values as
944 <varname>StartLimitAction=</varname>. Defaults to <option>none</option>.
945 <varname>JobTimeoutRebootArgument=</varname> configures an optional reboot string to pass to the
946 <citerefentry><refentrytitle>reboot</refentrytitle><manvolnum>2</manvolnum></citerefentry> system call.
947 </para></listitem>
948 </varlistentry>
949
950 <varlistentry>
951 <term><varname>StartLimitIntervalSec=<replaceable>interval</replaceable></varname></term>
952 <term><varname>StartLimitBurst=<replaceable>burst</replaceable></varname></term>
953
954 <listitem><para>Configure unit start rate limiting. Units which are started more than
955 <replaceable>burst</replaceable> times within an <replaceable>interval</replaceable> time interval are not
956 permitted to start any more. Use <varname>StartLimitIntervalSec=</varname> to configure the checking interval
957 (defaults to <varname>DefaultStartLimitIntervalSec=</varname> in manager configuration file, set it to 0 to
958 disable any kind of rate limiting). Use <varname>StartLimitBurst=</varname> to configure how many starts per
959 interval are allowed (defaults to <varname>DefaultStartLimitBurst=</varname> in manager configuration
960 file). These configuration options are particularly useful in conjunction with the service setting
961 <varname>Restart=</varname> (see
962 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>); however,
963 they apply to all kinds of starts (including manual), not just those triggered by the
964 <varname>Restart=</varname> logic. Note that units which are configured for <varname>Restart=</varname> and
965 which reach the start limit are not attempted to be restarted anymore; however, they may still be restarted
966 manually at a later point, after the <replaceable>interval</replaceable> has passed. From this point on, the
967 restart logic is activated again. Note that <command>systemctl reset-failed</command> will cause the restart
968 rate counter for a service to be flushed, which is useful if the administrator wants to manually start a unit
969 and the start limit interferes with that. Note that this rate-limiting is enforced after any unit condition
970 checks are executed, and hence unit activations with failing conditions do not count towards this rate
971 limit. This setting does not apply to slice, target, device, and scope units, since they are unit types whose
972 activation may either never fail, or may succeed only a single time.</para>
973
974 <para>When a unit is unloaded due to the garbage collection logic (see above) its rate limit counters are
975 flushed out too. This means that configuring start rate limiting for a unit that is not referenced continuously
976 has no effect.</para></listitem>
977 </varlistentry>
978
979 <varlistentry>
980 <term><varname>StartLimitAction=</varname></term>
981
982 <listitem><para>Configure an additional action to take if the rate limit configured with
983 <varname>StartLimitIntervalSec=</varname> and <varname>StartLimitBurst=</varname> is hit. Takes the same
984 values as the setting <varname>FailureAction=</varname>/<varname>SuccessAction=</varname> settings and executes
985 the same actions. If <option>none</option> is set, hitting the rate limit will trigger no action besides that
986 the start will not be permitted. Defaults to <option>none</option>.</para></listitem>
987 </varlistentry>
988
989
990 <varlistentry>
991 <term><varname>RebootArgument=</varname></term>
992 <listitem><para>Configure the optional argument for the
993 <citerefentry><refentrytitle>reboot</refentrytitle><manvolnum>2</manvolnum></citerefentry> system call if
994 <varname>StartLimitAction=</varname> or <varname>FailureAction=</varname> is a reboot action. This
995 works just like the optional argument to <command>systemctl reboot</command> command.</para></listitem>
996 </varlistentry>
997
998 <varlistentry>
999 <term><varname>ConditionArchitecture=</varname></term>
1000 <term><varname>ConditionVirtualization=</varname></term>
1001 <term><varname>ConditionHost=</varname></term>
1002 <term><varname>ConditionKernelCommandLine=</varname></term>
1003 <term><varname>ConditionKernelVersion=</varname></term>
1004 <term><varname>ConditionSecurity=</varname></term>
1005 <term><varname>ConditionCapability=</varname></term>
1006 <term><varname>ConditionACPower=</varname></term>
1007 <term><varname>ConditionNeedsUpdate=</varname></term>
1008 <term><varname>ConditionFirstBoot=</varname></term>
1009 <term><varname>ConditionPathExists=</varname></term>
1010 <term><varname>ConditionPathExistsGlob=</varname></term>
1011 <term><varname>ConditionPathIsDirectory=</varname></term>
1012 <term><varname>ConditionPathIsSymbolicLink=</varname></term>
1013 <term><varname>ConditionPathIsMountPoint=</varname></term>
1014 <term><varname>ConditionPathIsReadWrite=</varname></term>
1015 <term><varname>ConditionDirectoryNotEmpty=</varname></term>
1016 <term><varname>ConditionFileNotEmpty=</varname></term>
1017 <term><varname>ConditionFileIsExecutable=</varname></term>
1018 <term><varname>ConditionUser=</varname></term>
1019 <term><varname>ConditionGroup=</varname></term>
1020 <term><varname>ConditionControlGroupController=</varname></term>
1021 <term><varname>ConditionMemory=</varname></term>
1022 <term><varname>ConditionCPUs=</varname></term>
1023
1024 <!-- We do not document ConditionNull= here, as it is not particularly useful and probably just
1025 confusing. -->
1026
1027 <listitem><para>Before starting a unit, verify that the specified condition is true. If it is not true, the
1028 starting of the unit will be (mostly silently) skipped, however all ordering dependencies of it are still
1029 respected. A failing condition will not result in the unit being moved into the <literal>failed</literal>
1030 state. The condition is checked at the time the queued start job is to be executed. Use condition expressions
1031 in order to silently skip units that do not apply to the local running system, for example because the kernel
1032 or runtime environment doesn't require their functionality. Use the various
1033 <varname>AssertArchitecture=</varname>, <varname>AssertVirtualization=</varname>, … options for a similar
1034 mechanism that causes the job to fail (instead of being skipped) and results in logging about the failed check
1035 (instead of being silently processed). For details about assertion conditions see below. Units with failed
1036 conditions are considered to be in a clean state and will be garbage collected if they are not referenced.
1037 This means, that when queried, the condition failure may or may not show up in the state of the unit.</para>
1038
1039 <para>If multiple conditions are specified, the unit will be executed if all of them apply (i.e. a
1040 logical AND is applied). Condition checks can be prefixed with a pipe symbol (<literal>|</literal>)
1041 in which case a condition becomes a triggering condition. If at least one triggering condition is
1042 defined for a unit, then the unit will be executed if at least one of the triggering conditions apply
1043 and all of the non-triggering conditions. If you prefix an argument with the pipe symbol and an
1044 exclamation mark, the pipe symbol must be passed first, the exclamation second. Except for
1045 <varname>ConditionPathIsSymbolicLink=</varname>, all path checks follow symlinks. If any of these
1046 options is assigned the empty string, the list of conditions is reset completely, all previous
1047 condition settings (of any kind) will have no effect. The <command>condition</command> verb of
1048 <citerefentry><refentrytitle>systemd-analyze</refentrytitle><manvolnum>1</manvolnum></citerefentry>
1049 can be used to test condition and assert expressions.</para>
1050
1051 <para><varname>ConditionArchitecture=</varname> may be used to
1052 check whether the system is running on a specific
1053 architecture. Takes one of
1054 <literal>x86</literal>,
1055 <literal>x86-64</literal>,
1056 <literal>ppc</literal>,
1057 <literal>ppc-le</literal>,
1058 <literal>ppc64</literal>,
1059 <literal>ppc64-le</literal>,
1060 <literal>ia64</literal>,
1061 <literal>parisc</literal>,
1062 <literal>parisc64</literal>,
1063 <literal>s390</literal>,
1064 <literal>s390x</literal>,
1065 <literal>sparc</literal>,
1066 <literal>sparc64</literal>,
1067 <literal>mips</literal>,
1068 <literal>mips-le</literal>,
1069 <literal>mips64</literal>,
1070 <literal>mips64-le</literal>,
1071 <literal>alpha</literal>,
1072 <literal>arm</literal>,
1073 <literal>arm-be</literal>,
1074 <literal>arm64</literal>,
1075 <literal>arm64-be</literal>,
1076 <literal>sh</literal>,
1077 <literal>sh64</literal>,
1078 <literal>m68k</literal>,
1079 <literal>tilegx</literal>,
1080 <literal>cris</literal>,
1081 <literal>arc</literal>,
1082 <literal>arc-be</literal> to test
1083 against a specific architecture. The architecture is
1084 determined from the information returned by
1085 <citerefentry project='man-pages'><refentrytitle>uname</refentrytitle><manvolnum>2</manvolnum></citerefentry>
1086 and is thus subject to
1087 <citerefentry><refentrytitle>personality</refentrytitle><manvolnum>2</manvolnum></citerefentry>.
1088 Note that a <varname>Personality=</varname> setting in the
1089 same unit file has no effect on this condition. A special
1090 architecture name <literal>native</literal> is mapped to the
1091 architecture the system manager itself is compiled for. The
1092 test may be negated by prepending an exclamation mark.</para>
1093
1094 <para><varname>ConditionVirtualization=</varname> may be used
1095 to check whether the system is executed in a virtualized
1096 environment and optionally test whether it is a specific
1097 implementation. Takes either boolean value to check if being
1098 executed in any virtualized environment, or one of
1099 <literal>vm</literal> and
1100 <literal>container</literal> to test against a generic type of
1101 virtualization solution, or one of
1102 <literal>qemu</literal>,
1103 <literal>kvm</literal>,
1104 <literal>zvm</literal>,
1105 <literal>vmware</literal>,
1106 <literal>microsoft</literal>,
1107 <literal>oracle</literal>,
1108 <literal>xen</literal>,
1109 <literal>bochs</literal>,
1110 <literal>uml</literal>,
1111 <literal>bhyve</literal>,
1112 <literal>qnx</literal>,
1113 <literal>openvz</literal>,
1114 <literal>lxc</literal>,
1115 <literal>lxc-libvirt</literal>,
1116 <literal>systemd-nspawn</literal>,
1117 <literal>docker</literal>,
1118 <literal>podman</literal>,
1119 <literal>rkt</literal>,
1120 <literal>wsl</literal>,
1121 <literal>acrn</literal> to test
1122 against a specific implementation, or
1123 <literal>private-users</literal> to check whether we are running in a user namespace. See
1124 <citerefentry><refentrytitle>systemd-detect-virt</refentrytitle><manvolnum>1</manvolnum></citerefentry>
1125 for a full list of known virtualization technologies and their
1126 identifiers. If multiple virtualization technologies are
1127 nested, only the innermost is considered. The test may be
1128 negated by prepending an exclamation mark.</para>
1129
1130 <para><varname>ConditionHost=</varname> may be used to match
1131 against the hostname or machine ID of the host. This either
1132 takes a hostname string (optionally with shell style globs)
1133 which is tested against the locally set hostname as returned
1134 by
1135 <citerefentry><refentrytitle>gethostname</refentrytitle><manvolnum>2</manvolnum></citerefentry>,
1136 or a machine ID formatted as string (see
1137 <citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
1138 The test may be negated by prepending an exclamation
1139 mark.</para>
1140
1141 <para><varname>ConditionKernelCommandLine=</varname> may be
1142 used to check whether a specific kernel command line option is
1143 set (or if prefixed with the exclamation mark unset). The
1144 argument must either be a single word, or an assignment (i.e.
1145 two words, separated <literal>=</literal>). In the former case
1146 the kernel command line is searched for the word appearing as
1147 is, or as left hand side of an assignment. In the latter case,
1148 the exact assignment is looked for with right and left hand
1149 side matching.</para>
1150
1151 <para><varname>ConditionKernelVersion=</varname> may be used to check whether the kernel version (as
1152 reported by <command>uname -r</command>) matches a certain expression (or if prefixed with the
1153 exclamation mark does not match it). The argument must be a list of (potentially quoted) expressions.
1154 For each of the expressions, if it starts with one of <literal>&lt;</literal>,
1155 <literal>&lt;=</literal>, <literal>=</literal>, <literal>!=</literal>, <literal>&gt;=</literal>,
1156 <literal>&gt;</literal> a relative version comparison is done, otherwise the specified string is
1157 matched with shell-style globs.</para>
1158
1159 <para>Note that using the kernel version string is an unreliable way to determine which features are supported
1160 by a kernel, because of the widespread practice of backporting drivers, features, and fixes from newer upstream
1161 kernels into older versions provided by distributions. Hence, this check is inherently unportable and should
1162 not be used for units which may be used on different distributions.</para>
1163
1164 <para><varname>ConditionSecurity=</varname> may be used to check
1165 whether the given security technology is enabled on the
1166 system. Currently, the recognized values are
1167 <literal>selinux</literal>, <literal>apparmor</literal>,
1168 <literal>tomoyo</literal>, <literal>ima</literal>,
1169 <literal>smack</literal>, <literal>audit</literal> and
1170 <literal>uefi-secureboot</literal>. The test may be negated by
1171 prepending an exclamation mark.</para>
1172
1173 <para><varname>ConditionCapability=</varname> may be used to
1174 check whether the given capability exists in the capability
1175 bounding set of the service manager (i.e. this does not check
1176 whether capability is actually available in the permitted or
1177 effective sets, see
1178 <citerefentry project='man-pages'><refentrytitle>capabilities</refentrytitle><manvolnum>7</manvolnum></citerefentry>
1179 for details). Pass a capability name such as
1180 <literal>CAP_MKNOD</literal>, possibly prefixed with an
1181 exclamation mark to negate the check.</para>
1182
1183 <para><varname>ConditionACPower=</varname> may be used to
1184 check whether the system has AC power, or is exclusively
1185 battery powered at the time of activation of the unit. This
1186 takes a boolean argument. If set to <literal>true</literal>,
1187 the condition will hold only if at least one AC connector of
1188 the system is connected to a power source, or if no AC
1189 connectors are known. Conversely, if set to
1190 <literal>false</literal>, the condition will hold only if
1191 there is at least one AC connector known and all AC connectors
1192 are disconnected from a power source.</para>
1193
1194 <para><varname>ConditionNeedsUpdate=</varname> takes one of
1195 <filename>/var</filename> or <filename>/etc</filename> as
1196 argument, possibly prefixed with a <literal>!</literal> (for
1197 inverting the condition). This condition may be used to
1198 conditionalize units on whether the specified directory
1199 requires an update because <filename>/usr</filename>'s
1200 modification time is newer than the stamp file
1201 <filename>.updated</filename> in the specified directory. This
1202 is useful to implement offline updates of the vendor operating
1203 system resources in <filename>/usr</filename> that require
1204 updating of <filename>/etc</filename> or
1205 <filename>/var</filename> on the next following boot. Units
1206 making use of this condition should order themselves before
1207 <citerefentry><refentrytitle>systemd-update-done.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
1208 to make sure they run before the stamp file's modification
1209 time gets reset indicating a completed update.</para>
1210
1211 <para><varname>ConditionFirstBoot=</varname> takes a boolean argument. This condition may be used to
1212 conditionalize units on whether the system is booting up with an unpopulated <filename>/etc</filename>
1213 directory (specifically: an <filename>/etc</filename> with no <filename>/etc/machine-id</filename>). This may
1214 be used to populate <filename>/etc</filename> on the first boot after factory reset, or when a new system
1215 instance boots up for the first time.</para>
1216
1217 <para>With <varname>ConditionPathExists=</varname> a file
1218 existence condition is checked before a unit is started. If
1219 the specified absolute path name does not exist, the condition
1220 will fail. If the absolute path name passed to
1221 <varname>ConditionPathExists=</varname> is prefixed with an
1222 exclamation mark (<literal>!</literal>), the test is negated,
1223 and the unit is only started if the path does not
1224 exist.</para>
1225
1226 <para><varname>ConditionPathExistsGlob=</varname> is similar
1227 to <varname>ConditionPathExists=</varname>, but checks for the
1228 existence of at least one file or directory matching the
1229 specified globbing pattern.</para>
1230
1231 <para><varname>ConditionPathIsDirectory=</varname> is similar
1232 to <varname>ConditionPathExists=</varname> but verifies
1233 whether a certain path exists and is a directory.</para>
1234
1235 <para><varname>ConditionPathIsSymbolicLink=</varname> is
1236 similar to <varname>ConditionPathExists=</varname> but
1237 verifies whether a certain path exists and is a symbolic
1238 link.</para>
1239
1240 <para><varname>ConditionPathIsMountPoint=</varname> is similar
1241 to <varname>ConditionPathExists=</varname> but verifies
1242 whether a certain path exists and is a mount point.</para>
1243
1244 <para><varname>ConditionPathIsReadWrite=</varname> is similar
1245 to <varname>ConditionPathExists=</varname> but verifies
1246 whether the underlying file system is readable and writable
1247 (i.e. not mounted read-only).</para>
1248
1249 <para><varname>ConditionDirectoryNotEmpty=</varname> is
1250 similar to <varname>ConditionPathExists=</varname> but
1251 verifies whether a certain path exists and is a non-empty
1252 directory.</para>
1253
1254 <para><varname>ConditionFileNotEmpty=</varname> is similar to
1255 <varname>ConditionPathExists=</varname> but verifies whether a
1256 certain path exists and refers to a regular file with a
1257 non-zero size.</para>
1258
1259 <para><varname>ConditionFileIsExecutable=</varname> is similar
1260 to <varname>ConditionPathExists=</varname> but verifies
1261 whether a certain path exists, is a regular file and marked
1262 executable.</para>
1263
1264 <para><varname>ConditionUser=</varname> takes a numeric
1265 <literal>UID</literal>, a UNIX user name, or the special value
1266 <literal>@system</literal>. This condition may be used to check
1267 whether the service manager is running as the given user. The
1268 special value <literal>@system</literal> can be used to check
1269 if the user id is within the system user range. This option is not
1270 useful for system services, as the system manager exclusively
1271 runs as the root user, and thus the test result is constant.</para>
1272
1273 <para><varname>ConditionGroup=</varname> is similar
1274 to <varname>ConditionUser=</varname> but verifies that the
1275 service manager's real or effective group, or any of its
1276 auxiliary groups match the specified group or GID. This setting
1277 does not have a special value <literal>@system</literal>.</para>
1278
1279 <para><varname>ConditionControlGroupController=</varname> takes a
1280 cgroup controller name (eg. <literal>cpu</literal>), verifying that it is
1281 available for use on the system. For example, a particular controller
1282 may not be available if it was disabled on the kernel command line with
1283 <varname>cgroup_disable=controller</varname>. Multiple controllers may
1284 be passed with a space separating them; in this case the condition will
1285 only pass if all listed controllers are available for use. Controllers
1286 unknown to systemd are ignored. Valid controllers are
1287 <literal>cpu</literal>, <literal>cpuacct</literal>, <literal>io</literal>,
1288 <literal>blkio</literal>, <literal>memory</literal>,
1289 <literal>devices</literal>, and <literal>pids</literal>.</para>
1290
1291 <para><varname>ConditionMemory=</varname> verifies if the specified amount of system memory is
1292 available to the current system. Takes a memory size in bytes as argument, optionally prefixed with a
1293 comparison operator <literal>&lt;</literal>, <literal>&lt;=</literal>, <literal>=</literal>,
1294 <literal>!=</literal>, <literal>&gt;=</literal>, <literal>&gt;</literal>. On bare-metal systems
1295 compares the amount of physical memory in the system with the specified size, adhering to the
1296 specified comparison operator. In containers compares the amount of memory assigned to the container
1297 instead.</para>
1298
1299 <para><varname>ConditionCPUs=</varname> verifies if the specified number of CPUs is available to the
1300 current system. Takes a number of CPUs as argument, optionally prefixed with a comparison operator
1301 <literal>&lt;</literal>, <literal>&lt;=</literal>, <literal>=</literal>, <literal>!=</literal>,
1302 <literal>&gt;=</literal>, <literal>&gt;</literal>. Compares the number of CPUs in the CPU affinity mask
1303 configured of the service manager itself with the specified number, adhering to the specified
1304 comparison operator. On physical systems the number of CPUs in the affinity mask of the service
1305 manager usually matches the number of physical CPUs, but in special and virtual environments might
1306 differ. In particular, in containers the affinity mask usually matches the number of CPUs assigned to
1307 the container and not the physically available ones.</para></listitem>
1308 </varlistentry>
1309
1310 <varlistentry>
1311 <term><varname>AssertArchitecture=</varname></term>
1312 <term><varname>AssertVirtualization=</varname></term>
1313 <term><varname>AssertHost=</varname></term>
1314 <term><varname>AssertKernelCommandLine=</varname></term>
1315 <term><varname>AssertKernelVersion=</varname></term>
1316 <term><varname>AssertSecurity=</varname></term>
1317 <term><varname>AssertCapability=</varname></term>
1318 <term><varname>AssertACPower=</varname></term>
1319 <term><varname>AssertNeedsUpdate=</varname></term>
1320 <term><varname>AssertFirstBoot=</varname></term>
1321 <term><varname>AssertPathExists=</varname></term>
1322 <term><varname>AssertPathExistsGlob=</varname></term>
1323 <term><varname>AssertPathIsDirectory=</varname></term>
1324 <term><varname>AssertPathIsSymbolicLink=</varname></term>
1325 <term><varname>AssertPathIsMountPoint=</varname></term>
1326 <term><varname>AssertPathIsReadWrite=</varname></term>
1327 <term><varname>AssertDirectoryNotEmpty=</varname></term>
1328 <term><varname>AssertFileNotEmpty=</varname></term>
1329 <term><varname>AssertFileIsExecutable=</varname></term>
1330 <term><varname>AssertUser=</varname></term>
1331 <term><varname>AssertGroup=</varname></term>
1332 <term><varname>AssertControlGroupController=</varname></term>
1333
1334 <listitem><para>Similar to the <varname>ConditionArchitecture=</varname>,
1335 <varname>ConditionVirtualization=</varname>, …, condition settings described above, these settings add
1336 assertion checks to the start-up of the unit. However, unlike the conditions settings, any assertion setting
1337 that is not met results in failure of the start job (which means this is logged loudly). Note that hitting a
1338 configured assertion does not cause the unit to enter the <literal>failed</literal> state (or in fact result in
1339 any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that
1340 cannot operate when specific requirements are not met, and when this is something the administrator or user
1341 should look into.</para>
1342
1343 <para>Note that neither assertion nor condition expressions result in unit state changes. Also note that both
1344 are checked at the time the job is to be executed, i.e. long after depending jobs and it itself were
1345 queued. Thus, neither condition nor assertion expressions are suitable for conditionalizing unit
1346 dependencies.</para>
1347
1348 <para>The <command>condition</command> verb of
1349 <citerefentry><refentrytitle>systemd-analyze</refentrytitle><manvolnum>1</manvolnum></citerefentry>
1350 can be used to test condition and assert expressions.</para></listitem>
1351 </varlistentry>
1352
1353 <varlistentry>
1354 <term><varname>SourcePath=</varname></term>
1355 <listitem><para>A path to a configuration file this unit has
1356 been generated from. This is primarily useful for
1357 implementation of generator tools that convert configuration
1358 from an external configuration file format into native unit
1359 files. This functionality should not be used in normal
1360 units.</para></listitem>
1361 </varlistentry>
1362 </variablelist>
1363 </refsect1>
1364
1365 <refsect1>
1366 <title>Mapping of unit properties to their inverses</title>
1367
1368 <para>Unit settings that create a relationship with a second unit usually show up
1369 in properties of both units, for example in <command>systemctl show</command>
1370 output. In some cases the name of the property is the same as the name of the
1371 configuration setting, but not always. This table lists the properties
1372 that are shown on two units which are connected through some dependency, and shows
1373 which property on "source" unit corresponds to which property on the "target" unit.
1374 </para>
1375
1376 <table>
1377 <title>
1378 "Forward" and "reverse" unit properties
1379 </title>
1380
1381 <tgroup cols='4'>
1382 <colspec colname='forward' />
1383 <colspec colname='reverse' />
1384 <colspec colname='fuse' />
1385 <colspec colname='ruse' />
1386 <thead>
1387 <row>
1388 <entry>"Forward" property</entry>
1389 <entry>"Reverse" property</entry>
1390 <entry namest='fuse' nameend='ruse' valign='middle'>Where used</entry>
1391 </row>
1392 </thead>
1393 <tbody>
1394 <row>
1395 <entry><varname>Before=</varname></entry>
1396 <entry><varname>After=</varname></entry>
1397 <entry morerows='1' namest='fuse' nameend='ruse' valign='middle'>[Unit] section</entry>
1398 </row>
1399 <row>
1400 <entry><varname>After=</varname></entry>
1401 <entry><varname>Before=</varname></entry>
1402 </row>
1403 <row>
1404 <entry><varname>Requires=</varname></entry>
1405 <entry><varname>RequiredBy=</varname></entry>
1406 <entry>[Unit] section</entry>
1407 <entry>[Install] section</entry>
1408 </row>
1409 <row>
1410 <entry><varname>Wants=</varname></entry>
1411 <entry><varname>WantedBy=</varname></entry>
1412 <entry>[Unit] section</entry>
1413 <entry>[Install] section</entry>
1414 </row>
1415 <row>
1416 <entry><varname>PartOf=</varname></entry>
1417 <entry><varname>ConsistsOf=</varname></entry>
1418 <entry>[Unit] section</entry>
1419 <entry>an automatic property</entry>
1420 </row>
1421 <row>
1422 <entry><varname>BindsTo=</varname></entry>
1423 <entry><varname>BoundBy=</varname></entry>
1424 <entry>[Unit] section</entry>
1425 <entry>an automatic property</entry>
1426 </row>
1427 <row>
1428 <entry><varname>Requisite=</varname></entry>
1429 <entry><varname>RequisiteOf=</varname></entry>
1430 <entry>[Unit] section</entry>
1431 <entry>an automatic property</entry>
1432 </row>
1433 <row>
1434 <entry><varname>Triggers=</varname></entry>
1435 <entry><varname>TriggeredBy=</varname></entry>
1436 <entry namest='fuse' nameend='ruse' valign='middle'>Automatic properties, see notes below</entry>
1437 </row>
1438 <row>
1439 <entry><varname>Conflicts=</varname></entry>
1440 <entry><varname>ConflictedBy=</varname></entry>
1441 <entry>[Unit] section</entry>
1442 <entry>an automatic property</entry>
1443 </row>
1444 <row>
1445 <entry><varname>PropagatesReloadTo=</varname></entry>
1446 <entry><varname>ReloadPropagatedFrom=</varname></entry>
1447 <entry morerows='1' namest='fuse' nameend='ruse' valign='middle'>[Unit] section</entry>
1448 </row>
1449 <row>
1450 <entry><varname>ReloadPropagatedFrom=</varname></entry>
1451 <entry><varname>PropagatesReloadTo=</varname></entry>
1452 </row>
1453 <row>
1454 <entry><varname>Following=</varname></entry>
1455 <entry>n/a</entry>
1456 <entry>An automatic property</entry>
1457 </row>
1458 </tbody>
1459 </tgroup>
1460 </table>
1461
1462 <para>Note: <varname>WantedBy=</varname> and <varname>RequiredBy=</varname> are
1463 used in the [Install] section to create symlinks in <filename>.wants/</filename>
1464 and <filename>.requires/</filename> directories. They cannot be used directly as a
1465 unit configuration setting.</para>
1466
1467 <para>Note: <varname>ConsistsOf=</varname>, <varname>BoundBy=</varname>,
1468 <varname>RequisiteOf=</varname>, <varname>ConflictedBy=</varname> are created
1469 implicitly along with their reverse and cannot be specified directly.</para>
1470
1471 <para>Note: <varname>Triggers=</varname> is created implicitly between a socket,
1472 path unit, or an automount unit, and the unit they activate. By default a unit
1473 with the same name is triggered, but this can be overridden using
1474 <varname>Sockets=</varname>, <varname>Service=</varname>, and <varname>Unit=</varname>
1475 settings. See
1476 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1477 <citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1478 <citerefentry><refentrytitle>systemd.path</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1479 and
1480 <citerefentry><refentrytitle>systemd.automount</refentrytitle><manvolnum>5</manvolnum></citerefentry>
1481 for details. <varname>TriggersBy=</varname> is created implicitly on the
1482 triggered unit.</para>
1483
1484 <para>Note: <varname>Following=</varname> is used to group device aliases and points to the
1485 "primary" device unit that systemd is using to track device state, usually corresponding to a
1486 sysfs path. It does not show up in the "target" unit.</para>
1487 </refsect1>
1488
1489 <refsect1>
1490 <title>[Install] Section Options</title>
1491
1492 <para>Unit files may include an <literal>[Install]</literal> section, which carries installation information for
1493 the unit. This section is not interpreted by
1494 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry> during runtime; it is
1495 used by the <command>enable</command> and <command>disable</command> commands of the
1496 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry> tool during
1497 installation of a unit.</para>
1498
1499 <variablelist class='unit-directives'>
1500 <varlistentry>
1501 <term><varname>Alias=</varname></term>
1502
1503 <listitem><para>A space-separated list of additional names this unit shall be installed under. The names listed
1504 here must have the same suffix (i.e. type) as the unit filename. This option may be specified more than once,
1505 in which case all listed names are used. At installation time, <command>systemctl enable</command> will create
1506 symlinks from these names to the unit filename. Note that not all unit types support such alias names, and this
1507 setting is not supported for them. Specifically, mount, slice, swap, and automount units do not support
1508 aliasing.</para></listitem>
1509 </varlistentry>
1510
1511 <varlistentry>
1512 <term><varname>WantedBy=</varname></term>
1513 <term><varname>RequiredBy=</varname></term>
1514
1515 <listitem><para>This option may be used more than once, or a
1516 space-separated list of unit names may be given. A symbolic
1517 link is created in the <filename>.wants/</filename> or
1518 <filename>.requires/</filename> directory of each of the
1519 listed units when this unit is installed by <command>systemctl
1520 enable</command>. This has the effect that a dependency of
1521 type <varname>Wants=</varname> or <varname>Requires=</varname>
1522 is added from the listed unit to the current unit. The primary
1523 result is that the current unit will be started when the
1524 listed unit is started. See the description of
1525 <varname>Wants=</varname> and <varname>Requires=</varname> in
1526 the [Unit] section for details.</para>
1527
1528 <para><command>WantedBy=foo.service</command> in a service
1529 <filename>bar.service</filename> is mostly equivalent to
1530 <command>Alias=foo.service.wants/bar.service</command> in the
1531 same file. In case of template units, <command>systemctl
1532 enable</command> must be called with an instance name, and
1533 this instance will be added to the
1534 <filename>.wants/</filename> or
1535 <filename>.requires/</filename> list of the listed unit. E.g.
1536 <command>WantedBy=getty.target</command> in a service
1537 <filename>getty@.service</filename> will result in
1538 <command>systemctl enable getty@tty2.service</command>
1539 creating a
1540 <filename>getty.target.wants/getty@tty2.service</filename>
1541 link to <filename>getty@.service</filename>.
1542 </para></listitem>
1543 </varlistentry>
1544
1545 <varlistentry>
1546 <term><varname>Also=</varname></term>
1547
1548 <listitem><para>Additional units to install/deinstall when
1549 this unit is installed/deinstalled. If the user requests
1550 installation/deinstallation of a unit with this option
1551 configured, <command>systemctl enable</command> and
1552 <command>systemctl disable</command> will automatically
1553 install/uninstall units listed in this option as well.</para>
1554
1555 <para>This option may be used more than once, or a
1556 space-separated list of unit names may be
1557 given.</para></listitem>
1558 </varlistentry>
1559
1560 <varlistentry>
1561 <term><varname>DefaultInstance=</varname></term>
1562
1563 <listitem><para>In template unit files, this specifies for
1564 which instance the unit shall be enabled if the template is
1565 enabled without any explicitly set instance. This option has
1566 no effect in non-template unit files. The specified string
1567 must be usable as instance identifier.</para></listitem>
1568 </varlistentry>
1569 </variablelist>
1570
1571 <para>The following specifiers are interpreted in the Install
1572 section: %n, %N, %p, %i, %j, %g, %G, %U, %u, %m, %H, %b, %v. For their
1573 meaning see the next section.
1574 </para>
1575 </refsect1>
1576
1577 <refsect1>
1578 <title>Specifiers</title>
1579
1580 <para>Many settings resolve specifiers which may be used to write
1581 generic unit files referring to runtime or unit parameters that
1582 are replaced when the unit files are loaded. Specifiers must be known
1583 and resolvable for the setting to be valid. The following
1584 specifiers are understood:</para>
1585
1586 <table>
1587 <title>Specifiers available in unit files</title>
1588 <tgroup cols='3' align='left' colsep='1' rowsep='1'>
1589 <colspec colname="spec" />
1590 <colspec colname="mean" />
1591 <colspec colname="detail" />
1592 <thead>
1593 <row>
1594 <entry>Specifier</entry>
1595 <entry>Meaning</entry>
1596 <entry>Details</entry>
1597 </row>
1598 </thead>
1599 <tbody>
1600 <row>
1601 <entry><literal>%b</literal></entry>
1602 <entry>Boot ID</entry>
1603 <entry>The boot ID of the running system, formatted as string. See <citerefentry><refentrytitle>random</refentrytitle><manvolnum>4</manvolnum></citerefentry> for more information.</entry>
1604 </row>
1605 <row>
1606 <entry><literal>%C</literal></entry>
1607 <entry>Cache directory root</entry>
1608 <entry>This is either <filename>/var/cache</filename> (for the system manager) or the path <literal>$XDG_CACHE_HOME</literal> resolves to (for user managers).</entry>
1609 </row>
1610 <row>
1611 <entry><literal>%E</literal></entry>
1612 <entry>Configuration directory root</entry>
1613 <entry>This is either <filename>/etc</filename> (for the system manager) or the path <literal>$XDG_CONFIG_HOME</literal> resolves to (for user managers).</entry>
1614 </row>
1615 <row>
1616 <entry><literal>%f</literal></entry>
1617 <entry>Unescaped filename</entry>
1618 <entry>This is either the unescaped instance name (if applicable) with <filename>/</filename> prepended (if applicable), or the unescaped prefix name prepended with <filename>/</filename>. This implements unescaping according to the rules for escaping absolute file system paths discussed above.</entry>
1619 </row>
1620 <row>
1621 <entry><literal>%h</literal></entry>
1622 <entry>User home directory</entry>
1623 <entry>This is the home directory of the <emphasis>user running the service manager instance</emphasis>. In case of the system manager this resolves to <literal>/root</literal>.
1624
1625 Note that this setting is <emphasis>not</emphasis> influenced by the <varname>User=</varname> setting configurable in the [Service] section of the service unit.</entry>
1626 </row>
1627 <row>
1628 <entry><literal>%H</literal></entry>
1629 <entry>Host name</entry>
1630 <entry>The hostname of the running system at the point in time the unit configuration is loaded.</entry>
1631 </row>
1632 <row>
1633 <entry><literal>%i</literal></entry>
1634 <entry>Instance name</entry>
1635 <entry>For instantiated units this is the string between the first <literal>@</literal> character and the type suffix. Empty for non-instantiated units.</entry>
1636 </row>
1637 <row>
1638 <entry><literal>%I</literal></entry>
1639 <entry>Unescaped instance name</entry>
1640 <entry>Same as <literal>%i</literal>, but with escaping undone.</entry>
1641 </row>
1642 <row>
1643 <entry><literal>%j</literal></entry>
1644 <entry>Final component of the prefix</entry>
1645 <entry>This is the string between the last <literal>-</literal> and the end of the prefix name. If there is no <literal>-</literal>, this is the same as <literal>%p</literal>.</entry>
1646 </row>
1647 <row>
1648 <entry><literal>%J</literal></entry>
1649 <entry>Unescaped final component of the prefix</entry>
1650 <entry>Same as <literal>%j</literal>, but with escaping undone.</entry>
1651 </row>
1652 <row>
1653 <entry><literal>%L</literal></entry>
1654 <entry>Log directory root</entry>
1655 <entry>This is either <filename>/var/log</filename> (for the system manager) or the path <literal>$XDG_CONFIG_HOME</literal> resolves to with <filename noindex='true'>/log</filename> appended (for user managers).</entry>
1656 </row>
1657 <row>
1658 <entry><literal>%m</literal></entry>
1659 <entry>Machine ID</entry>
1660 <entry>The machine ID of the running system, formatted as string. See <citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry> for more information.</entry>
1661 </row>
1662 <row>
1663 <entry><literal>%n</literal></entry>
1664 <entry>Full unit name</entry>
1665 <entry></entry>
1666 </row>
1667 <row>
1668 <entry><literal>%N</literal></entry>
1669 <entry>Full unit name</entry>
1670 <entry>Same as <literal>%n</literal>, but with the type suffix removed.</entry>
1671 </row>
1672 <row>
1673 <entry><literal>%p</literal></entry>
1674 <entry>Prefix name</entry>
1675 <entry>For instantiated units, this refers to the string before the first <literal>@</literal> character of the unit name. For non-instantiated units, same as <literal>%N</literal>.</entry>
1676 </row>
1677 <row>
1678 <entry><literal>%P</literal></entry>
1679 <entry>Unescaped prefix name</entry>
1680 <entry>Same as <literal>%p</literal>, but with escaping undone.</entry>
1681 </row>
1682 <row>
1683 <entry><literal>%s</literal></entry>
1684 <entry>User shell</entry>
1685 <entry>This is the shell of the user running the service manager instance. In case of the system manager this resolves to <literal>/bin/sh</literal>.</entry>
1686 </row>
1687 <row>
1688 <entry><literal>%S</literal></entry>
1689 <entry>State directory root</entry>
1690 <entry>This is either <filename>/var/lib</filename> (for the system manager) or the path <literal>$XDG_CONFIG_HOME</literal> resolves to (for user managers).</entry>
1691 </row>
1692 <row>
1693 <entry><literal>%t</literal></entry>
1694 <entry>Runtime directory root</entry>
1695 <entry>This is either <filename>/run</filename> (for the system manager) or the path <literal>$XDG_RUNTIME_DIR</literal> resolves to (for user managers).</entry>
1696 </row>
1697 <row>
1698 <entry><literal>%T</literal></entry>
1699 <entry>Directory for temporary files</entry>
1700 <entry>This is either <filename>/tmp</filename> or the path <literal>$TMPDIR</literal>, <literal>$TEMP</literal> or <literal>$TMP</literal> are set to.</entry>
1701 </row>
1702 <row>
1703 <entry><literal>%g</literal></entry>
1704 <entry>User group</entry>
1705 <entry>This is the name of the group running the service manager instance. In case of the system manager this resolves to <literal>root</literal>.</entry>
1706 </row>
1707 <row>
1708 <entry><literal>%G</literal></entry>
1709 <entry>User GID</entry>
1710 <entry>This is the numeric GID of the user running the service manager instance. In case of the system manager this resolves to <literal>0</literal>.</entry>
1711 </row>
1712 <row>
1713 <entry><literal>%u</literal></entry>
1714 <entry>User name</entry>
1715 <entry>This is the name of the <emphasis>user running the service manager instance</emphasis>. In case of the system manager this resolves to <literal>root</literal>.
1716
1717 Note that this setting is <emphasis>not</emphasis> influenced by the <varname>User=</varname> setting configurable in the [Service] section of the service unit.</entry>
1718 </row>
1719 <row>
1720 <entry><literal>%U</literal></entry>
1721 <entry>User UID</entry>
1722 <entry>This is the numeric UID of the <emphasis>user running the service manager instance</emphasis>. In case of the system manager this resolves to <literal>0</literal>.
1723
1724 Note that this setting is <emphasis>not</emphasis> influenced by the <varname>User=</varname> setting configurable in the [Service] section of the service unit.</entry>
1725 </row>
1726 <row>
1727 <entry><literal>%v</literal></entry>
1728 <entry>Kernel release</entry>
1729 <entry>Identical to <command>uname -r</command> output</entry>
1730 </row>
1731 <row>
1732 <entry><literal>%V</literal></entry>
1733 <entry>Directory for larger and persistent temporary files</entry>
1734 <entry>This is either <filename>/var/tmp</filename> or the path <literal>$TMPDIR</literal>, <literal>$TEMP</literal> or <literal>$TMP</literal> are set to.</entry>
1735 </row>
1736 <row>
1737 <entry><literal>%%</literal></entry>
1738 <entry>Single percent sign</entry>
1739 <entry>Use <literal>%%</literal> in place of <literal>%</literal> to specify a single percent sign.</entry>
1740 </row>
1741 </tbody>
1742 </tgroup>
1743 </table>
1744 </refsect1>
1745
1746 <refsect1>
1747 <title>Examples</title>
1748
1749 <example>
1750 <title>Allowing units to be enabled</title>
1751
1752 <para>The following snippet (highlighted) allows a unit (e.g.
1753 <filename>foo.service</filename>) to be enabled via
1754 <command>systemctl enable</command>:</para>
1755
1756 <programlisting>[Unit]
1757 Description=Foo
1758
1759 [Service]
1760 ExecStart=/usr/sbin/foo-daemon
1761
1762 <emphasis>[Install]</emphasis>
1763 <emphasis>WantedBy=multi-user.target</emphasis></programlisting>
1764
1765 <para>After running <command>systemctl enable</command>, a
1766 symlink
1767 <filename>/etc/systemd/system/multi-user.target.wants/foo.service</filename>
1768 linking to the actual unit will be created. It tells systemd to
1769 pull in the unit when starting
1770 <filename>multi-user.target</filename>. The inverse
1771 <command>systemctl disable</command> will remove that symlink
1772 again.</para>
1773 </example>
1774
1775 <example>
1776 <title>Overriding vendor settings</title>
1777
1778 <para>There are two methods of overriding vendor settings in
1779 unit files: copying the unit file from
1780 <filename>/usr/lib/systemd/system</filename> to
1781 <filename>/etc/systemd/system</filename> and modifying the
1782 chosen settings. Alternatively, one can create a directory named
1783 <filename><replaceable>unit</replaceable>.d/</filename> within
1784 <filename>/etc/systemd/system</filename> and place a drop-in
1785 file <filename><replaceable>name</replaceable>.conf</filename>
1786 there that only changes the specific settings one is interested
1787 in. Note that multiple such drop-in files are read if
1788 present, processed in lexicographic order of their filename.</para>
1789
1790 <para>The advantage of the first method is that one easily
1791 overrides the complete unit, the vendor unit is not parsed at
1792 all anymore. It has the disadvantage that improvements to the
1793 unit file by the vendor are not automatically incorporated on
1794 updates.</para>
1795
1796 <para>The advantage of the second method is that one only
1797 overrides the settings one specifically wants, where updates to
1798 the unit by the vendor automatically apply. This has the
1799 disadvantage that some future updates by the vendor might be
1800 incompatible with the local changes.</para>
1801
1802 <para>This also applies for user instances of systemd, but with
1803 different locations for the unit files. See the section on unit
1804 load paths for further details.</para>
1805
1806 <para>Suppose there is a vendor-supplied unit
1807 <filename>/usr/lib/systemd/system/httpd.service</filename> with
1808 the following contents:</para>
1809
1810 <programlisting>[Unit]
1811 Description=Some HTTP server
1812 After=remote-fs.target sqldb.service
1813 Requires=sqldb.service
1814 AssertPathExists=/srv/webserver
1815
1816 [Service]
1817 Type=notify
1818 ExecStart=/usr/sbin/some-fancy-httpd-server
1819 Nice=5
1820
1821 [Install]
1822 WantedBy=multi-user.target</programlisting>
1823
1824 <para>Now one wants to change some settings as an administrator:
1825 firstly, in the local setup, <filename>/srv/webserver</filename>
1826 might not exist, because the HTTP server is configured to use
1827 <filename>/srv/www</filename> instead. Secondly, the local
1828 configuration makes the HTTP server also depend on a memory
1829 cache service, <filename>memcached.service</filename>, that
1830 should be pulled in (<varname>Requires=</varname>) and also be
1831 ordered appropriately (<varname>After=</varname>). Thirdly, in
1832 order to harden the service a bit more, the administrator would
1833 like to set the <varname>PrivateTmp=</varname> setting (see
1834 <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>
1835 for details). And lastly, the administrator would like to reset
1836 the niceness of the service to its default value of 0.</para>
1837
1838 <para>The first possibility is to copy the unit file to
1839 <filename>/etc/systemd/system/httpd.service</filename> and
1840 change the chosen settings:</para>
1841
1842 <programlisting>[Unit]
1843 Description=Some HTTP server
1844 After=remote-fs.target sqldb.service <emphasis>memcached.service</emphasis>
1845 Requires=sqldb.service <emphasis>memcached.service</emphasis>
1846 AssertPathExists=<emphasis>/srv/www</emphasis>
1847
1848 [Service]
1849 Type=notify
1850 ExecStart=/usr/sbin/some-fancy-httpd-server
1851 <emphasis>Nice=0</emphasis>
1852 <emphasis>PrivateTmp=yes</emphasis>
1853
1854 [Install]
1855 WantedBy=multi-user.target</programlisting>
1856
1857 <para>Alternatively, the administrator could create a drop-in
1858 file
1859 <filename>/etc/systemd/system/httpd.service.d/local.conf</filename>
1860 with the following contents:</para>
1861
1862 <programlisting>[Unit]
1863 After=memcached.service
1864 Requires=memcached.service
1865 # Reset all assertions and then re-add the condition we want
1866 AssertPathExists=
1867 AssertPathExists=/srv/www
1868
1869 [Service]
1870 Nice=0
1871 PrivateTmp=yes</programlisting>
1872
1873 <para>Note that for drop-in files, if one wants to remove
1874 entries from a setting that is parsed as a list (and is not a
1875 dependency), such as <varname>AssertPathExists=</varname> (or
1876 e.g. <varname>ExecStart=</varname> in service units), one needs
1877 to first clear the list before re-adding all entries except the
1878 one that is to be removed. Dependencies (<varname>After=</varname>, etc.)
1879 cannot be reset to an empty list, so dependencies can only be
1880 added in drop-ins. If you want to remove dependencies, you have
1881 to override the entire unit.</para>
1882
1883 </example>
1884 </refsect1>
1885
1886 <refsect1>
1887 <title>See Also</title>
1888 <para>
1889 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1890 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1891 <citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1892 <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
1893 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1894 <citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1895 <citerefentry><refentrytitle>systemd.device</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1896 <citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1897 <citerefentry><refentrytitle>systemd.automount</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1898 <citerefentry><refentrytitle>systemd.swap</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1899 <citerefentry><refentrytitle>systemd.target</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1900 <citerefentry><refentrytitle>systemd.path</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1901 <citerefentry><refentrytitle>systemd.timer</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1902 <citerefentry><refentrytitle>systemd.scope</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1903 <citerefentry><refentrytitle>systemd.slice</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1904 <citerefentry><refentrytitle>systemd.time</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
1905 <citerefentry><refentrytitle>systemd-analyze</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1906 <citerefentry project='man-pages'><refentrytitle>capabilities</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
1907 <citerefentry><refentrytitle>systemd.directives</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
1908 <citerefentry project='man-pages'><refentrytitle>uname</refentrytitle><manvolnum>1</manvolnum></citerefentry>
1909 </para>
1910 </refsect1>
1911
1912 </refentry>