]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemctl.xml
update TODO
[thirdparty/systemd.git] / man / systemctl.xml
CommitLineData
514094f9 1<?xml version='1.0'?>
3a54a157
ZJS
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
681eb9cf
FB
4<!ENTITY % entities SYSTEM "custom-entities.ent" >
5%entities;
6]>
db9ecf05 7<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
7874bcd6 8
21ac6ff1
ZJS
9<refentry id="systemctl"
10 xmlns:xi="http://www.w3.org/2001/XInclude">
7874bcd6 11
4a6022f0
ZJS
12 <refentryinfo>
13 <title>systemctl</title>
14 <productname>systemd</productname>
4a6022f0
ZJS
15 </refentryinfo>
16
17 <refmeta>
18 <refentrytitle>systemctl</refentrytitle>
19 <manvolnum>1</manvolnum>
20 </refmeta>
21
22 <refnamediv>
23 <refname>systemctl</refname>
24 <refpurpose>Control the systemd system and service manager</refpurpose>
25 </refnamediv>
26
27 <refsynopsisdiv>
28 <cmdsynopsis>
29 <command>systemctl</command>
30 <arg choice="opt" rep="repeat">OPTIONS</arg>
31 <arg choice="plain">COMMAND</arg>
da5e955f 32 <arg choice="opt" rep="repeat">UNIT</arg>
4a6022f0
ZJS
33 </cmdsynopsis>
34 </refsynopsisdiv>
35
36 <refsect1>
37 <title>Description</title>
38
a4390b6b
LP
39 <para><command>systemctl</command> may be used to introspect and
40 control the state of the <literal>systemd</literal> system and
41 service manager. Please refer to
4a6022f0 42 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>
a4390b6b
LP
43 for an introduction into the basic concepts and functionality this
44 tool manages.</para>
4a6022f0
ZJS
45 </refsect1>
46
47 <refsect1>
e1fac8a6 48 <title>Commands</title>
4a6022f0 49
e1fac8a6 50 <para>The following commands are understood:</para>
4a6022f0 51
e1fac8a6 52 <refsect2>
172338d5 53 <title>Unit Commands (Introspection and Modification)</title>
20b3f379 54
e1fac8a6
ZJS
55 <variablelist>
56 <varlistentry>
57 <term><command>list-units</command> <optional><replaceable>PATTERN</replaceable>…</optional></term>
4a6022f0 58
e1fac8a6
ZJS
59 <listitem>
60 <para>List units that <command>systemd</command> currently has in memory. This includes units that are
61 either referenced directly or through a dependency, units that are pinned by applications programmatically,
62 or units that were active in the past and have failed. By default only units which are active, have pending
63 jobs, or have failed are shown; this can be changed with option <option>--all</option>. If one or more
64 <replaceable>PATTERN</replaceable>s are specified, only units matching one of them are shown. The units
65 that are shown are additionally filtered by <option>--type=</option> and <option>--state=</option> if those
66 options are specified.</para>
4a6022f0 67
7ea5e82f
LP
68 <para>Note that this command does not show unit templates, but only instances of unit
69 templates. Units templates that aren't instantiated are not runnable, and will thus never show up
70 in the output of this command. Specifically this means that <filename>foo@.service</filename>
71 will never be shown in this list — unless instantiated, e.g. as
72 <filename>foo@bar.service</filename>. Use <command>list-unit-files</command> (see below) for
73 listing installed unit template files.</para>
74
e1fac8a6
ZJS
75 <para>Produces output similar to
76 <programlisting> UNIT LOAD ACTIVE SUB DESCRIPTION
77 sys-module-fuse.device loaded active plugged /sys/module/fuse
78 -.mount loaded active mounted Root Mount
79 boot-efi.mount loaded active mounted /boot/efi
80 systemd-journald.service loaded active running Journal Service
81 systemd-logind.service loaded active running Login Service
82● user@1000.service loaded failed failed User Manager for UID 1000
83
84 systemd-tmpfiles-clean.timer loaded active waiting Daily Cleanup of Temporary Directories
9b9b3d36 85
e1fac8a6
ZJS
86LOAD = Reflects whether the unit definition was properly loaded.
87ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
88SUB = The low-level unit activation state, values depend on unit type.
e16972e6 89
e1fac8a6 90123 loaded units listed. Pass --all to see loaded but inactive units, too.
7ea5e82f
LP
91To show all installed unit files use 'systemctl list-unit-files'.</programlisting></para>
92
93 <para>The header and the last unit of a given type are underlined if the terminal supports
94 that. A colored dot is shown next to services which were masked, not found, or otherwise
95 failed.</para>
9b9b3d36 96
e1fac8a6
ZJS
97 <para>The LOAD column shows the load state, one of <constant>loaded</constant>,
98 <constant>not-found</constant>, <constant>bad-setting</constant>, <constant>error</constant>,
99 <constant>masked</constant>. The ACTIVE columns shows the general unit state, one of
100 <constant>active</constant>, <constant>reloading</constant>, <constant>inactive</constant>,
101 <constant>failed</constant>, <constant>activating</constant>, <constant>deactivating</constant>. The SUB
102 column shows the unit-type-specific detailed state of the unit, possible values vary by unit type. The list
103 of possible LOAD, ACTIVE, and SUB states is not constant and new systemd releases may both add and remove
104 values. <programlisting>systemctl --state=help</programlisting> command maybe be used to display the
105 current set of possible values.</para>
4a6022f0 106
e1fac8a6
ZJS
107 <para>This is the default command.</para>
108 </listitem>
109 </varlistentry>
ea539eb6 110
e1fac8a6
ZJS
111 <varlistentry>
112 <term><command>list-sockets</command> <optional><replaceable>PATTERN</replaceable>…</optional></term>
ea539eb6 113
e1fac8a6
ZJS
114 <listitem>
115 <para>List socket units currently in memory, ordered by listening address. If one or more
116 <replaceable>PATTERN</replaceable>s are specified, only socket units matching one of them are
117 shown. Produces output similar to
118 <programlisting>
119LISTEN UNIT ACTIVATES
120/dev/initctl systemd-initctl.socket systemd-initctl.service
121
122[::]:22 sshd.socket sshd.service
123kobject-uevent 1 systemd-udevd-kernel.socket systemd-udevd.service
4a6022f0 124
e1fac8a6
ZJS
1255 sockets listed.</programlisting>
126 Note: because the addresses might contains spaces, this output
127 is not suitable for programmatic consumption.
128 </para>
4a6022f0 129
e1fac8a6
ZJS
130 <para>Also see <option>--show-types</option>, <option>--all</option>, and <option>--state=</option>.</para>
131 </listitem>
132 </varlistentry>
21b587cf 133
e1fac8a6
ZJS
134 <varlistentry>
135 <term><command>list-timers</command> <optional><replaceable>PATTERN</replaceable>…</optional></term>
e9fbae3f 136
e1fac8a6
ZJS
137 <listitem>
138 <para>List timer units currently in memory, ordered by the time they elapse next. If one or more
139 <replaceable>PATTERN</replaceable>s are specified, only units matching one of them are shown.
140 Produces output similar to
141 <programlisting>
142NEXT LEFT LAST PASSED UNIT ACTIVATES
143n/a n/a Thu 2017-02-23 13:40:29 EST 3 days ago ureadahead-stop.timer ureadahead-stop.service
144Sun 2017-02-26 18:55:42 EST 1min 14s left Thu 2017-02-23 13:54:44 EST 3 days ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
145Sun 2017-02-26 20:37:16 EST 1h 42min left Sun 2017-02-26 11:56:36 EST 6h ago apt-daily.timer apt-daily.service
146Sun 2017-02-26 20:57:49 EST 2h 3min left Sun 2017-02-26 11:56:36 EST 6h ago snapd.refresh.timer snapd.refresh.service
147 </programlisting>
148 </para>
4fa226ff 149
e1fac8a6
ZJS
150 <para><emphasis>NEXT</emphasis> shows the next time the timer will run.</para>
151 <para><emphasis>LEFT</emphasis> shows how long till the next time the timer runs.</para>
152 <para><emphasis>LAST</emphasis> shows the last time the timer ran.</para>
153 <para><emphasis>PASSED</emphasis> shows how long has passed since the timer last ran.</para>
154 <para><emphasis>UNIT</emphasis> shows the name of the timer</para>
155 <para><emphasis>ACTIVATES</emphasis> shows the name the service the timer activates when it runs.</para>
4a6022f0 156
e1fac8a6
ZJS
157 <para>Also see <option>--all</option> and <option>--state=</option>.</para>
158 </listitem>
159 </varlistentry>
1238ee09 160
172338d5
ZJS
161 <varlistentry>
162 <term><command>is-active <replaceable>PATTERN</replaceable>…</command></term>
163
164 <listitem>
165 <para>Check whether any of the specified units are active
166 (i.e. running). Returns an exit code
167 <constant>0</constant> if at least one is active, or
168 non-zero otherwise. Unless <option>--quiet</option> is
169 specified, this will also print the current unit state to
170 standard output.</para>
171 </listitem>
172 </varlistentry>
173
174 <varlistentry>
175 <term><command>is-failed <replaceable>PATTERN</replaceable>…</command></term>
176
177 <listitem>
178 <para>Check whether any of the specified units are in a
179 "failed" state. Returns an exit code
180 <constant>0</constant> if at least one has failed,
181 non-zero otherwise. Unless <option>--quiet</option> is
182 specified, this will also print the current unit state to
183 standard output.</para>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry>
188 <term><command>status</command> <optional><replaceable>PATTERN</replaceable>…|<replaceable>PID</replaceable>…]</optional></term>
189
190 <listitem>
a6e33464
ZJS
191 <para>Show runtime status information about the whole system or about one or more units followed
192 by most recent log data from the journal. If no positional arguments are specified, and no unit
193 filter is given with <option>--type=</option>, <option>--state=</option>, or
194 <option>--failed</option>, shows the status of the whole system. If combined with
195 <option>--all</option>, follows that with the status of all units. If positional arguments are
196 specified, each positional argument is treated as either a unit name to show, or a glob pattern
197 to show units whose names match that pattern, or a PID to show the unit containing that PID. When
198 <option>--type=</option>, <option>--state=</option>, or <option>--failed</option> are used, units
199 are additionally filtered by the TYPE and ACTIVE state.</para>
172338d5
ZJS
200
201 <para>This function is intended to generate human-readable
202 output. If you are looking for computer-parsable output,
203 use <command>show</command> instead. By default, this
204 function only shows 10 lines of output and ellipsizes
205 lines to fit in the terminal window. This can be changed
206 with <option>--lines</option> and <option>--full</option>,
207 see above. In addition, <command>journalctl
208 --unit=<replaceable>NAME</replaceable></command> or
209 <command>journalctl
210 --user-unit=<replaceable>NAME</replaceable></command> use
211 a similar filter for messages and might be more
212 convenient.
213 </para>
214
215 <para>systemd implicitly loads units as necessary, so just running the <command>status</command> will
216 attempt to load a file. The command is thus not useful for determining if something was already loaded or
217 not. The units may possibly also be quickly unloaded after the operation is completed if there's no reason
218 to keep it in memory thereafter.
219 </para>
220
221 <example>
222 <title>Example output from systemctl status </title>
223
224 <programlisting>$ systemctl status bluetooth
225● bluetooth.service - Bluetooth service
226 Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
227 Active: active (running) since Wed 2017-01-04 13:54:04 EST; 1 weeks 0 days ago
228 Docs: man:bluetoothd(8)
229 Main PID: 930 (bluetoothd)
230 Status: "Running"
231 Tasks: 1
232 Memory: 648.0K
233 CPU: 435ms
234 CGroup: /system.slice/bluetooth.service
235 └─930 /usr/lib/bluetooth/bluetoothd
236
237Jan 12 10:46:45 example.com bluetoothd[8900]: Not enough free handles to register service
238Jan 12 10:46:45 example.com bluetoothd[8900]: Current Time Service could not be registered
239Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output error (5)
240</programlisting>
241
9ae5fed6
J
242 <para>The dot ("●") uses color on supported terminals to summarize the unit state at a glance. Along with
243 its color, its shape varies according to its state: <literal>inactive</literal> or
244 <literal>maintenance</literal> is a white circle ("○"), <literal>active</literal> is a green dot ("●"),
245 <literal>deactivating</literal> is a white dot, <literal>failed</literal> or <literal>error</literal> is
246 a red cross ("×"), and <literal>reloading</literal> is a green clockwise circle arrow ("↻").
172338d5
ZJS
247 </para>
248
249 <para>The "Loaded:" line in the output will show <literal>loaded</literal> if the unit has been loaded into
250 memory. Other possible values for "Loaded:" include: <literal>error</literal> if there was a problem
251 loading it, <literal>not-found</literal> if no unit file was found for this unit,
252 <literal>bad-setting</literal> if an essential unit file setting could not be parsed and
253 <literal>masked</literal> if the unit file has been masked. Along with showing the path to the unit file,
254 this line will also show the enablement state. Enabled commands start at boot. See the full table of
255 possible enablement states — including the definition of <literal>masked</literal> — in the documentation
256 for the <command>is-enabled</command> command.
257 </para>
258
259 <para>The "Active:" line shows active state. The value is usually <literal>active</literal> or
260 <literal>inactive</literal>. Active could mean started, bound, plugged in, etc depending on the unit type.
261 The unit could also be in process of changing states, reporting a state of <literal>activating</literal> or
262 <literal>deactivating</literal>. A special <literal>failed</literal> state is entered when the service
263 failed in some way, such as a crash, exiting with an error code or timing out. If the failed state is
264 entered the cause will be logged for later reference.</para>
265 </example>
266
267 </listitem>
268 </varlistentry>
269
270 <varlistentry>
271 <term><command>show</command> <optional><replaceable>PATTERN</replaceable>…|<replaceable>JOB</replaceable>…</optional></term>
272
273 <listitem>
274 <para>Show properties of one or more units, jobs, or the manager itself. If no argument is specified,
275 properties of the manager will be shown. If a unit name is specified, properties of the unit are shown, and
276 if a job ID is specified, properties of the job are shown. By default, empty properties are suppressed. Use
277 <option>--all</option> to show those too. To select specific properties to show, use
278 <option>--property=</option>. This command is intended to be used whenever computer-parsable output is
279 required. Use <command>status</command> if you are looking for formatted human-readable output.</para>
280
281 <para>Many properties shown by <command>systemctl show</command> map directly to configuration settings of
282 the system and service manager and its unit files. Note that the properties shown by the command are
283 generally more low-level, normalized versions of the original configuration settings and expose runtime
284 state in addition to configuration. For example, properties shown for service units include the service's
285 current main process identifier as <literal>MainPID</literal> (which is runtime state), and time settings
286 are always exposed as properties ending in the <literal>…USec</literal> suffix even if a matching
287 configuration options end in <literal>…Sec</literal>, because microseconds is the normalized time unit used
288 internally by the system and service manager.</para>
289
290 <para>For details about many of these properties, see the documentation of the D-Bus interface
291 backing these properties, see
292 <citerefentry><refentrytitle>org.freedesktop.systemd1</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry>
297 <term><command>cat <replaceable>PATTERN</replaceable>…</command></term>
298
299 <listitem>
300 <para>Show backing files of one or more units. Prints the
301 "fragment" and "drop-ins" (source files) of units. Each
302 file is preceded by a comment which includes the file
303 name. Note that this shows the contents of the backing files
304 on disk, which may not match the system manager's
305 understanding of these units if any unit files were
306 updated on disk and the <command>daemon-reload</command>
307 command wasn't issued since.</para>
308 </listitem>
309 </varlistentry>
310
311 <varlistentry>
312 <term><command>help <replaceable>PATTERN</replaceable>…|<replaceable>PID</replaceable>…</command></term>
313
314 <listitem>
315 <para>Show manual pages for one or more units, if
316 available. If a PID is given, the manual pages for the unit
317 the process belongs to are shown.</para>
318 </listitem>
319 </varlistentry>
320
321 <varlistentry>
322 <term>
323 <command>list-dependencies</command>
324 <optional><replaceable>UNIT</replaceable>...</optional>
325 </term>
326
327 <listitem>
328 <para>Shows units required and wanted by the specified
329 units. This recursively lists units following the
330 <varname>Requires=</varname>,
331 <varname>Requisite=</varname>,
332 <varname>ConsistsOf=</varname>,
333 <varname>Wants=</varname>, <varname>BindsTo=</varname>
334 dependencies. If no units are specified,
335 <filename>default.target</filename> is implied.</para>
336
337 <para>By default, only target units are recursively
338 expanded. When <option>--all</option> is passed, all other
339 units are recursively expanded as well.</para>
340
341 <para>Options <option>--reverse</option>,
342 <option>--after</option>, <option>--before</option>
343 may be used to change what types of dependencies
344 are shown.</para>
345
346 <para>Note that this command only lists units currently loaded into memory by the service manager. In
347 particular, this command is not suitable to get a comprehensive list at all reverse dependencies on a
348 specific unit, as it won't list the dependencies declared by units currently not loaded.</para>
349 </listitem>
350 </varlistentry>
351
352 <!-- Commands that modify unit state start here -->
353
e1fac8a6
ZJS
354 <varlistentry>
355 <term><command>start <replaceable>PATTERN</replaceable>…</command></term>
1238ee09 356
e1fac8a6 357 <listitem>
1d56bc09
ZJS
358 <para>Start (activate) one or more units specified on the command line.</para>
359
360 <para>Note that unit glob patterns expand to names of units currently in memory. Units which are
361 not active and are not in a failed state usually are not in memory, and will not be matched by
362 any pattern. In addition, in case of instantiated units, systemd is often unaware of the instance
363 name until the instance has been started. Therefore, using glob patterns with
364 <command>start</command> has limited usefulness. Also, secondary alias names of units are not
365 considered.</para>
366
367 <para>Option <option>--all</option> may be used to also operate on inactive units which are
368 referenced by other loaded units. Note that this is not the same as operating on "all" possible
369 units, because as the previous paragraph describes, such a list is ill-defined. Nevertheless,
370 <command>systemctl start --all <replaceable>GLOB</replaceable></command> may be useful if all the
371 units that should match the pattern are pulled in by some target which is known to be loaded.
372 </para>
e1fac8a6
ZJS
373 </listitem>
374 </varlistentry>
375 <varlistentry>
376 <term><command>stop <replaceable>PATTERN</replaceable>…</command></term>
afba4199 377
e1fac8a6
ZJS
378 <listitem>
379 <para>Stop (deactivate) one or more units specified on the command line.</para>
9029f642 380
e1fac8a6
ZJS
381 <para>This command will fail if the unit does not exist or if stopping of the unit is prohibited (see
382 <varname>RefuseManualStop=</varname> in
383 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
384 It will <emphasis>not</emphasis> fail if any of the commands configured to stop the unit
385 (<varname>ExecStop=</varname>, etc.) fail, because the manager will still forcibly terminate the
386 unit.</para>
387 </listitem>
388 </varlistentry>
389 <varlistentry>
390 <term><command>reload <replaceable>PATTERN</replaceable>…</command></term>
f6375e83 391
e1fac8a6
ZJS
392 <listitem>
393 <para>Asks all units listed on the command line to reload
394 their configuration. Note that this will reload the
395 service-specific configuration, not the unit configuration
396 file of systemd. If you want systemd to reload the
397 configuration file of a unit, use the
398 <command>daemon-reload</command> command. In other words:
399 for the example case of Apache, this will reload Apache's
400 <filename>httpd.conf</filename> in the web server, not the
401 <filename>apache.service</filename> systemd unit
402 file.</para>
82948f6c 403
e1fac8a6
ZJS
404 <para>This command should not be confused with the
405 <command>daemon-reload</command> command.</para>
406 </listitem>
9029f642 407
e1fac8a6
ZJS
408 </varlistentry>
409 <varlistentry>
410 <term><command>restart <replaceable>PATTERN</replaceable>…</command></term>
afba4199 411
e1fac8a6
ZJS
412 <listitem>
413 <para>Stop and then start one or more units specified on the command line. If the units are not running
414 yet, they will be started.</para>
afba4199 415
e1fac8a6
ZJS
416 <para>Note that restarting a unit with this command does not necessarily flush out all of the unit's
417 resources before it is started again. For example, the per-service file descriptor storage facility (see
418 <varname>FileDescriptorStoreMax=</varname> in
419 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>) will
420 remain intact as long as the unit has a job pending, and is only cleared when the unit is fully stopped and
421 no jobs are pending anymore. If it is intended that the file descriptor store is flushed out, too, during a
422 restart operation an explicit <command>systemctl stop</command> command followed by <command>systemctl
423 start</command> should be issued.</para>
424 </listitem>
425 </varlistentry>
426 <varlistentry>
427 <term><command>try-restart <replaceable>PATTERN</replaceable>…</command></term>
4a6022f0 428
e1fac8a6
ZJS
429 <listitem>
430 <para>Stop and then start one or more units specified on the
431 command line if the units are running. This does nothing
432 if units are not running.</para>
433 <!-- Note that we don't document condrestart here, as that is just compatibility support, and we generally
434 don't document that. -->
435 </listitem>
436 </varlistentry>
437 <varlistentry>
438 <term><command>reload-or-restart <replaceable>PATTERN</replaceable>…</command></term>
4a6022f0 439
e1fac8a6
ZJS
440 <listitem>
441 <para>Reload one or more units if they support it. If not, stop and then start them instead. If the units
442 are not running yet, they will be started.</para>
443 </listitem>
444 </varlistentry>
445 <varlistentry>
446 <term><command>try-reload-or-restart <replaceable>PATTERN</replaceable>…</command></term>
4f9a9105 447
e1fac8a6
ZJS
448 <listitem>
449 <para>Reload one or more units if they support it. If not, stop and then start them instead. This does
450 nothing if the units are not running.</para>
451 <!-- Note that we don't document force-reload here, as that is just compatibility support, and we generally
452 don't document that. -->
453 </listitem>
454 </varlistentry>
455 <varlistentry>
456 <term><command>isolate <replaceable>UNIT</replaceable></command></term>
4f9a9105 457
e1fac8a6
ZJS
458 <listitem>
459 <para>Start the unit specified on the command line and its dependencies
460 and stop all others, unless they have
461 <option>IgnoreOnIsolate=yes</option> (see
462 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
463 If a unit name with no extension is given, an extension of
464 <literal>.target</literal> will be assumed.</para>
991f2a39 465
5cf821ac
ZJS
466 <para>This command is dangerous, since it will immediately stop processes that are not enabled in
467 the new target, possibly including the graphical environment or terminal you are currently using.
468 </para>
991f2a39 469
e1fac8a6
ZJS
470 <para>Note that this is allowed only on units where
471 <option>AllowIsolate=</option> is enabled. See
472 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
473 for details.</para>
474 </listitem>
475 </varlistentry>
476 <varlistentry>
477 <term><command>kill <replaceable>PATTERN</replaceable>…</command></term>
23ade460 478
e1fac8a6
ZJS
479 <listitem>
480 <para>Send a signal to one or more processes of the
481 unit. Use <option>--kill-who=</option> to select which
482 process to kill. Use <option>--signal=</option> to select
483 the signal to send.</para>
484 </listitem>
485 </varlistentry>
486 <varlistentry>
487 <term><command>clean <replaceable>PATTERN</replaceable>…</command></term>
4dc5b821 488
e1fac8a6
ZJS
489 <listitem>
490 <para>Remove the configuration, state, cache, logs or runtime data of the specified units. Use
491 <option>--what=</option> to select which kind of resource to remove. For service units this may
492 be used to remove the directories configured with <varname>ConfigurationDirectory=</varname>,
493 <varname>StateDirectory=</varname>, <varname>CacheDirectory=</varname>,
494 <varname>LogsDirectory=</varname> and <varname>RuntimeDirectory=</varname>, see
495 <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>
496 for details. For timer units this may be used to clear out the persistent timestamp data if
497 <varname>Persistent=</varname> is used and <option>--what=state</option> is selected, see
498 <citerefentry><refentrytitle>systemd.timer</refentrytitle><manvolnum>5</manvolnum></citerefentry>. This
499 command only applies to units that use either of these settings. If <option>--what=</option> is
500 not specified, both the cache and runtime data are removed (as these two types of data are
501 generally redundant and reproducible on the next invocation of the unit).</para>
502 </listitem>
503 </varlistentry>
d9e45bc3
MS
504 <varlistentry>
505 <term><command>freeze <replaceable>PATTERN</replaceable>…</command></term>
506
507 <listitem>
508 <para>Freeze one or more units specified on the
509 command line using cgroup freezer</para>
510
511 <para>Freezing the unit will cause all processes contained within the cgroup corresponding to the unit
512 to be suspended. Being suspended means that unit's processes won't be scheduled to run on CPU until thawed.
513 Note that this command is supported only on systems that use unified cgroup hierarchy. Unit is automatically
514 thawed just before we execute a job against the unit, e.g. before the unit is stopped.</para>
515 </listitem>
516 </varlistentry>
517 <varlistentry>
518 <term><command>thaw <replaceable>PATTERN</replaceable>…</command></term>
519
520 <listitem>
521 <para>Thaw (unfreeze) one or more units specified on the
522 command line.</para>
523
524 <para>This is the inverse operation to the <command>freeze</command> command and resumes the execution of
525 processes in the unit's cgroup.</para>
526 </listitem>
527 </varlistentry>
e1fac8a6
ZJS
528 <varlistentry>
529 <term><command>set-property <replaceable>UNIT</replaceable> <replaceable>PROPERTY</replaceable>=<replaceable>VALUE</replaceable>…</command></term>
1ae17672 530
e1fac8a6
ZJS
531 <listitem>
532 <para>Set the specified unit properties at runtime where
533 this is supported. This allows changing configuration
534 parameter properties such as resource control settings at
535 runtime. Not all properties may be changed at runtime, but
536 many resource control settings (primarily those in
537 <citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry>)
538 may. The changes are applied immediately, and stored on disk
539 for future boots, unless <option>--runtime</option> is
540 passed, in which case the settings only apply until the
541 next reboot. The syntax of the property assignment follows
542 closely the syntax of assignments in unit files.</para>
4a6022f0 543
e1fac8a6 544 <para>Example: <command>systemctl set-property foobar.service CPUWeight=200</command></para>
4a6022f0 545
e1fac8a6
ZJS
546 <para>If the specified unit appears to be inactive, the
547 changes will be only stored on disk as described
548 previously hence they will be effective when the unit will
549 be started.</para>
4a6022f0 550
e1fac8a6
ZJS
551 <para>Note that this command allows changing multiple properties at the same time, which is
552 preferable over setting them individually.</para>
93a08841 553
e1fac8a6 554 <para>Example: <command>systemctl set-property foobar.service CPUWeight=200 MemoryMax=2G IPAccounting=yes</command></para>
93a08841 555
e1fac8a6
ZJS
556 <para>Like with unit file configuration settings, assigning an empty setting usually resets a
557 property to its defaults.</para>
adb6cd9b 558
e1fac8a6
ZJS
559 <para>Example: <command>systemctl set-property avahi-daemon.service IPAddressDeny=</command></para>
560 </listitem>
561 </varlistentry>
4a6022f0 562
5e8deb94 563 <varlistentry>
e04eae5e
ZJS
564 <term>
565 <command>bind</command>
566 <replaceable>UNIT</replaceable>
567 <replaceable>PATH</replaceable>
568 [<replaceable>PATH</replaceable>]
569 </term>
570
571 <listitem><para>Bind-mounts a file or directory from the host into the specified unit's mount
572 namespace. The first path argument is the source file or directory on the host, the second path
573 argument is the destination file or directory in the unit's mount namespace. When the latter is
574 omitted, the destination path in the unit's mount namespace is the same as the source path on the
575 host. When combined with the <option>--read-only</option> switch, a ready-only bind mount is
576 created. When combined with the <option>--mkdir</option> switch, the destination path is first
577 created before the mount is applied.</para>
578
579 <para>Note that this option is currently only supported for units that run within a mount namespace
580 (e.g.: with <option>RootImage=</option>, <option>PrivateMounts=</option>, etc.). This command
581 supports bind-mounting directories, regular files, device nodes, <constant>AF_UNIX</constant>
582 socket nodes, as well as FIFOs. The bind mount is ephemeral, and it is undone as soon as the
583 current unit process exists. Note that the namespace mentioned here, where the bind mount will be
584 added to, is the one where the main service process runs. Other processes (those exececuted by
585 <option>ExecReload=</option>, <option>ExecStartPre=</option>, etc.) run in distinct namespaces.
586 </para></listitem>
587 </varlistentry>
588
589 <varlistentry>
590 <term>
591 <command>mount-image</command>
592 <replaceable>UNIT</replaceable>
593 <replaceable>IMAGE</replaceable>
594 [<replaceable>PATH</replaceable>
595 [<replaceable>PARTITION_NAME</replaceable>:<replaceable>MOUNT_OPTIONS</replaceable>]]
596 </term>
597
598 <listitem><para>Mounts an image from the host into the specified unit's mount namespace. The first
599 path argument is the source image on the host, the second path argument is the destination
600 directory in the unit's mount namespace (i.e. inside
601 <option>RootImage=</option>/<option>RootDirectory=</option>). The following argument, if any, is
602 interpreted as a colon-separated tuple of partition name and comma-separated list of mount options
603 for that partition. The format is the same as the service <option>MountImages=</option>
604 setting. When combined with the <option>--read-only</option> switch, a ready-only mount is
605 created. When combined with the <option>--mkdir</option> switch, the destination path is first
606 created before the mount is applied.</para>
607
608 <para>Note that this option is currently only supported for units that run within a mount namespace
609 (i.e. with <option>RootImage=</option>, <option>PrivateMounts=</option>, etc.). Note that the
610 namespace mentioned here where the image mount will be added to, is the one where the main service
611 process runs. Note that the namespace mentioned here, where the bind mount will be
612 added to, is the one where the main service process runs. Other processes (those exececuted by
613 <option>ExecReload=</option>, <option>ExecStartPre=</option>, etc.) run in distinct namespaces.
614 </para>
615
616 <para>Example:
6faecbd3 617 <programlisting>systemctl mount-image foo.service /tmp/img.raw /var/lib/image root:ro,nosuid</programlisting>
e04eae5e
ZJS
618 <programlisting>systemctl mount-image --mkdir bar.service /tmp/img.raw /var/lib/baz/img</programlisting>
619 </para></listitem>
6faecbd3
LB
620 </varlistentry>
621
6824c132
ZJS
622 <varlistentry>
623 <term><command>service-log-level</command> <replaceable>SERVICE</replaceable> [<replaceable>LEVEL</replaceable>]</term>
624
625 <listitem><para>If the <replaceable>LEVEL</replaceable> argument is not given, print the current
626 log level as reported by service <replaceable>SERVICE</replaceable>.</para>
627
628 <para>If the optional argument <replaceable>LEVEL</replaceable> is provided, then change the
629 current log level of the service to <replaceable>LEVEL</replaceable>. The log level should be a
630 typical syslog log level, i.e. a value in the range 0…7 or one of the strings
631 <constant>emerg</constant>, <constant>alert</constant>, <constant>crit</constant>,
632 <constant>err</constant>, <constant>warning</constant>, <constant>notice</constant>,
633 <constant>info</constant>, <constant>debug</constant>; see <citerefentry
634 project='man-pages'><refentrytitle>syslog</refentrytitle><manvolnum>3</manvolnum></citerefentry>
635 for details.</para>
636
637 <para>The service must have the appropriate
638 <varname>BusName=<replaceable>destination</replaceable></varname> property and also implement the
639 generic
640 <citerefentry><refentrytitle>org.freedesktop.LogControl1</refentrytitle><manvolnum>5</manvolnum></citerefentry>
641 interface. (<filename>systemctl</filename> will use the generic D-Bus protocol to access the
642 <interfacename>org.freedesktop.LogControl1.LogLevel</interfacename> interface for the D-Bus name
643 <replaceable>destination</replaceable>.)</para></listitem>
644 </varlistentry>
645
646 <varlistentry>
647 <term><command>service-log-target</command> <replaceable>SERVICE</replaceable> [<replaceable>TARGET</replaceable>]</term>
648
649 <listitem><para>If the <replaceable>TARGET</replaceable> argument is not given, print the current
650 log target as reported by service <replaceable>SERVICE</replaceable>.</para>
651
652 <para>If the optional argument <replaceable>TARGET</replaceable> is provided, then change the
653 current log target of the service to <replaceable>TARGET</replaceable>. The log target should be
654 one of the strings <constant>console</constant> (for log output to the service's standard error
655 stream), <constant>kmsg</constant> (for log output to the kernel log buffer),
656 <constant>journal</constant> (for log output to
657 <citerefentry><refentrytitle>systemd-journald.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
658 using the native journal protocol), <constant>syslog</constant> (for log output to the classic
659 syslog socket <filename>/dev/log</filename>), <constant>null</constant> (for no log output
660 whatsoever) or <constant>auto</constant> (for an automatically determined choice, typically
661 equivalent to <constant>console</constant> if the service is invoked interactively, and
662 <constant>journal</constant> or <constant>syslog</constant> otherwise).</para>
663
664 <para>For most services, only a small subset of log targets make sense. In particular, most
665 "normal" services should only implement <constant>console</constant>, <constant>journal</constant>,
666 and <constant>null</constant>. Anything else is only appropriate for low-level services that
667 are active in very early boot before proper logging is established.</para>
668
669 <para>The service must have the appropriate
670 <varname>BusName=<replaceable>destination</replaceable></varname> property and also implement the
671 generic
672 <citerefentry><refentrytitle>org.freedesktop.LogControl1</refentrytitle><manvolnum>5</manvolnum></citerefentry>
673 interface. (<filename>systemctl</filename> will use the generic D-Bus protocol to access the
674 <interfacename>org.freedesktop.LogControl1.LogLevel</interfacename> interface for the D-Bus name
675 <replaceable>destination</replaceable>.)</para></listitem>
676 </varlistentry>
677
e1fac8a6
ZJS
678 <varlistentry>
679 <term><command>reset-failed [<replaceable>PATTERN</replaceable>…]</command></term>
599b6322 680
e1fac8a6
ZJS
681 <listitem>
682 <para>Reset the <literal>failed</literal> state of the specified units, or if no unit name is passed, reset
683 the state of all units. When a unit fails in some way (i.e. process exiting with non-zero error code,
684 terminating abnormally or timing out), it will automatically enter the <literal>failed</literal> state and
685 its exit code and status is recorded for introspection by the administrator until the service is
686 stopped/re-started or reset with this command.</para>
4a6022f0 687
e1fac8a6
ZJS
688 <para>In addition to resetting the <literal>failed</literal> state of a unit it also resets various other
689 per-unit properties: the start rate limit counter of all unit types is reset to zero, as is the restart
690 counter of service units. Thus, if a unit's start limit (as configured with
691 <varname>StartLimitIntervalSec=</varname>/<varname>StartLimitBurst=</varname>) is hit and the unit refuses
692 to be started again, use this command to make it startable again.</para>
693 </listitem>
694 </varlistentry>
e1fac8a6
ZJS
695 </variablelist>
696 </refsect2>
4a6022f0 697
e1fac8a6
ZJS
698 <refsect2>
699 <title>Unit File Commands</title>
4a6022f0 700
e1fac8a6
ZJS
701 <variablelist>
702 <varlistentry>
703 <term><command>list-unit-files</command> <optional><replaceable>PATTERN…</replaceable></optional></term>
4a6022f0 704
e1fac8a6 705 <listitem>
7ea5e82f
LP
706 <para>List unit files installed on the system, in combination with their enablement state (as
707 reported by <command>is-enabled</command>). If one or more <replaceable>PATTERN</replaceable>s
708 are specified, only unit files whose name matches one of them are shown (patterns matching unit
709 file system paths are not supported).</para>
710
711 <para>Unlike <command>list-units</command> this command will list template units in addition to
712 explicitly instantiated units.</para>
e1fac8a6
ZJS
713 </listitem>
714 </varlistentry>
4a6022f0 715
e1fac8a6
ZJS
716 <varlistentry>
717 <term><command>enable <replaceable>UNIT</replaceable>…</command></term>
718 <term><command>enable <replaceable>PATH</replaceable>…</command></term>
4a6022f0 719
e1fac8a6
ZJS
720 <listitem>
721 <para>Enable one or more units or unit instances. This will create a set of symlinks, as encoded in the
bdac5608 722 [Install] sections of the indicated unit files. After the symlinks have been created,
e1fac8a6
ZJS
723 the system manager configuration is reloaded (in a way equivalent to <command>daemon-reload</command>), in
724 order to ensure the changes are taken into account immediately. Note that this does
725 <emphasis>not</emphasis> have the effect of also starting any of the units being enabled. If this is
726 desired, combine this command with the <option>--now</option> switch, or invoke <command>start</command>
727 with appropriate arguments later. Note that in case of unit instance enablement (i.e. enablement of units of
728 the form <filename>foo@bar.service</filename>), symlinks named the same as instances are created in the
729 unit configuration directory, however they point to the single template unit file they are instantiated
730 from.</para>
4a6022f0 731
e1fac8a6
ZJS
732 <para>This command expects either valid unit names (in which case various unit file directories are
733 automatically searched for unit files with appropriate names), or absolute paths to unit files (in which
734 case these files are read directly). If a specified unit file is located outside of the usual unit file
735 directories, an additional symlink is created, linking it into the unit configuration path, thus ensuring
736 it is found when requested by commands such as <command>start</command>. The file system where the linked
737 unit files are located must be accessible when systemd is started (e.g. anything underneath
3b121157 738 <filename>/home/</filename> or <filename>/var/</filename> is not allowed, unless those directories are
e1fac8a6 739 located on the root file system).</para>
4a6022f0 740
e1fac8a6
ZJS
741 <para>This command will print the file system operations executed. This output may be suppressed by passing
742 <option>--quiet</option>.
743 </para>
8c8208cb 744
bdac5608 745 <para>Note that this operation creates only the symlinks suggested in the [Install]
e1fac8a6
ZJS
746 section of the unit files. While this command is the recommended way to manipulate the unit configuration
747 directory, the administrator is free to make additional changes manually by placing or removing symlinks
748 below this directory. This is particularly useful to create configurations that deviate from the suggested
749 default installation. In this case, the administrator must make sure to invoke
750 <command>daemon-reload</command> manually as necessary, in order to ensure the changes are taken into
751 account.
752 </para>
8c8208cb 753
e1fac8a6
ZJS
754 <para>Enabling units should not be confused with starting (activating) units, as done by the
755 <command>start</command> command. Enabling and starting units is orthogonal: units may be enabled without
756 being started and started without being enabled. Enabling simply hooks the unit into various suggested
757 places (for example, so that the unit is automatically started on boot or when a particular kind of
758 hardware is plugged in). Starting actually spawns the daemon process (in case of service units), or binds
759 the socket (in case of socket units), and so on.</para>
4a6022f0 760
e1fac8a6
ZJS
761 <para>Depending on whether <option>--system</option>, <option>--user</option>, <option>--runtime</option>,
762 or <option>--global</option> is specified, this enables the unit for the system, for the calling user only,
763 for only this boot of the system, or for all future logins of all users. Note that in the last case, no
764 systemd daemon configuration is reloaded.</para>
4a6022f0 765
e1fac8a6
ZJS
766 <para>Using <command>enable</command> on masked units is not supported and results in an error.</para>
767 </listitem>
768 </varlistentry>
39c38ce1 769
e1fac8a6
ZJS
770 <varlistentry>
771 <term><command>disable <replaceable>UNIT</replaceable>…</command></term>
4a6022f0 772
e1fac8a6
ZJS
773 <listitem>
774 <para>Disables one or more units. This removes all symlinks to the unit files backing the specified units
775 from the unit configuration directory, and hence undoes any changes made by <command>enable</command> or
776 <command>link</command>. Note that this removes <emphasis>all</emphasis> symlinks to matching unit files,
777 including manually created symlinks, and not just those actually created by <command>enable</command> or
778 <command>link</command>. Note that while <command>disable</command> undoes the effect of
779 <command>enable</command>, the two commands are otherwise not symmetric, as <command>disable</command> may
780 remove more symlinks than a prior <command>enable</command> invocation of the same unit created.</para>
9ef15026 781
e1fac8a6 782 <para>This command expects valid unit names only, it does not accept paths to unit files.</para>
9ef15026 783
e1fac8a6 784 <para>In addition to the units specified as arguments, all units are disabled that are listed in the
bdac5608 785 <varname>Also=</varname> setting contained in the [Install] section of any of the unit
e1fac8a6 786 files being operated on.</para>
57ab2eab 787
e1fac8a6
ZJS
788 <para>This command implicitly reloads the system manager configuration after completing the operation. Note
789 that this command does not implicitly stop the units that are being disabled. If this is desired, either
790 combine this command with the <option>--now</option> switch, or invoke the <command>stop</command> command
791 with appropriate arguments later.</para>
57ab2eab 792
e1fac8a6
ZJS
793 <para>This command will print information about the file system operations (symlink removals)
794 executed. This output may be suppressed by passing <option>--quiet</option>.
795 </para>
4a6022f0 796
e1fac8a6
ZJS
797 <para>This command honors <option>--system</option>, <option>--user</option>, <option>--runtime</option>
798 and <option>--global</option> in a similar way as <command>enable</command>.</para>
799 </listitem>
800 </varlistentry>
4a6022f0 801
e1fac8a6
ZJS
802 <varlistentry>
803 <term><command>reenable <replaceable>UNIT</replaceable>…</command></term>
4a6022f0 804
e1fac8a6
ZJS
805 <listitem>
806 <para>Reenable one or more units, as specified on the command line. This is a combination of
807 <command>disable</command> and <command>enable</command> and is useful to reset the symlinks a unit file is
bdac5608 808 enabled with to the defaults configured in its [Install] section. This command expects
e1fac8a6
ZJS
809 a unit name only, it does not accept paths to unit files.</para>
810 </listitem>
811 </varlistentry>
4a6022f0 812
e1fac8a6
ZJS
813 <varlistentry>
814 <term><command>preset <replaceable>UNIT</replaceable>…</command></term>
a330b376 815
e1fac8a6
ZJS
816 <listitem>
817 <para>Reset the enable/disable status one or more unit files, as specified on
818 the command line, to the defaults configured in the preset policy files. This
819 has the same effect as <command>disable</command> or
820 <command>enable</command>, depending how the unit is listed in the preset
821 files.</para>
4a6022f0 822
e1fac8a6
ZJS
823 <para>Use <option>--preset-mode=</option> to control whether units shall be
824 enabled and disabled, or only enabled, or only disabled.</para>
d309c1c3 825
e1fac8a6
ZJS
826 <para>If the unit carries no install information, it will be silently ignored
827 by this command. <replaceable>UNIT</replaceable> must be the real unit name,
828 any alias names are ignored silently.</para>
d309c1c3 829
e1fac8a6
ZJS
830 <para>For more information on the preset policy format, see
831 <citerefentry><refentrytitle>systemd.preset</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
7e215af7 832 </para>
e1fac8a6
ZJS
833 </listitem>
834 </varlistentry>
4a6022f0 835
e1fac8a6
ZJS
836 <varlistentry>
837 <term><command>preset-all</command></term>
4a6022f0 838
e1fac8a6
ZJS
839 <listitem>
840 <para>Resets all installed unit files to the defaults
841 configured in the preset policy file (see above).</para>
4a6022f0 842
e1fac8a6
ZJS
843 <para>Use <option>--preset-mode=</option> to control
844 whether units shall be enabled and disabled, or only
845 enabled, or only disabled.</para>
846 </listitem>
847 </varlistentry>
4a6022f0 848
27722f96 849 <varlistentry>
e1fac8a6 850 <term><command>is-enabled <replaceable>UNIT</replaceable>…</command></term>
4a6022f0 851
27722f96 852 <listitem>
e1fac8a6
ZJS
853 <para>Checks whether any of the specified unit files are
854 enabled (as with <command>enable</command>). Returns an
855 exit code of 0 if at least one is enabled, non-zero
856 otherwise. Prints the current enable status (see table).
857 To suppress this output, use <option>--quiet</option>.
858 To show installation targets, use <option>--full</option>.
859 </para>
6fdbb3c8 860
e1fac8a6
ZJS
861 <table>
862 <title>
863 <command>is-enabled</command> output
864 </title>
6fdbb3c8 865
e1fac8a6
ZJS
866 <tgroup cols='3'>
867 <thead>
868 <row>
869 <entry>Name</entry>
870 <entry>Description</entry>
871 <entry>Exit Code</entry>
872 </row>
873 </thead>
874 <tbody>
875 <row>
876 <entry><literal>enabled</literal></entry>
877 <entry morerows='1'>Enabled via <filename>.wants/</filename>, <filename>.requires/</filename> or <varname>Alias=</varname> symlinks (permanently in <filename>/etc/systemd/system/</filename>, or transiently in <filename>/run/systemd/system/</filename>).</entry>
878 <entry morerows='1'>0</entry>
879 </row>
880 <row>
881 <entry><literal>enabled-runtime</literal></entry>
882 </row>
883 <row>
884 <entry><literal>linked</literal></entry>
885 <entry morerows='1'>Made available through one or more symlinks to the unit file (permanently in <filename>/etc/systemd/system/</filename> or transiently in <filename>/run/systemd/system/</filename>), even though the unit file might reside outside of the unit file search path.</entry>
886 <entry morerows='1'>&gt; 0</entry>
887 </row>
888 <row>
889 <entry><literal>linked-runtime</literal></entry>
890 </row>
15d7ab87
ZJS
891 <row>
892 <entry><literal>alias</literal></entry>
893 <entry>The name is an alias (symlink to another unit file).</entry>
894 <entry>0</entry>
895 </row>
e1fac8a6
ZJS
896 <row>
897 <entry><literal>masked</literal></entry>
898 <entry morerows='1'>Completely disabled, so that any start operation on it fails (permanently in <filename>/etc/systemd/system/</filename> or transiently in <filename>/run/systemd/systemd/</filename>).</entry>
899 <entry morerows='1'>&gt; 0</entry>
900 </row>
901 <row>
902 <entry><literal>masked-runtime</literal></entry>
903 </row>
904 <row>
905 <entry><literal>static</literal></entry>
bdac5608 906 <entry>The unit file is not enabled, and has no provisions for enabling in the [Install] unit file section.</entry>
e1fac8a6
ZJS
907 <entry>0</entry>
908 </row>
909 <row>
910 <entry><literal>indirect</literal></entry>
bdac5608 911 <entry>The unit file itself is not enabled, but it has a non-empty <varname>Also=</varname> setting in the [Install] unit file section, listing other unit files that might be enabled, or it has an alias under a different name through a symlink that is not specified in <varname>Also=</varname>. For template unit files, an instance different than the one specified in <varname>DefaultInstance=</varname> is enabled.</entry>
e1fac8a6
ZJS
912 <entry>0</entry>
913 </row>
914 <row>
915 <entry><literal>disabled</literal></entry>
bdac5608 916 <entry>The unit file is not enabled, but contains an [Install] section with installation instructions.</entry>
e1fac8a6
ZJS
917 <entry>&gt; 0</entry>
918 </row>
919 <row>
920 <entry><literal>generated</literal></entry>
921 <entry>The unit file was generated dynamically via a generator tool. See <citerefentry><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>. Generated unit files may not be enabled, they are enabled implicitly by their generator.</entry>
922 <entry>0</entry>
923 </row>
924 <row>
925 <entry><literal>transient</literal></entry>
926 <entry>The unit file has been created dynamically with the runtime API. Transient units may not be enabled.</entry>
927 <entry>0</entry>
928 </row>
929 <row>
930 <entry><literal>bad</literal></entry>
931 <entry>The unit file is invalid or another error occurred. Note that <command>is-enabled</command> will not actually return this state, but print an error message instead. However the unit file listing printed by <command>list-unit-files</command> might show it.</entry>
932 <entry>&gt; 0</entry>
933 </row>
934 </tbody>
935 </tgroup>
936 </table>
6fdbb3c8 937
27722f96
LN
938 </listitem>
939 </varlistentry>
991f2a39 940
27722f96 941 <varlistentry>
e1fac8a6 942 <term><command>mask <replaceable>UNIT</replaceable>…</command></term>
27722f96
LN
943
944 <listitem>
e1fac8a6
ZJS
945 <para>Mask one or more units, as specified on the command line. This will link these unit files to
946 <filename>/dev/null</filename>, making it impossible to start them. This is a stronger version of
947 <command>disable</command>, since it prohibits all kinds of activation of the unit, including enablement
948 and manual activation. Use this option with care. This honors the <option>--runtime</option> option to only
949 mask temporarily until the next reboot of the system. The <option>--now</option> option may be used to
950 ensure that the units are also stopped. This command expects valid unit names only, it does not accept unit
951 file paths.</para>
27722f96
LN
952 </listitem>
953 </varlistentry>
954
cbb76c29 955 <varlistentry>
e1fac8a6 956 <term><command>unmask <replaceable>UNIT</replaceable>…</command></term>
cbb76c29
LP
957
958 <listitem>
e1fac8a6
ZJS
959 <para>Unmask one or more unit files, as specified on the command line. This will undo the effect of
960 <command>mask</command>. This command expects valid unit names only, it does not accept unit file
961 paths.</para>
962 </listitem>
963 </varlistentry>
cbb76c29 964
e1fac8a6
ZJS
965 <varlistentry>
966 <term><command>link <replaceable>PATH</replaceable>…</command></term>
ccdda955 967
e1fac8a6
ZJS
968 <listitem>
969 <para>Link a unit file that is not in the unit file search paths into the unit file search path. This
970 command expects an absolute path to a unit file. The effect of this may be undone with
971 <command>disable</command>. The effect of this command is that a unit file is made available for commands
972 such as <command>start</command>, even though it is not installed directly in the unit search path. The
973 file system where the linked unit files are located must be accessible when systemd is started
3b121157 974 (e.g. anything underneath <filename>/home/</filename> or <filename>/var/</filename> is not allowed, unless
e1fac8a6 975 those directories are located on the root file system).</para>
cbb76c29
LP
976 </listitem>
977 </varlistentry>
978
27722f96 979 <varlistentry>
e1fac8a6 980 <term><command>revert <replaceable>UNIT</replaceable>…</command></term>
27722f96
LN
981
982 <listitem>
e1fac8a6
ZJS
983 <para>Revert one or more unit files to their vendor versions. This command removes drop-in configuration
984 files that modify the specified units, as well as any user-configured unit file that overrides a matching
985 vendor supplied unit file. Specifically, for a unit <literal>foo.service</literal> the matching directories
986 <literal>foo.service.d/</literal> with all their contained files are removed, both below the persistent and
987 runtime configuration directories (i.e. below <filename>/etc/systemd/system</filename> and
988 <filename>/run/systemd/system</filename>); if the unit file has a vendor-supplied version (i.e. a unit file
3b121157 989 located below <filename>/usr/</filename>) any matching persistent or runtime unit file that overrides it is
e1fac8a6
ZJS
990 removed, too. Note that if a unit file has no vendor-supplied version (i.e. is only defined below
991 <filename>/etc/systemd/system</filename> or <filename>/run/systemd/system</filename>, but not in a unit
3b121157 992 file stored below <filename>/usr/</filename>), then it is not removed. Also, if a unit is masked, it is
e1fac8a6
ZJS
993 unmasked.</para>
994
995 <para>Effectively, this command may be used to undo all changes made with <command>systemctl
996 edit</command>, <command>systemctl set-property</command> and <command>systemctl mask</command> and puts
997 the original unit file with its settings back in effect.</para>
27722f96
LN
998 </listitem>
999 </varlistentry>
e1fac8a6 1000
27722f96 1001 <varlistentry>
e1fac8a6
ZJS
1002 <term><command>add-wants <replaceable>TARGET</replaceable>
1003 <replaceable>UNIT</replaceable>…</command></term>
1004 <term><command>add-requires <replaceable>TARGET</replaceable>
1005 <replaceable>UNIT</replaceable>…</command></term>
27722f96
LN
1006
1007 <listitem>
e1fac8a6
ZJS
1008 <para>Adds <literal>Wants=</literal> or <literal>Requires=</literal>
1009 dependencies, respectively, to the specified
1010 <replaceable>TARGET</replaceable> for one or more units. </para>
1011
1012 <para>This command honors <option>--system</option>,
1013 <option>--user</option>, <option>--runtime</option> and
1014 <option>--global</option> in a way similar to
1015 <command>enable</command>.</para>
4f0acdb3 1016
27722f96
LN
1017 </listitem>
1018 </varlistentry>
e1fac8a6 1019
27722f96 1020 <varlistentry>
e1fac8a6 1021 <term><command>edit <replaceable>UNIT</replaceable>…</command></term>
27722f96
LN
1022
1023 <listitem>
e1fac8a6
ZJS
1024 <para>Edit a drop-in snippet or a whole replacement file if
1025 <option>--full</option> is specified, to extend or override the
1026 specified unit.</para>
27722f96 1027
e1fac8a6
ZJS
1028 <para>Depending on whether <option>--system</option> (the default),
1029 <option>--user</option>, or <option>--global</option> is specified,
1030 this command creates a drop-in file for each unit either for the system,
1031 for the calling user, or for all futures logins of all users. Then,
1032 the editor (see the "Environment" section below) is invoked on
1033 temporary files which will be written to the real location if the
1034 editor exits successfully.</para>
27722f96 1035
e1fac8a6
ZJS
1036 <para>If <option>--full</option> is specified, this will copy the
1037 original units instead of creating drop-in files.</para>
27722f96 1038
e1fac8a6
ZJS
1039 <para>If <option>--force</option> is specified and any units do
1040 not already exist, new unit files will be opened for editing.</para>
c4f2aaa4 1041
e1fac8a6 1042 <para>If <option>--runtime</option> is specified, the changes will
3b121157 1043 be made temporarily in <filename>/run/</filename> and they will be
e1fac8a6
ZJS
1044 lost on the next reboot.</para>
1045
1046 <para>If the temporary file is empty upon exit, the modification of
1047 the related unit is canceled.</para>
1048
1049 <para>After the units have been edited, systemd configuration is
1050 reloaded (in a way that is equivalent to <command>daemon-reload</command>).
1051 </para>
1052
1053 <para>Note that this command cannot be used to remotely edit units
1054 and that you cannot temporarily edit units which are in
3b121157
ZJS
1055 <filename>/etc/</filename>, since they take precedence over
1056 <filename>/run/</filename>.</para>
27722f96
LN
1057 </listitem>
1058 </varlistentry>
e1fac8a6 1059
27722f96 1060 <varlistentry>
e1fac8a6 1061 <term><command>get-default</command></term>
27722f96
LN
1062
1063 <listitem>
e1fac8a6
ZJS
1064 <para>Return the default target to boot into. This returns
1065 the target unit name <filename>default.target</filename>
1066 is aliased (symlinked) to.</para>
27722f96
LN
1067 </listitem>
1068 </varlistentry>
e1fac8a6 1069
27722f96 1070 <varlistentry>
e1fac8a6 1071 <term><command>set-default <replaceable>TARGET</replaceable></command></term>
27722f96
LN
1072
1073 <listitem>
e1fac8a6
ZJS
1074 <para>Set the default target to boot into. This sets
1075 (symlinks) the <filename>default.target</filename> alias
1076 to the given target unit.</para>
27722f96
LN
1077 </listitem>
1078 </varlistentry>
e1fac8a6
ZJS
1079
1080 </variablelist>
1081 </refsect2>
1082
1083 <refsect2>
1084 <title>Machine Commands</title>
1085
1086 <variablelist>
27722f96 1087 <varlistentry>
e1fac8a6 1088 <term><command>list-machines</command> <optional><replaceable>PATTERN</replaceable>…</optional></term>
27722f96
LN
1089
1090 <listitem>
e1fac8a6
ZJS
1091 <para>List the host and all running local containers with
1092 their state. If one or more
1093 <replaceable>PATTERN</replaceable>s are specified, only
1094 containers matching one of them are shown.
1095 </para>
27722f96
LN
1096 </listitem>
1097 </varlistentry>
e1fac8a6
ZJS
1098 </variablelist>
1099 </refsect2>
1100
1101 <refsect2>
1102 <title>Job Commands</title>
1103
1104 <variablelist>
27722f96 1105 <varlistentry>
e1fac8a6 1106 <term><command>list-jobs <optional><replaceable>PATTERN…</replaceable></optional></command></term>
27722f96
LN
1107
1108 <listitem>
e1fac8a6
ZJS
1109 <para>List jobs that are in progress. If one or more
1110 <replaceable>PATTERN</replaceable>s are specified, only
1111 jobs for units matching one of them are shown.</para>
27722f96 1112
e1fac8a6
ZJS
1113 <para>When combined with <option>--after</option> or <option>--before</option> the list is augmented with
1114 information on which other job each job is waiting for, and which other jobs are waiting for it, see
1115 above.</para>
27722f96
LN
1116 </listitem>
1117 </varlistentry>
1118 <varlistentry>
e1fac8a6 1119 <term><command>cancel <replaceable>JOB</replaceable>…</command></term>
27722f96
LN
1120
1121 <listitem>
e1fac8a6
ZJS
1122 <para>Cancel one or more jobs specified on the command line
1123 by their numeric job IDs. If no job ID is specified, cancel
1124 all pending jobs.</para>
27722f96
LN
1125 </listitem>
1126 </varlistentry>
e1fac8a6
ZJS
1127 </variablelist>
1128 </refsect2>
1129
1130 <refsect2>
1131 <title>Environment Commands</title>
1132
0dc9fd56
ZJS
1133 <para><command>systemd</command> supports an environment block that is passed to processes the manager
1134 spawns. The names of the variables can contain ASCII letters, digits, and the underscore
1135 character. Variable names cannot be empty or start with a digit. In variable values, most characters
30927a24
ZJS
1136 are allowed, but the whole sequence must be valid UTF-8. (Note that control characters like newline
1137 (<constant>NL</constant>), tab (<constant>TAB</constant>), or the escape character
1138 (<constant>ESC</constant>), <emphasis>are</emphasis> valid ASCII and thus valid UTF-8). The total
1139 length of the environment block is limited to <constant>_SC_ARG_MAX</constant> value defined by
0dc9fd56
ZJS
1140 <citerefentry project='man-pages'><refentrytitle>sysconf</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
1141 </para>
1142
e1fac8a6 1143 <variablelist>
8c8208cb 1144 <varlistentry>
e1fac8a6 1145 <term><command>show-environment</command></term>
8c8208cb
LP
1146
1147 <listitem>
e1fac8a6
ZJS
1148 <para>Dump the systemd manager environment block. This is the environment
1149 block that is passed to all processes the manager spawns. The environment
4bb37359 1150 block will be dumped in straightforward form suitable for sourcing into
e1fac8a6
ZJS
1151 most shells. If no special characters or whitespace is present in the variable
1152 values, no escaping is performed, and the assignments have the form
1153 <literal>VARIABLE=value</literal>. If whitespace or characters which have
1154 special meaning to the shell are present, dollar-single-quote escaping is
1155 used, and assignments have the form <literal>VARIABLE=$'value'</literal>.
1156 This syntax is known to be supported by
1157 <citerefentry project='die-net'><refentrytitle>bash</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1158 <citerefentry project='die-net'><refentrytitle>zsh</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1159 <citerefentry project='die-net'><refentrytitle>ksh</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1160 and
1161 <citerefentry project='die-net'><refentrytitle>busybox</refentrytitle><manvolnum>1</manvolnum></citerefentry>'s
1162 <citerefentry project='die-net'><refentrytitle>ash</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1163 but not
1164 <citerefentry project='die-net'><refentrytitle>dash</refentrytitle><manvolnum>1</manvolnum></citerefentry>
1165 or
1166 <citerefentry project='die-net'><refentrytitle>fish</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
1167 </para>
8c8208cb
LP
1168 </listitem>
1169 </varlistentry>
27722f96 1170 <varlistentry>
e1fac8a6 1171 <term><command>set-environment <replaceable>VARIABLE=VALUE</replaceable>…</command></term>
27722f96
LN
1172
1173 <listitem>
0dc9fd56
ZJS
1174 <para>Set one or more systemd manager environment variables, as specified on the command
1175 line. This command will fail if variable names and values do not conform to the rules listed
1176 above.</para>
27722f96
LN
1177 </listitem>
1178 </varlistentry>
1179 <varlistentry>
e1fac8a6 1180 <term><command>unset-environment <replaceable>VARIABLE</replaceable>…</command></term>
27722f96
LN
1181
1182 <listitem>
e1fac8a6
ZJS
1183 <para>Unset one or more systemd manager environment
1184 variables. If only a variable name is specified, it will be
1185 removed regardless of its value. If a variable and a value
1186 are specified, the variable is only removed if it has the
1187 specified value.</para>
27722f96
LN
1188 </listitem>
1189 </varlistentry>
1190 <varlistentry>
e1fac8a6
ZJS
1191 <term>
1192 <command>import-environment</command>
32854f70 1193 <replaceable>VARIABLE…</replaceable>
e1fac8a6 1194 </term>
27722f96
LN
1195
1196 <listitem>
0dc9fd56 1197 <para>Import all, one or more environment variables set on the client into the systemd manager
82651d5b
ZJS
1198 environment block. If a list of environment variable names is passed, client-side values are then
1199 imported into the manager's environment block. If any names are not valid environment variable
1200 names or have invalid values according to the rules described above, an error is raised. If no
1201 arguments are passed, the entire environment block inherited by the <command>systemctl</command>
1202 process is imported. In this mode, any inherited invalid environment variables are quietly
1203 ignored.</para>
32854f70
ZJS
1204
1205 <para>Importing of the full inherited environment block (calling this command without any
1206 arguments) is deprecated. A shell will set dozens of variables which only make sense locally and
1207 are only meant for processes which are descendants of the shell. Such variables in the global
1208 environment block are confusing to other processes.</para>
27722f96
LN
1209 </listitem>
1210 </varlistentry>
e1fac8a6
ZJS
1211 </variablelist>
1212 </refsect2>
1213
1214 <refsect2>
38fcb7f7 1215 <title>Manager State Commands</title>
e1fac8a6
ZJS
1216
1217 <variablelist>
27722f96 1218 <varlistentry>
e1fac8a6 1219 <term><command>daemon-reload</command></term>
27722f96
LN
1220
1221 <listitem>
e1fac8a6
ZJS
1222 <para>Reload the systemd manager configuration. This will
1223 rerun all generators (see
1224 <citerefentry><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>),
1225 reload all unit files, and recreate the entire dependency
1226 tree. While the daemon is being reloaded, all sockets
1227 systemd listens on behalf of user configuration will stay
1228 accessible.</para>
33d2308c 1229
e1fac8a6
ZJS
1230 <para>This command should not be confused with the
1231 <command>reload</command> command.</para>
27722f96
LN
1232 </listitem>
1233 </varlistentry>
38fcb7f7 1234
e93c33d4 1235 <varlistentry>
e1fac8a6 1236 <term><command>daemon-reexec</command></term>
27722f96 1237
e93c33d4 1238 <listitem>
e1fac8a6
ZJS
1239 <para>Reexecute the systemd manager. This will serialize the
1240 manager state, reexecute the process and deserialize the
1241 state again. This command is of little use except for
1242 debugging and package upgrades. Sometimes, it might be
1243 helpful as a heavy-weight <command>daemon-reload</command>.
1244 While the daemon is being reexecuted, all sockets systemd listening
1245 on behalf of user configuration will stay accessible.
1246 </para>
e93c33d4
SL
1247 </listitem>
1248 </varlistentry>
38fcb7f7 1249
df957849 1250 <varlistentry id='log-level'>
38fcb7f7
ZJS
1251 <term><command>log-level</command> [<replaceable>LEVEL</replaceable>]</term>
1252
1253 <listitem><para>If no argument is given, print the current log level of the manager. If an
1254 optional argument <replaceable>LEVEL</replaceable> is provided, then the command changes the
1255 current log level of the manager to <replaceable>LEVEL</replaceable> (accepts the same values as
1256 <option>--log-level=</option> described in
1257 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>).
1258 </para></listitem>
1259 </varlistentry>
1260
1261 <varlistentry>
1262 <term><command>log-target</command> [<replaceable>TARGET</replaceable>]</term>
1263
1264 <listitem><para>If no argument is given, print the current log target of the manager. If an
1265 optional argument <replaceable>TARGET</replaceable> is provided, then the command changes the
1266 current log target of the manager to <replaceable>TARGET</replaceable> (accepts the same values as
1267 <option>--log-target=</option>, described in
1268 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>).
1269 </para></listitem>
1270 </varlistentry>
6ab86319
ZJS
1271
1272 <varlistentry>
1273 <term><command>service-watchdogs</command> [yes|no]</term>
1274
1275 <listitem><para>If no argument is given, print the current state of service runtime watchdogs of
1276 the manager. If an optional boolean argument is provided, then globally enables or disables the
1277 service runtime watchdogs (<option>WatchdogSec=</option>) and emergency actions (e.g.
1278 <option>OnFailure=</option> or <option>StartLimitAction=</option>); see
1279 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
1280 The hardware watchdog is not affected by this setting.</para></listitem>
1281 </varlistentry>
e1fac8a6
ZJS
1282 </variablelist>
1283 </refsect2>
27722f96 1284
e1fac8a6
ZJS
1285 <refsect2>
1286 <title>System Commands</title>
e9fd88f2 1287
e1fac8a6
ZJS
1288 <variablelist>
1289 <varlistentry>
1290 <term><command>is-system-running</command></term>
5b792edb 1291
e1fac8a6
ZJS
1292 <listitem>
1293 <para>Checks whether the system is operational. This
1294 returns success (exit code 0) when the system is fully up
1295 and running, specifically not in startup, shutdown or
1296 maintenance mode, and with no failed services. Failure is
1297 returned otherwise (exit code non-zero). In addition, the
1298 current state is printed in a short string to standard
1299 output, see the table below. Use <option>--quiet</option> to
1300 suppress this output.</para>
5b792edb 1301
e1fac8a6
ZJS
1302 <para>Use <option>--wait</option> to wait until the boot
1303 process is completed before printing the current state and
1304 returning the appropriate error status. If <option>--wait</option>
1305 is in use, states <varname>initializing</varname> or
1306 <varname>starting</varname> will not be reported, instead
1307 the command will block until a later state (such as
1308 <varname>running</varname> or <varname>degraded</varname>)
1309 is reached.</para>
5b792edb 1310
e1fac8a6
ZJS
1311 <table>
1312 <title><command>is-system-running</command> output</title>
1313 <tgroup cols='3'>
1314 <colspec colname='name'/>
1315 <colspec colname='description'/>
1316 <colspec colname='exit-code'/>
1317 <thead>
1318 <row>
1319 <entry>Name</entry>
1320 <entry>Description</entry>
1321 <entry>Exit Code</entry>
1322 </row>
1323 </thead>
1324 <tbody>
1325 <row>
1326 <entry><varname>initializing</varname></entry>
1327 <entry><para>Early bootup, before
1328 <filename>basic.target</filename> is reached
1329 or the <varname>maintenance</varname> state entered.
1330 </para></entry>
1331 <entry>&gt; 0</entry>
1332 </row>
1333 <row>
1334 <entry><varname>starting</varname></entry>
1335 <entry><para>Late bootup, before the job queue
1336 becomes idle for the first time, or one of the
1337 rescue targets are reached.</para></entry>
1338 <entry>&gt; 0</entry>
1339 </row>
1340 <row>
1341 <entry><varname>running</varname></entry>
1342 <entry><para>The system is fully
1343 operational.</para></entry>
1344 <entry>0</entry>
1345 </row>
1346 <row>
1347 <entry><varname>degraded</varname></entry>
1348 <entry><para>The system is operational but one or more
1349 units failed.</para></entry>
1350 <entry>&gt; 0</entry>
1351 </row>
1352 <row>
1353 <entry><varname>maintenance</varname></entry>
1354 <entry><para>The rescue or emergency target is
1355 active.</para></entry>
1356 <entry>&gt; 0</entry>
1357 </row>
1358 <row>
1359 <entry><varname>stopping</varname></entry>
1360 <entry><para>The manager is shutting
1361 down.</para></entry>
1362 <entry>&gt; 0</entry>
1363 </row>
1364 <row>
1365 <entry><varname>offline</varname></entry>
1366 <entry><para>The manager is not
1367 running. Specifically, this is the operational
1368 state if an incompatible program is running as
1369 system manager (PID 1).</para></entry>
1370 <entry>&gt; 0</entry>
1371 </row>
1372 <row>
1373 <entry><varname>unknown</varname></entry>
1374 <entry><para>The operational state could not be
1375 determined, due to lack of resources or another
1376 error cause.</para></entry>
1377 <entry>&gt; 0</entry>
1378 </row>
1379 </tbody>
1380 </tgroup>
1381 </table>
27722f96
LN
1382 </listitem>
1383 </varlistentry>
1384
1385 <varlistentry>
e1fac8a6 1386 <term><command>default</command></term>
27722f96
LN
1387
1388 <listitem>
e1fac8a6
ZJS
1389 <para>Enter default mode. This is equivalent to <command>systemctl isolate default.target</command>. This
1390 operation is blocking by default, use <option>--no-block</option> to request asynchronous behavior.</para>
27722f96
LN
1391 </listitem>
1392 </varlistentry>
1393
1394 <varlistentry>
e1fac8a6 1395 <term><command>rescue</command></term>
27722f96
LN
1396
1397 <listitem>
e1fac8a6
ZJS
1398 <para>Enter rescue mode. This is equivalent to <command>systemctl isolate rescue.target</command>. This
1399 operation is blocking by default, use <option>--no-block</option> to request asynchronous behavior.</para>
27722f96
LN
1400 </listitem>
1401 </varlistentry>
27722f96 1402 <varlistentry>
e1fac8a6 1403 <term><command>emergency</command></term>
27722f96
LN
1404
1405 <listitem>
e1fac8a6
ZJS
1406 <para>Enter emergency mode. This is equivalent to <command>systemctl isolate
1407 emergency.target</command>. This operation is blocking by default, use <option>--no-block</option> to
1408 request asynchronous behavior.</para>
27722f96
LN
1409 </listitem>
1410 </varlistentry>
27722f96 1411 <varlistentry>
e1fac8a6 1412 <term><command>halt</command></term>
27722f96
LN
1413
1414 <listitem>
e1fac8a6
ZJS
1415 <para>Shut down and halt the system. This is mostly equivalent to <command>systemctl start halt.target
1416 --job-mode=replace-irreversibly --no-block</command>, but also prints a wall message to all users. This command is
1417 asynchronous; it will return after the halt operation is enqueued, without waiting for it to complete. Note
1418 that this operation will simply halt the OS kernel after shutting down, leaving the hardware powered
1419 on. Use <command>systemctl poweroff</command> for powering off the system (see below).</para>
1420
1421 <para>If combined with <option>--force</option>, shutdown of all running services is skipped, however all
1422 processes are killed and all file systems are unmounted or mounted read-only, immediately followed by the
1423 system halt. If <option>--force</option> is specified twice, the operation is immediately executed without
1424 terminating any processes or unmounting any file systems. This may result in data loss. Note that when
1425 <option>--force</option> is specified twice the halt operation is executed by <command>systemctl</command>
1426 itself, and the system manager is not contacted. This means the command should succeed even when the system
1427 manager has crashed.</para>
27722f96
LN
1428 </listitem>
1429 </varlistentry>
27722f96 1430 <varlistentry>
e1fac8a6 1431 <term><command>poweroff</command></term>
27722f96
LN
1432
1433 <listitem>
e1fac8a6
ZJS
1434 <para>Shut down and power-off the system. This is mostly equivalent to <command>systemctl start
1435 poweroff.target --job-mode=replace-irreversibly --no-block</command>, but also prints a wall message to all
1436 users. This command is asynchronous; it will return after the power-off operation is enqueued, without
1437 waiting for it to complete.</para>
27722f96 1438
e1fac8a6
ZJS
1439 <para>If combined with <option>--force</option>, shutdown of all running services is skipped, however all
1440 processes are killed and all file systems are unmounted or mounted read-only, immediately followed by the
1441 powering off. If <option>--force</option> is specified twice, the operation is immediately executed without
1442 terminating any processes or unmounting any file systems. This may result in data loss. Note that when
1443 <option>--force</option> is specified twice the power-off operation is executed by
1444 <command>systemctl</command> itself, and the system manager is not contacted. This means the command should
1445 succeed even when the system manager has crashed.</para>
1446 </listitem>
1447 </varlistentry>
1448 <varlistentry>
dae710be 1449 <term><command>reboot</command></term>
27722f96 1450
e1fac8a6 1451 <listitem>
76c068b7
ZJS
1452 <para>Shut down and reboot the system.</para>
1453
1454 <para>This command mostly equivalent to <command>systemctl start reboot.target
1455 --job-mode=replace-irreversibly --no-block</command>, but also prints a wall message to all
1456 users. This command is asynchronous; it will return after the reboot operation is enqueued,
1457 without waiting for it to complete.</para>
3990961d 1458
e1fac8a6
ZJS
1459 <para>If combined with <option>--force</option>, shutdown of all running services is skipped, however all
1460 processes are killed and all file systems are unmounted or mounted read-only, immediately followed by the
1461 reboot. If <option>--force</option> is specified twice, the operation is immediately executed without
1462 terminating any processes or unmounting any file systems. This may result in data loss. Note that when
1463 <option>--force</option> is specified twice the reboot operation is executed by
1464 <command>systemctl</command> itself, and the system manager is not contacted. This means the command should
1465 succeed even when the system manager has crashed.</para>
3990961d 1466
dae710be 1467 <para>If the switch <option>--reboot-argument=</option> is given, it will be passed as the optional
e1fac8a6 1468 argument to the <citerefentry><refentrytitle>reboot</refentrytitle><manvolnum>2</manvolnum></citerefentry>
dae710be 1469 system call.</para>
76c068b7
ZJS
1470
1471 <para>Options <option>--boot-loader-entry=</option>, <option>--boot-loader-menu=</option>, and
1472 <option>--firmware-setup</option> can be used to select what to do <emphasis>after</emphasis> the
1473 reboot. See the descriptions of those options for details.</para>
27722f96
LN
1474 </listitem>
1475 </varlistentry>
1476
1477 <varlistentry>
e1fac8a6 1478 <term><command>kexec</command></term>
27722f96
LN
1479
1480 <listitem>
e1fac8a6
ZJS
1481 <para>Shut down and reboot the system via <command>kexec</command>. This is equivalent to
1482 <command>systemctl start kexec.target --job-mode=replace-irreversibly --no-block</command>. This command is
1483 asynchronous; it will return after the reboot operation is enqueued, without waiting for it to
1484 complete.</para>
3990961d 1485
e1fac8a6
ZJS
1486 <para>If combined with <option>--force</option>, shutdown of all running services is skipped, however all
1487 processes are killed and all file systems are unmounted or mounted read-only, immediately followed by the
1488 reboot.</para>
1489 </listitem>
1490 </varlistentry>
3990961d 1491
e1fac8a6
ZJS
1492 <varlistentry>
1493 <term><command>exit</command> <optional><replaceable>EXIT_CODE</replaceable></optional></term>
3990961d 1494
e1fac8a6
ZJS
1495 <listitem>
1496 <para>Ask the service manager to quit. This is only supported for user service managers (i.e. in
1497 conjunction with the <option>--user</option> option) or in containers and is equivalent to
1498 <command>poweroff</command> otherwise. This command is asynchronous; it will return after the exit
1499 operation is enqueued, without waiting for it to complete.</para>
27722f96 1500
e1fac8a6
ZJS
1501 <para>The service manager will exit with the specified exit code, if
1502 <replaceable>EXIT_CODE</replaceable> is passed.</para>
27722f96
LN
1503 </listitem>
1504 </varlistentry>
1505
b619ec8f 1506 <varlistentry>
e1fac8a6 1507 <term><command>switch-root</command> <replaceable>ROOT</replaceable> <optional><replaceable>INIT</replaceable></optional></term>
b619ec8f
LP
1508
1509 <listitem>
e1fac8a6
ZJS
1510 <para>Switches to a different root directory and executes a new system manager process below it. This is
1511 intended for usage in initial RAM disks ("initrd"), and will transition from the initrd's system manager
1512 process (a.k.a. "init" process) to the main system manager process which is loaded from the actual host
1513 volume. This call takes two arguments: the directory that is to become the new root directory, and the path
1514 to the new system manager binary below it to execute as PID 1. If the latter is omitted or the empty
1515 string, a systemd binary will automatically be searched for and used as init. If the system manager path is
1516 omitted, equal to the empty string or identical to the path to the systemd binary, the state of the
1517 initrd's system manager process is passed to the main system manager, which allows later introspection of
1518 the state of the services involved in the initrd boot phase.</para>
b619ec8f
LP
1519 </listitem>
1520 </varlistentry>
1521
1522 <varlistentry>
e1fac8a6 1523 <term><command>suspend</command></term>
b619ec8f
LP
1524
1525 <listitem>
e1fac8a6
ZJS
1526 <para>Suspend the system. This will trigger activation of the special target unit
1527 <filename>suspend.target</filename>. This command is asynchronous, and will return after the suspend
1528 operation is successfully enqueued. It will not wait for the suspend/resume cycle to complete.</para>
1529 </listitem>
1530 </varlistentry>
39207373 1531
e1fac8a6
ZJS
1532 <varlistentry>
1533 <term><command>hibernate</command></term>
b619ec8f 1534
e1fac8a6
ZJS
1535 <listitem>
1536 <para>Hibernate the system. This will trigger activation of the special target unit
1537 <filename>hibernate.target</filename>. This command is asynchronous, and will return after the hibernation
1538 operation is successfully enqueued. It will not wait for the hibernate/thaw cycle to complete.</para>
b619ec8f
LP
1539 </listitem>
1540 </varlistentry>
1541
1542 <varlistentry>
e1fac8a6 1543 <term><command>hybrid-sleep</command></term>
b619ec8f
LP
1544
1545 <listitem>
e1fac8a6
ZJS
1546 <para>Hibernate and suspend the system. This will trigger activation of the special target unit
1547 <filename>hybrid-sleep.target</filename>. This command is asynchronous, and will return after the hybrid
1548 sleep operation is successfully enqueued. It will not wait for the sleep/wake-up cycle to complete.</para>
b619ec8f
LP
1549 </listitem>
1550 </varlistentry>
1551
27722f96 1552 <varlistentry>
e1fac8a6 1553 <term><command>suspend-then-hibernate</command></term>
27722f96
LN
1554
1555 <listitem>
e1fac8a6
ZJS
1556 <para>Suspend the system and hibernate it after the delay specified in <filename>systemd-sleep.conf</filename>.
1557 This will trigger activation of the special target unit <filename>suspend-then-hibernate.target</filename>.
1558 This command is asynchronous, and will return after the hybrid sleep operation is successfully enqueued.
1559 It will not wait for the sleep/wake-up or hibernate/thaw cycle to complete.</para>
1560 </listitem>
1561 </varlistentry>
1562 </variablelist>
1563 </refsect2>
171754aa 1564
e1fac8a6
ZJS
1565 <refsect2>
1566 <title>Parameter Syntax</title>
171754aa 1567
e1fac8a6
ZJS
1568 <para>Unit commands listed above take either a single unit name (designated as <replaceable>UNIT</replaceable>),
1569 or multiple unit specifications (designated as <replaceable>PATTERN</replaceable>…). In the first case, the
1570 unit name with or without a suffix must be given. If the suffix is not specified (unit name is "abbreviated"),
1571 systemctl will append a suitable suffix, <literal>.service</literal> by default, and a type-specific suffix in
1572 case of commands which operate only on specific unit types. For example,
1573 <programlisting># systemctl start sshd</programlisting> and
1574 <programlisting># systemctl start sshd.service</programlisting>
1575 are equivalent, as are
1576 <programlisting># systemctl isolate default</programlisting>
1577 and
1578 <programlisting># systemctl isolate default.target</programlisting>
1579 Note that (absolute) paths to device nodes are automatically converted to device unit names, and other (absolute)
1580 paths to mount unit names.
1581 <programlisting># systemctl status /dev/sda
1582# systemctl status /home</programlisting>
1583 are equivalent to:
1584 <programlisting># systemctl status dev-sda.device
1585# systemctl status home.mount</programlisting>
1586 In the second case, shell-style globs will be matched against the primary names of all units currently in memory;
1587 literal unit names, with or without a suffix, will be treated as in the first case. This means that literal unit
1588 names always refer to exactly one unit, but globs may match zero units and this is not considered an
1589 error.</para>
171754aa 1590
e1fac8a6
ZJS
1591 <para>Glob patterns use
1592 <citerefentry project='man-pages'><refentrytitle>fnmatch</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
1593 so normal shell-style globbing rules are used, and
1594 <literal>*</literal>, <literal>?</literal>,
1595 <literal>[]</literal> may be used. See
1596 <citerefentry project='man-pages'><refentrytitle>glob</refentrytitle><manvolnum>7</manvolnum></citerefentry>
1597 for more details. The patterns are matched against the primary names of
1598 units currently in memory, and patterns which do not match anything
1599 are silently skipped. For example:
1600 <programlisting># systemctl stop sshd@*.service</programlisting>
1601 will stop all <filename>sshd@.service</filename> instances. Note that alias names of units, and units that aren't
1602 in memory are not considered for glob expansion.
1603 </para>
27722f96 1604
e1fac8a6
ZJS
1605 <para>For unit file commands, the specified <replaceable>UNIT</replaceable> should be the name of the unit file
1606 (possibly abbreviated, see above), or the absolute path to the unit file:
1607 <programlisting># systemctl enable foo.service</programlisting>
1608 or
1609 <programlisting># systemctl link /path/to/foo.service</programlisting>
1610 </para>
1611 </refsect2>
27722f96 1612
e1fac8a6 1613 </refsect1>
27722f96 1614
e1fac8a6
ZJS
1615 <refsect1>
1616 <title>Options</title>
27722f96 1617
e1fac8a6 1618 <para>The following options are understood:</para>
27722f96 1619
e1fac8a6
ZJS
1620 <variablelist>
1621 <varlistentry>
1622 <term><option>-t</option></term>
1623 <term><option>--type=</option></term>
27722f96 1624
e1fac8a6 1625 <listitem>
a6e33464
ZJS
1626 <para>The argument is a comma-separated list of unit types such as <option>service</option> and
1627 <option>socket</option>. When units are listed with <command>list-units</command>,
1628 <command>show</command>, or <command>status</command>, only units of the specified types will be
1629 shown. By default, units of all types are shown.</para>
344ca755 1630
a6e33464
ZJS
1631 <para>As a special case, if one of the arguments is <option>help</option>, a list of allowed values
1632 will be printed and the program will exit.</para>
e1fac8a6
ZJS
1633 </listitem>
1634 </varlistentry>
344ca755 1635
e1fac8a6
ZJS
1636 <varlistentry>
1637 <term><option>--state=</option></term>
344ca755 1638
e1fac8a6 1639 <listitem>
a6e33464
ZJS
1640 <para>The argument is a comma-separated list of unit LOAD, SUB, or ACTIVE states. When listing
1641 units with <command>list-units</command>, <command>show</command>, or <command>status</command>,
1642 show only those in the specified states. Use <option>--state=failed</option> or
1643 <option>--failed</option> to show only failed units.</para>
1644
1645 <para>As a special case, if one of the arguments is <option>help</option>, a list of allowed values
1646 will be printed and the program will exit.</para>
e1fac8a6
ZJS
1647 </listitem>
1648 </varlistentry>
27722f96 1649
e1fac8a6
ZJS
1650 <varlistentry>
1651 <term><option>-p</option></term>
1652 <term><option>--property=</option></term>
27722f96 1653
e1fac8a6
ZJS
1654 <listitem>
1655 <para>When showing unit/job/manager properties with the
1656 <command>show</command> command, limit display to properties
1657 specified in the argument. The argument should be a
1658 comma-separated list of property names, such as
1659 <literal>MainPID</literal>. Unless specified, all known
1660 properties are shown. If specified more than once, all
1661 properties with the specified names are shown. Shell
1662 completion is implemented for property names.</para>
7d4fb3b1 1663
e1fac8a6 1664 <para>For the manager itself,
c809e387
PN
1665 <command>systemctl show</command>
1666 will show all available properties, most of which are derived or closely match the options described in
e1fac8a6
ZJS
1667 <citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
1668 </para>
7d4fb3b1 1669
e1fac8a6
ZJS
1670 <para>Properties for units vary by unit type, so showing any
1671 unit (even a non-existent one) is a way to list properties
1672 pertaining to this type. Similarly, showing any job will list
1673 properties pertaining to all jobs. Properties for units are
1674 documented in
1675 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1676 and the pages for individual unit types
1677 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1678 <citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1679 etc.</para>
1680 </listitem>
1681 </varlistentry>
7d4fb3b1 1682
5292c240
ZJS
1683 <varlistentry>
1684 <term><option>-P</option></term>
1685
1686 <listitem>
1687 <para>Equivalent to <option>--value</option> <option>--property=</option>, i.e. shows the
1688 value of the property without the property name or <literal>=</literal>. Note that using
1689 <option>-P</option> once will also affect all properties listed with
1690 <option>-p</option>/<option>--property=</option>.</para>
1691 </listitem>
1692 </varlistentry>
1693
e1fac8a6
ZJS
1694 <varlistentry>
1695 <term><option>-a</option></term>
1696 <term><option>--all</option></term>
7d4fb3b1 1697
e1fac8a6
ZJS
1698 <listitem>
1699 <para>When listing units with <command>list-units</command>, also show inactive units and
1700 units which are following other units. When showing unit/job/manager properties, show all
1701 properties regardless whether they are set or not.</para>
7d4fb3b1 1702
e1fac8a6
ZJS
1703 <para>To list all units installed in the file system, use the
1704 <command>list-unit-files</command> command instead.</para>
39c38ce1 1705
e1fac8a6
ZJS
1706 <para>When listing units with <command>list-dependencies</command>, recursively show
1707 dependencies of all dependent units (by default only dependencies of target units are
1708 shown).</para>
7d4fb3b1 1709
e1fac8a6
ZJS
1710 <para>When used with <command>status</command>, show journal messages in full, even if they include
1711 unprintable characters or are very long. By default, fields with unprintable characters are
1712 abbreviated as "blob data". (Note that the pager may escape unprintable characters again.)</para>
1713 </listitem>
1714 </varlistentry>
7d4fb3b1 1715
e1fac8a6
ZJS
1716 <varlistentry>
1717 <term><option>-r</option></term>
1718 <term><option>--recursive</option></term>
7d4fb3b1 1719
e1fac8a6
ZJS
1720 <listitem>
1721 <para>When listing units, also show units of local
1722 containers. Units of local containers will be prefixed with
1723 the container name, separated by a single colon character
1724 (<literal>:</literal>).</para>
1725 </listitem>
1726 </varlistentry>
b619ec8f 1727
e1fac8a6
ZJS
1728 <varlistentry>
1729 <term><option>--reverse</option></term>
b619ec8f 1730
e1fac8a6
ZJS
1731 <listitem>
1732 <para>Show reverse dependencies between units with
1733 <command>list-dependencies</command>, i.e. follow
1734 dependencies of type <varname>WantedBy=</varname>,
1735 <varname>RequiredBy=</varname>,
1736 <varname>PartOf=</varname>, <varname>BoundBy=</varname>,
1737 instead of <varname>Wants=</varname> and similar.
1738 </para>
1739 </listitem>
1740 </varlistentry>
b619ec8f 1741
e1fac8a6
ZJS
1742 <varlistentry>
1743 <term><option>--after</option></term>
b619ec8f 1744
e1fac8a6
ZJS
1745 <listitem>
1746 <para>With <command>list-dependencies</command>, show the
1747 units that are ordered before the specified unit. In other
1748 words, recursively list units following the
1749 <varname>After=</varname> dependency.</para>
b619ec8f 1750
e1fac8a6
ZJS
1751 <para>Note that any <varname>After=</varname> dependency is
1752 automatically mirrored to create a
1753 <varname>Before=</varname> dependency. Temporal dependencies
1754 may be specified explicitly, but are also created implicitly
1755 for units which are <varname>WantedBy=</varname> targets
1756 (see
1757 <citerefentry><refentrytitle>systemd.target</refentrytitle><manvolnum>5</manvolnum></citerefentry>),
1758 and as a result of other directives (for example
1759 <varname>RequiresMountsFor=</varname>). Both explicitly
1760 and implicitly introduced dependencies are shown with
1761 <command>list-dependencies</command>.</para>
27722f96 1762
e1fac8a6
ZJS
1763 <para>When passed to the <command>list-jobs</command> command, for each printed job show which other jobs are
1764 waiting for it. May be combined with <option>--before</option> to show both the jobs waiting for each job as
1765 well as all jobs each job is waiting for.</para>
1766 </listitem>
1767 </varlistentry>
0d292f5e 1768
e1fac8a6
ZJS
1769 <varlistentry>
1770 <term><option>--before</option></term>
0d292f5e 1771
e1fac8a6
ZJS
1772 <listitem>
1773 <para>With <command>list-dependencies</command>, show the
1774 units that are ordered after the specified unit. In other
1775 words, recursively list units following the
1776 <varname>Before=</varname> dependency.</para>
0d292f5e 1777
e1fac8a6
ZJS
1778 <para>When passed to the <command>list-jobs</command> command, for each printed job show which other jobs it
1779 is waiting for. May be combined with <option>--after</option> to show both the jobs waiting for each job as
1780 well as all jobs each job is waiting for.</para>
1781 </listitem>
1782 </varlistentry>
27722f96 1783
a602a0b4
KK
1784 <varlistentry>
1785 <term><option>--with-dependencies</option></term>
1786
1787 <listitem>
1788 <para>When used with <command>status</command>,
1789 <command>cat</command>, <command>list-units</command>, and
1790 <command>list-unit-files</command>, those commands print all
1791 specified units and the dependencies of those units.</para>
1792
1793 <para>Options <option>--reverse</option>,
1794 <option>--after</option>, <option>--before</option>
1795 may be used to change what types of dependencies
1796 are shown.</para>
1797 </listitem>
1798 </varlistentry>
1799
e1fac8a6
ZJS
1800 <varlistentry>
1801 <term><option>-l</option></term>
1802 <term><option>--full</option></term>
27722f96 1803
e1fac8a6
ZJS
1804 <listitem>
1805 <para>Do not ellipsize unit names, process tree entries,
1806 journal output, or truncate unit descriptions in the output
1807 of <command>status</command>, <command>list-units</command>,
1808 <command>list-jobs</command>, and
1809 <command>list-timers</command>.</para>
1810 <para>Also, show installation targets in the output of
1811 <command>is-enabled</command>.</para>
1812 </listitem>
1813 </varlistentry>
82948f6c 1814
e1fac8a6
ZJS
1815 <varlistentry>
1816 <term><option>--value</option></term>
27722f96 1817
e1fac8a6 1818 <listitem>
5292c240
ZJS
1819 <para>When printing properties with <command>show</command>, only print the value, and skip the
1820 property name and <literal>=</literal>. Also see option <option>-P</option> above.</para>
e1fac8a6
ZJS
1821 </listitem>
1822 </varlistentry>
27722f96 1823
e1fac8a6
ZJS
1824 <varlistentry>
1825 <term><option>--show-types</option></term>
27722f96 1826
e1fac8a6
ZJS
1827 <listitem>
1828 <para>When showing sockets, show the type of the socket.</para>
1829 </listitem>
1830 </varlistentry>
27722f96 1831
e1fac8a6
ZJS
1832 <varlistentry>
1833 <term><option>--job-mode=</option></term>
27722f96 1834
e1fac8a6
ZJS
1835 <listitem>
1836 <para>When queuing a new job, this option controls how to deal with
1837 already queued jobs. It takes one of <literal>fail</literal>,
1838 <literal>replace</literal>,
1839 <literal>replace-irreversibly</literal>,
1840 <literal>isolate</literal>,
1841 <literal>ignore-dependencies</literal>,
132e0b53
KK
1842 <literal>ignore-requirements</literal>,
1843 <literal>flush</literal>, or
1844 <literal>triggering</literal>. Defaults to
e1fac8a6
ZJS
1845 <literal>replace</literal>, except when the
1846 <command>isolate</command> command is used which implies the
1847 <literal>isolate</literal> job mode.</para>
27722f96 1848
e1fac8a6
ZJS
1849 <para>If <literal>fail</literal> is specified and a requested
1850 operation conflicts with a pending job (more specifically:
1851 causes an already pending start job to be reversed into a stop
1852 job or vice versa), cause the operation to fail.</para>
ac3efa8a 1853
e1fac8a6
ZJS
1854 <para>If <literal>replace</literal> (the default) is
1855 specified, any conflicting pending job will be replaced, as
1856 necessary.</para>
27722f96 1857
e1fac8a6
ZJS
1858 <para>If <literal>replace-irreversibly</literal> is specified,
1859 operate like <literal>replace</literal>, but also mark the new
1860 jobs as irreversible. This prevents future conflicting
1861 transactions from replacing these jobs (or even being enqueued
1862 while the irreversible jobs are still pending). Irreversible
1863 jobs can still be cancelled using the <command>cancel</command>
1864 command. This job mode should be used on any transaction which
1865 pulls in <filename>shutdown.target</filename>.</para>
27722f96 1866
e1fac8a6
ZJS
1867 <para><literal>isolate</literal> is only valid for start
1868 operations and causes all other units to be stopped when the
1869 specified unit is started. This mode is always used when the
1870 <command>isolate</command> command is used.</para>
27722f96 1871
e1fac8a6
ZJS
1872 <para><literal>flush</literal> will cause all queued jobs to
1873 be canceled when the new job is enqueued.</para>
432d5965 1874
e1fac8a6
ZJS
1875 <para>If <literal>ignore-dependencies</literal> is specified,
1876 then all unit dependencies are ignored for this new job and
1877 the operation is executed immediately. If passed, no required
1878 units of the unit passed will be pulled in, and no ordering
1879 dependencies will be honored. This is mostly a debugging and
1880 rescue tool for the administrator and should not be used by
1881 applications.</para>
27722f96 1882
e1fac8a6
ZJS
1883 <para><literal>ignore-requirements</literal> is similar to
1884 <literal>ignore-dependencies</literal>, but only causes the
1885 requirement dependencies to be ignored, the ordering
1886 dependencies will still be honored.</para>
1887 </listitem>
27722f96 1888
132e0b53
KK
1889 <para><literal>triggering</literal> may only be used with
1890 <command>systemctl stop</command>. In this mode, the specified
1891 unit and any active units that trigger it are stopped. See the
1892 discussion of
1893 <varname>Triggers=</varname> in <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
1894 for more information about triggering units.</para>
1895
e1fac8a6 1896 </varlistentry>
27722f96 1897
e1fac8a6
ZJS
1898 <varlistentry>
1899 <term><option>-T</option></term>
1900 <term><option>--show-transaction</option></term>
99813a19 1901
e1fac8a6
ZJS
1902 <listitem>
1903 <para>When enqueuing a unit job (for example as effect of a <command>systemctl start</command>
1904 invocation or similar), show brief information about all jobs enqueued, covering both the requested
1905 job and any added because of unit dependencies. Note that the output will only include jobs
1906 immediately part of the transaction requested. It is possible that service start-up program code
1907 run as effect of the enqueued jobs might request further jobs to be pulled in. This means that
1908 completion of the listed jobs might ultimately entail more jobs than the listed ones.</para>
1909 </listitem>
1910 </varlistentry>
2de51fdc 1911
e1fac8a6
ZJS
1912 <varlistentry>
1913 <term><option>--fail</option></term>
adb6cd9b 1914
e1fac8a6
ZJS
1915 <listitem>
1916 <para>Shorthand for <option>--job-mode=</option>fail.</para>
1917 <para>When used with the <command>kill</command> command,
1918 if no units were killed, the operation results in an error.
1919 </para>
1920 </listitem>
1921 </varlistentry>
99813a19 1922
4327574f
FS
1923 <varlistentry>
1924 <term><option>--check-inhibitors=</option></term>
1925
1926 <listitem>
5b69a7c5
ZJS
1927 <para>When system shutdown or sleep state is requested, this option controls checking of inhibitor
1928 locks. It takes one of <literal>auto</literal>, <literal>yes</literal> or
4327574f 1929 <literal>no</literal>. Defaults to <literal>auto</literal>, which will behave like
5b69a7c5
ZJS
1930 <literal>yes</literal> for interactive invocations (i.e. from a TTY) and <literal>no</literal> for
1931 non-interactive invocations. <literal>yes</literal> lets the request respect inhibitor locks.
1932 <literal>no</literal> lets the request ignore inhibitor locks.</para>
1933
1934 <para>Applications can establish inhibitor locks to prevent certain important operations (such as
1935 CD burning) from being interrupted by system shutdown or sleep. Any user may take these locks and
1936 privileged users may override these locks. If any locks are taken, shutdown and sleep state
1937 requests will normally fail (unless privileged). However, if <literal>no</literal> is specified or
1938 <literal>auto</literal> is specified on a non-interactive requests, the operation will be
1939 attempted. If locks are present, the operation may require additional privileges.</para>
1940
1941 <para>Option <option>--force</option> provides another way to override inhibitors.</para>
4327574f
FS
1942 </listitem>
1943 </varlistentry>
1944
e1fac8a6
ZJS
1945 <varlistentry>
1946 <term><option>-i</option></term>
27722f96 1947
e1fac8a6 1948 <listitem>
4327574f 1949 <para>Shortcut for <option>--check-inhibitors=no</option>.</para>
e1fac8a6
ZJS
1950 </listitem>
1951 </varlistentry>
99813a19 1952
e1fac8a6
ZJS
1953 <varlistentry>
1954 <term><option>--dry-run</option></term>
27722f96 1955
e1fac8a6
ZJS
1956 <listitem>
1957 <para>Just print what would be done. Currently supported by verbs
1958 <command>halt</command>, <command>poweroff</command>, <command>reboot</command>,
1959 <command>kexec</command>, <command>suspend</command>, <command>hibernate</command>,
1960 <command>hybrid-sleep</command>, <command>suspend-then-hibernate</command>,
1961 <command>default</command>, <command>rescue</command>,
1962 <command>emergency</command>, and <command>exit</command>.</para>
1963 </listitem>
1964 </varlistentry>
27722f96 1965
e1fac8a6
ZJS
1966 <varlistentry>
1967 <term><option>-q</option></term>
1968 <term><option>--quiet</option></term>
27722f96 1969
e1fac8a6
ZJS
1970 <listitem>
1971 <para>Suppress printing of the results of various commands
1972 and also the hints about truncated log lines. This does not
1973 suppress output of commands for which the printed output is
1974 the only result (like <command>show</command>). Errors are
1975 always printed.</para>
1976 </listitem>
1977 </varlistentry>
6324a8a7 1978
e1fac8a6
ZJS
1979 <varlistentry>
1980 <term><option>--no-block</option></term>
27722f96 1981
e1fac8a6
ZJS
1982 <listitem>
1983 <para>Do not synchronously wait for the requested operation
1984 to finish. If this is not specified, the job will be
1985 verified, enqueued and <command>systemctl</command> will
1986 wait until the unit's start-up is completed. By passing this
1987 argument, it is only verified and enqueued. This option may not be
1988 combined with <option>--wait</option>.</para>
1989 </listitem>
1990 </varlistentry>
6324a8a7 1991
e1fac8a6
ZJS
1992 <varlistentry>
1993 <term><option>--wait</option></term>
1994
1995 <listitem>
1996 <para>Synchronously wait for started units to terminate again.
1997 This option may not be combined with <option>--no-block</option>.
1998 Note that this will wait forever if any given unit never terminates
1999 (by itself or by getting stopped explicitly); particularly services
2000 which use <literal>RemainAfterExit=yes</literal>.</para>
2001
2002 <para>When used with <command>is-system-running</command>, wait
2003 until the boot process is completed before returning.</para>
2004 </listitem>
2005 </varlistentry>
2006
2007 <xi:include href="user-system-options.xml" xpointer="user" />
2008 <xi:include href="user-system-options.xml" xpointer="system" />
2009
2010 <varlistentry>
2011 <term><option>--failed</option></term>
2012
2013 <listitem>
2014 <para>List units in failed state. This is equivalent to
2015 <option>--state=failed</option>.</para>
2016 </listitem>
2017 </varlistentry>
2018
2019 <varlistentry>
2020 <term><option>--no-wall</option></term>
2021
2022 <listitem>
2023 <para>Do not send wall message before halt, power-off and reboot.</para>
2024 </listitem>
2025 </varlistentry>
2026
2027 <varlistentry>
2028 <term><option>--global</option></term>
2029
2030 <listitem>
2031 <para>When used with <command>enable</command> and
2032 <command>disable</command>, operate on the global user
2033 configuration directory, thus enabling or disabling a unit
2034 file globally for all future logins of all users.</para>
2035 </listitem>
2036 </varlistentry>
2037
2038 <varlistentry>
2039 <term><option>--no-reload</option></term>
2040
2041 <listitem>
2042 <para>When used with <command>enable</command> and
2043 <command>disable</command>, do not implicitly reload daemon
2044 configuration after executing the changes.</para>
2045 </listitem>
2046 </varlistentry>
2047
2048 <varlistentry>
2049 <term><option>--no-ask-password</option></term>
2050
2051 <listitem>
2052 <para>When used with <command>start</command> and related
2053 commands, disables asking for passwords. Background services
2054 may require input of a password or passphrase string, for
2055 example to unlock system hard disks or cryptographic
2056 certificates. Unless this option is specified and the
2057 command is invoked from a terminal,
2058 <command>systemctl</command> will query the user on the
2059 terminal for the necessary secrets. Use this option to
2060 switch this behavior off. In this case, the password must be
2061 supplied by some other means (for example graphical password
2062 agents) or the service might fail. This also disables
2063 querying the user for authentication for privileged
2064 operations.</para>
2065 </listitem>
2066 </varlistentry>
2067
2068 <varlistentry>
2069 <term><option>--kill-who=</option></term>
2070
2071 <listitem>
2072 <para>When used with <command>kill</command>, choose which
2073 processes to send a signal to. Must be one of
2074 <option>main</option>, <option>control</option> or
2075 <option>all</option> to select whether to kill only the main
2076 process, the control process or all processes of the
2077 unit. The main process of the unit is the one that defines
2078 the life-time of it. A control process of a unit is one that
2079 is invoked by the manager to induce state changes of it. For
2080 example, all processes started due to the
2081 <varname>ExecStartPre=</varname>,
2082 <varname>ExecStop=</varname> or
2083 <varname>ExecReload=</varname> settings of service units are
2084 control processes. Note that there is only one control
2085 process per unit at a time, as only one state change is
2086 executed at a time. For services of type
2087 <varname>Type=forking</varname>, the initial process started
2088 by the manager for <varname>ExecStart=</varname> is a
2089 control process, while the process ultimately forked off by
2090 that one is then considered the main process of the unit (if
2091 it can be determined). This is different for service units
2092 of other types, where the process forked off by the manager
2093 for <varname>ExecStart=</varname> is always the main process
2094 itself. A service unit consists of zero or one main process,
2095 zero or one control process plus any number of additional
2096 processes. Not all unit types manage processes of these
2097 types however. For example, for mount units, control processes
2098 are defined (which are the invocations of
2099 <filename>&MOUNT_PATH;</filename> and
2100 <filename>&UMOUNT_PATH;</filename>), but no main process
2101 is defined. If omitted, defaults to
2102 <option>all</option>.</para>
2103 </listitem>
e1fac8a6
ZJS
2104 </varlistentry>
2105
86beb213 2106 <xi:include href="standard-options.xml" xpointer="signal" />
e1fac8a6
ZJS
2107
2108 <varlistentry>
2109 <term><option>--what=</option></term>
2110
2111 <listitem>
2112 <para>Select what type of per-unit resources to remove when the <command>clean</command> command is
2113 invoked, see below. Takes one of <constant>configuration</constant>, <constant>state</constant>,
2114 <constant>cache</constant>, <constant>logs</constant>, <constant>runtime</constant> to select the
2115 type of resource. This option may be specified more than once, in which case all specified resource
2116 types are removed. Also accepts the special value <constant>all</constant> as a shortcut for
11fcfc53 2117 specifying all five resource types. If this option is not specified defaults to the combination of
e1fac8a6
ZJS
2118 <constant>cache</constant> and <constant>runtime</constant>, i.e. the two kinds of resources that
2119 are generally considered to be redundant and can be reconstructed on next invocation.</para>
2120 </listitem>
2121 </varlistentry>
2122
2123 <varlistentry>
2124 <term><option>-f</option></term>
2125 <term><option>--force</option></term>
2126
2127 <listitem>
2128 <para>When used with <command>enable</command>, overwrite
2129 any existing conflicting symlinks.</para>
2130
2131 <para>When used with <command>edit</command>, create all of the
2132 specified units which do not already exist.</para>
2133
2134 <para>When used with <command>halt</command>, <command>poweroff</command>, <command>reboot</command> or
2135 <command>kexec</command>, execute the selected operation without shutting down all units. However, all
2136 processes will be killed forcibly and all file systems are unmounted or remounted read-only. This is hence a
2137 drastic but relatively safe option to request an immediate reboot. If <option>--force</option> is specified
2138 twice for these operations (with the exception of <command>kexec</command>), they will be executed
2139 immediately, without terminating any processes or unmounting any file systems. Warning: specifying
2140 <option>--force</option> twice with any of these operations might result in data loss. Note that when
2141 <option>--force</option> is specified twice the selected operation is executed by
2142 <command>systemctl</command> itself, and the system manager is not contacted. This means the command should
2143 succeed even when the system manager has crashed.</para>
2144 </listitem>
2145 </varlistentry>
27722f96 2146
e1fac8a6
ZJS
2147 <varlistentry>
2148 <term><option>--message=</option></term>
6324a8a7 2149
e1fac8a6
ZJS
2150 <listitem>
2151 <para>When used with <command>halt</command>, <command>poweroff</command> or <command>reboot</command>, set a
2152 short message explaining the reason for the operation. The message will be logged together with the default
2153 shutdown message.</para>
2154 </listitem>
2155 </varlistentry>
6324a8a7 2156
e1fac8a6
ZJS
2157 <varlistentry>
2158 <term><option>--now</option></term>
b619ec8f 2159
e1fac8a6
ZJS
2160 <listitem>
2161 <para>When used with <command>enable</command>, the units
2162 will also be started. When used with <command>disable</command> or
2163 <command>mask</command>, the units will also be stopped. The start
2164 or stop operation is only carried out when the respective enable or
2165 disable operation has been successful.</para>
2166 </listitem>
2167 </varlistentry>
27722f96 2168
e1fac8a6
ZJS
2169 <varlistentry>
2170 <term><option>--root=</option></term>
6324a8a7 2171
e1fac8a6
ZJS
2172 <listitem>
2173 <para>When used with
2174 <command>enable</command>/<command>disable</command>/<command>is-enabled</command>
2175 (and related commands), use the specified root path when looking for unit
2176 files. If this option is present, <command>systemctl</command> will operate on
2177 the file system directly, instead of communicating with the <command>systemd</command>
2178 daemon to carry out changes.</para>
2179 </listitem>
b619ec8f 2180
e1fac8a6 2181 </varlistentry>
27722f96 2182
e1fac8a6
ZJS
2183 <varlistentry>
2184 <term><option>--runtime</option></term>
6324a8a7 2185
e1fac8a6
ZJS
2186 <listitem>
2187 <para>When used with <command>enable</command>,
2188 <command>disable</command>, <command>edit</command>,
2189 (and related commands), make changes only temporarily, so
2190 that they are lost on the next reboot. This will have the
2191 effect that changes are not made in subdirectories of
3b121157 2192 <filename>/etc/</filename> but in <filename>/run/</filename>,
e1fac8a6
ZJS
2193 with identical immediate effects, however, since the latter
2194 is lost on reboot, the changes are lost too.</para>
27722f96 2195
e1fac8a6
ZJS
2196 <para>Similarly, when used with
2197 <command>set-property</command>, make changes only
2198 temporarily, so that they are lost on the next
2199 reboot.</para>
2200 </listitem>
2201 </varlistentry>
b619ec8f 2202
e1fac8a6
ZJS
2203 <varlistentry>
2204 <term><option>--preset-mode=</option></term>
b619ec8f 2205
e1fac8a6
ZJS
2206 <listitem>
2207 <para>Takes one of <literal>full</literal> (the default),
2208 <literal>enable-only</literal>,
2209 <literal>disable-only</literal>. When used with the
2210 <command>preset</command> or <command>preset-all</command>
2211 commands, controls whether units shall be disabled and
2212 enabled according to the preset rules, or only enabled, or
2213 only disabled.</para>
2214 </listitem>
2215 </varlistentry>
27722f96 2216
e1fac8a6
ZJS
2217 <varlistentry>
2218 <term><option>-n</option></term>
2219 <term><option>--lines=</option></term>
b619ec8f 2220
e1fac8a6 2221 <listitem>
e04eae5e
ZJS
2222 <para>When used with <command>status</command>, controls the number of journal lines to show,
2223 counting from the most recent ones. Takes a positive integer argument, or 0 to disable journal
2224 output. Defaults to 10.</para>
e1fac8a6
ZJS
2225 </listitem>
2226 </varlistentry>
27722f96 2227
e1fac8a6
ZJS
2228 <varlistentry>
2229 <term><option>-o</option></term>
2230 <term><option>--output=</option></term>
b619ec8f 2231
e1fac8a6
ZJS
2232 <listitem>
2233 <para>When used with <command>status</command>, controls the
2234 formatting of the journal entries that are shown. For the
2235 available choices, see
2236 <citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
2237 Defaults to <literal>short</literal>.</para>
2238 </listitem>
2239 </varlistentry>
27722f96 2240
e1fac8a6
ZJS
2241 <varlistentry>
2242 <term><option>--firmware-setup</option></term>
6cc2b882 2243
e1fac8a6 2244 <listitem>
e04eae5e
ZJS
2245 <para>When used with the <command>reboot</command> command, indicate to the system's firmware to
2246 reboot into the firmware setup interface. Note that this functionality is not available on all
2247 systems.</para>
e1fac8a6
ZJS
2248 </listitem>
2249 </varlistentry>
6cc2b882 2250
e1fac8a6 2251 <varlistentry>
76c068b7 2252 <term><option>--boot-loader-menu=<replaceable>timeout</replaceable></option></term>
4a6022f0 2253
e1fac8a6 2254 <listitem>
e04eae5e
ZJS
2255 <para>When used with the <command>reboot</command> command, indicate to the system's boot loader to
2256 show the boot loader menu on the following boot. Takes a time value as parameter — indicating the
2257 menu timeout. Pass zero in order to disable the menu timeout. Note that not all boot loaders
2258 support this functionality.</para>
e1fac8a6
ZJS
2259 </listitem>
2260 </varlistentry>
a7c0e5d7 2261
e1fac8a6 2262 <varlistentry>
76c068b7 2263 <term><option>--boot-loader-entry=<replaceable>ID</replaceable></option></term>
e3e0314b 2264
e1fac8a6 2265 <listitem>
e04eae5e
ZJS
2266 <para>When used with the <command>reboot</command> command, indicate to the system's boot loader to
2267 boot into a specific boot loader entry on the following boot. Takes a boot loader entry identifier
2268 as argument, or <literal>help</literal> in order to list available entries. Note that not all boot
2269 loaders support this functionality.</para>
e1fac8a6
ZJS
2270 </listitem>
2271 </varlistentry>
e3e0314b 2272
dae710be 2273 <varlistentry>
2274 <term><option>--reboot-argument=</option></term>
2275
2276 <listitem>
2277 <para>This switch is used with <command>reboot</command>. The value is architecture and firmware specific. As an example, <literal>recovery</literal>
2278 might be used to trigger system recovery, and <literal>fota</literal> might be used to trigger a
2279 <quote>firmware over the air</quote> update.</para>
2280 </listitem>
2281 </varlistentry>
2282
e1fac8a6
ZJS
2283 <varlistentry>
2284 <term><option>--plain</option></term>
a7c0e5d7 2285
e1fac8a6
ZJS
2286 <listitem>
2287 <para>When used with <command>list-dependencies</command>,
2288 <command>list-units</command> or <command>list-machines</command>,
2289 the output is printed as a list instead of a tree, and the bullet
2290 circles are omitted.</para>
2291 </listitem>
2292 </varlistentry>
46ad9c53
LB
2293
2294 <varlistentry>
2295 <term><option>--timestamp=</option></term>
2296
2297 <listitem>
d13f2617
ZJS
2298 <para>Change the format of printed timestamps. The following values may be used:
2299 </para>
2300
2301 <variablelist>
2302 <varlistentry>
2303 <term><option>pretty</option> (this is the default)</term>
2304 <listitem><para><literal>Day YYYY-MM-DD HH:MM:SS TZ</literal></para></listitem>
2305 </varlistentry>
2306 </variablelist>
2307
b58b4a9f
FS
2308 <variablelist>
2309 <varlistentry>
2310 <term><option>unix</option></term>
2311 <listitem><para><literal>@seconds-since-the-epoch</literal></para></listitem>
2312 </varlistentry>
2313 </variablelist>
2314
d13f2617
ZJS
2315 <variablelist>
2316 <varlistentry>
2317 <term><option>us</option></term>
2318 <term><option>µs</option></term>
2319 <listitem><para><literal>Day YYYY-MM-DD HH:MM:SS.UUUUUU TZ</literal></para></listitem>
2320 </varlistentry>
2321 </variablelist>
2322
2323 <variablelist>
2324 <varlistentry>
2325 <term><option>utc</option></term>
2326 <listitem><para><literal>Day YYYY-MM-DD HH:MM:SS UTC</literal></para></listitem>
2327 </varlistentry>
2328 </variablelist>
2329
2330 <variablelist>
2331 <varlistentry>
2332 <term><option>us+utc</option></term>
2333 <term><option>µs+utc</option></term>
2334 <listitem><para><literal>Day YYYY-MM-DD HH:MM:SS.UUUUUU UTC</literal></para></listitem>
2335 </varlistentry>
2336 </variablelist>
46ad9c53
LB
2337 </listitem>
2338 </varlistentry>
e1fac8a6 2339
5e8deb94
LB
2340 <varlistentry>
2341 <term><option>--mkdir</option></term>
2342
2343 <listitem><para>When used with <command>bind</command>, creates the destination file or directory before
2344 applying the bind mount. Note that even though the name of this option suggests that it is suitable only for
2345 directories, this option also creates the destination file node to mount over if the object to mount is not
2346 a directory, but a regular file, device node, socket or FIFO.</para></listitem>
2347 </varlistentry>
2348
c9615f73
ZJS
2349 <varlistentry>
2350 <term><option>--marked</option></term>
2351
2352 <listitem><para>Only allowed with <command>reload-or-restart</command>. Enqueues restart jobs for all
2353 units that have the <literal>needs-restart</literal> mark, and reload jobs for units that have the
2354 <literal>needs-reload</literal> mark. When a unit marked for reload does not support reload, restart
2355 will be queued. Those properties can be set using <command>set-property Marks</command>.</para>
2356
2357 <para>Unless <option>--no-block</option> is used, <command>systemctl</command> will wait for the
2358 queued jobs to finish.</para></listitem>
2359 </varlistentry>
2360
5e8deb94
LB
2361 <varlistentry>
2362 <term><option>--read-only</option></term>
2363
2364 <listitem><para>When used with <command>bind</command>, creates a read-only bind mount.</para></listitem>
2365 </varlistentry>
2366
e1fac8a6
ZJS
2367 <xi:include href="user-system-options.xml" xpointer="host" />
2368 <xi:include href="user-system-options.xml" xpointer="machine" />
2369
2370 <xi:include href="standard-options.xml" xpointer="no-pager" />
6906da26 2371 <xi:include href="standard-options.xml" xpointer="legend" />
e1fac8a6
ZJS
2372 <xi:include href="standard-options.xml" xpointer="help" />
2373 <xi:include href="standard-options.xml" xpointer="version" />
2374 </variablelist>
4a6022f0
ZJS
2375 </refsect1>
2376
2377 <refsect1>
2378 <title>Exit status</title>
2379
23a9ffb0
ZJS
2380 <para>On success, 0 is returned, a non-zero failure code otherwise.</para>
2381
2382 <para><command>systemctl</command> uses the return codes defined by LSB, as defined in
2383 <ulink url="http://refspecs.linuxbase.org/LSB_3.0.0/LSB-PDA/LSB-PDA/iniscrptact.html">LSB 3.0.0</ulink>.
2384 </para>
2385
2386 <table>
2387 <title>LSB return codes</title>
2388
2389 <tgroup cols='3'>
2390 <thead>
2391 <row>
2392 <entry>Value</entry>
2393 <entry>Description in LSB</entry>
2394 <entry>Use in systemd</entry>
2395 </row>
2396 </thead>
2397 <tbody>
2398 <row>
2399 <entry><constant>0</constant></entry>
2400 <entry>"program is running or service is OK"</entry>
2401 <entry>unit is active</entry>
2402 </row>
2403 <row>
2404 <entry><constant>1</constant></entry>
2405 <entry>"program is dead and <filename>/var/run</filename> pid file exists"</entry>
2406 <entry>unit <emphasis>not</emphasis> failed (used by <command>is-failed</command>)</entry>
2407 </row>
2408 <row>
2409 <entry><constant>2</constant></entry>
2410 <entry>"program is dead and <filename>/var/lock</filename> lock file exists"</entry>
2411 <entry>unused</entry>
2412 </row>
2413 <row>
2414 <entry><constant>3</constant></entry>
2415 <entry>"program is not running"</entry>
2416 <entry>unit is not active</entry>
2417 </row>
2418 <row>
2419 <entry><constant>4</constant></entry>
2420 <entry>"program or service status is unknown"</entry>
2421 <entry>no such unit</entry>
2422 </row>
2423 </tbody>
2424 </tgroup>
2425 </table>
2426
2427 <para>The mapping of LSB service states to systemd unit states is imperfect, so it is better to
2428 not rely on those return values but to look for specific unit states and substates instead.
2429 </para>
4a6022f0
ZJS
2430 </refsect1>
2431
7d4fb3b1
RC
2432 <refsect1>
2433 <title>Environment</title>
2434
2435 <variablelist class='environment-variables'>
2436 <varlistentry>
2437 <term><varname>$SYSTEMD_EDITOR</varname></term>
2438
2439 <listitem><para>Editor to use when editing units; overrides
2440 <varname>$EDITOR</varname> and <varname>$VISUAL</varname>. If neither
2441 <varname>$SYSTEMD_EDITOR</varname> nor <varname>$EDITOR</varname> nor
2442 <varname>$VISUAL</varname> are present or if it is set to an empty
2443 string or if their execution failed, systemctl will try to execute well
2444 known editors in this order:
9391a1c3 2445 <citerefentry project='die-net'><refentrytitle>editor</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
3ba3a79d
ZJS
2446 <citerefentry project='die-net'><refentrytitle>nano</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
2447 <citerefentry project='die-net'><refentrytitle>vim</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
2448 <citerefentry project='die-net'><refentrytitle>vi</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
7d4fb3b1
RC
2449 </para></listitem>
2450 </varlistentry>
2451 </variablelist>
5bd27a17
ZJS
2452 <xi:include href="common-variables.xml" xpointer="log-level"/>
2453 <xi:include href="common-variables.xml" xpointer="log-color"/>
2454 <xi:include href="common-variables.xml" xpointer="log-time"/>
2455 <xi:include href="common-variables.xml" xpointer="log-location"/>
2456 <xi:include href="common-variables.xml" xpointer="log-target"/>
4ef3ca34
ZJS
2457 <xi:include href="common-variables.xml" xpointer="pager"/>
2458 <xi:include href="common-variables.xml" xpointer="less"/>
2459 <xi:include href="common-variables.xml" xpointer="lesscharset"/>
2460 <xi:include href="common-variables.xml" xpointer="lesssecure"/>
2461 <xi:include href="common-variables.xml" xpointer="colors"/>
2462 <xi:include href="common-variables.xml" xpointer="urlify"/>
7d4fb3b1 2463 </refsect1>
4a6022f0
ZJS
2464
2465 <refsect1>
2466 <title>See Also</title>
2467 <para>
2468 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
4a6022f0
ZJS
2469 <citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
2470 <citerefentry><refentrytitle>loginctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
a03fe1a5 2471 <citerefentry><refentrytitle>machinectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
4a6022f0 2472 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
ee41f602 2473 <citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
4a6022f0 2474 <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
5aded369 2475 <citerefentry project='man-pages'><refentrytitle>wall</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
7d4fb3b1 2476 <citerefentry><refentrytitle>systemd.preset</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
432d5965 2477 <citerefentry><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
decde8cd 2478 <citerefentry project='man-pages'><refentrytitle>glob</refentrytitle><manvolnum>7</manvolnum></citerefentry>
4a6022f0
ZJS
2479 </para>
2480 </refsect1>
7874bcd6
LP
2481
2482</refentry>