]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd.xml
travis: use UBSan checks from OSS-Fuzz
[thirdparty/systemd.git] / man / systemd.xml
CommitLineData
514094f9 1<?xml version='1.0'?>
3a54a157 2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
12b42c76 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
0307f791 4<!-- SPDX-License-Identifier: LGPL-2.1+ -->
9e632bf7 5
dfdebb1b 6<refentry id="systemd"
798d3a52
ZJS
7 xmlns:xi="http://www.w3.org/2001/XInclude">
8
9 <refentryinfo>
10 <title>systemd</title>
11 <productname>systemd</productname>
798d3a52
ZJS
12 </refentryinfo>
13
14 <refmeta>
15 <refentrytitle>systemd</refentrytitle>
16 <manvolnum>1</manvolnum>
17 </refmeta>
18
19 <refnamediv>
20 <refname>systemd</refname>
21 <refname>init</refname>
22 <refpurpose>systemd system and service manager</refpurpose>
23 </refnamediv>
24
25 <refsynopsisdiv>
26 <cmdsynopsis>
b57b372a 27 <command>/usr/lib/systemd/systemd</command>
770c4777 28 <arg choice="opt" rep="repeat">OPTIONS</arg>
798d3a52
ZJS
29 </cmdsynopsis>
30 <cmdsynopsis>
770c4777
ZJS
31 <command>init</command>
32 <arg choice="opt" rep="repeat">OPTIONS</arg>
33 <arg choice="req">COMMAND</arg>
798d3a52
ZJS
34 </cmdsynopsis>
35 </refsynopsisdiv>
36
37 <refsect1>
38 <title>Description</title>
39
40 <para>systemd is a system and service manager for Linux operating
41 systems. When run as first process on boot (as PID 1), it acts as
42 init system that brings up and maintains userspace
43 services.</para>
44
45 <para>For compatibility with SysV, if systemd is called as
46 <command>init</command> and a PID that is not 1, it will execute
47 <command>telinit</command> and pass all command line arguments
48 unmodified. That means <command>init</command> and
49 <command>telinit</command> are mostly equivalent when invoked from
50 normal login sessions. See
51 <citerefentry><refentrytitle>telinit</refentrytitle><manvolnum>8</manvolnum></citerefentry>
52 for more information.</para>
53
54 <para>When run as a system instance, systemd interprets the
55 configuration file <filename>system.conf</filename> and the files
56 in <filename>system.conf.d</filename> directories; when run as a
57 user instance, systemd interprets the configuration file
58 <filename>user.conf</filename> and the files in
59 <filename>user.conf.d</filename> directories. See
60 <citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
61 for more information.</para>
62 </refsect1>
63
64 <refsect1>
65 <title>Options</title>
66
67 <para>The following options are understood:</para>
68
69 <variablelist>
70 <varlistentry>
71 <term><option>--test</option></term>
72
73 <listitem><para>Determine startup sequence, dump it and exit.
74 This is an option useful for debugging only.</para></listitem>
75 </varlistentry>
76 <varlistentry>
77 <term><option>--dump-configuration-items</option></term>
78
79 <listitem><para>Dump understood unit configuration items. This
80 outputs a terse but complete list of configuration items
81 understood in unit definition files.</para></listitem>
82 </varlistentry>
bbc1acab
YW
83 <varlistentry>
84 <term><option>--dump-bus-properties</option></term>
85
86 <listitem><para>Dump exposed bus properties. This outputs
87 a terse but complete list of properties exposed to dbus.
88 </para></listitem>
89 </varlistentry>
798d3a52
ZJS
90 <varlistentry>
91 <term><option>--unit=</option></term>
92
93 <listitem><para>Set default unit to activate on startup. If
94 not specified, defaults to
95 <filename>default.target</filename>.</para></listitem>
96 </varlistentry>
97 <varlistentry>
98 <term><option>--system</option></term>
99 <term><option>--user</option></term>
100
101 <listitem><para>For <option>--system</option>, tell systemd to
102 run a system instance, even if the process ID is not 1, i.e.
103 systemd is not run as init process. <option>--user</option>
104 does the opposite, running a user instance even if the process
b938cb90 105 ID is 1. Normally, it should not be necessary to pass these
798d3a52
ZJS
106 options, as systemd automatically detects the mode it is
107 started in. These options are hence of little use except for
108 debugging. Note that it is not supported booting and
109 maintaining a full system with systemd running in
110 <option>--system</option> mode, but PID not 1. In practice,
111 passing <option>--system</option> explicitly is only useful in
112 conjunction with <option>--test</option>.</para></listitem>
113 </varlistentry>
114 <varlistentry>
115 <term><option>--dump-core</option></term>
116
b9e74c39
LP
117 <listitem><para>Enable core dumping on crash. This switch has
118 no effect when running as user instance. This setting may also
119 be enabled during boot on the kernel command line via the
120 <varname>systemd.dump_core=</varname> option, see
121 below.</para></listitem>
798d3a52 122 </varlistentry>
b9e74c39
LP
123
124 <varlistentry>
125 <term><option>--crash-vt=</option><replaceable>VT</replaceable></term>
126
127 <listitem><para>Switch to a specific virtual console (VT) on
b938cb90 128 crash. Takes a positive integer in the range 1–63, or a
b9e74c39
LP
129 boolean argument. If an integer is passed, selects which VT to
130 switch to. If <constant>yes</constant>, the VT kernel messages
131 are written to is selected. If <constant>no</constant>, no VT
132 switch is attempted. This switch has no effect when running as
133 user instance. This setting may also be enabled during boot,
134 on the kernel command line via the
135 <varname>systemd.crash_vt=</varname> option, see
770c4777 136 <!-- FIXME: there is no crash_vt command line option? -->
b9e74c39
LP
137 below.</para></listitem>
138 </varlistentry>
139
798d3a52
ZJS
140 <varlistentry>
141 <term><option>--crash-shell</option></term>
142
b9e74c39
LP
143 <listitem><para>Run a shell on crash. This switch has no
144 effect when running as user instance. This setting may also be
145 enabled during boot, on the kernel command line via the
146 <varname>systemd.crash_shell=</varname> option, see
147 below.</para></listitem>
798d3a52 148 </varlistentry>
b9e74c39
LP
149
150 <varlistentry>
151 <term><option>--crash-reboot</option></term>
152
153 <listitem><para>Automatically reboot the system on crash. This
154 switch has no effect when running as user instance. This
155 setting may also be enabled during boot, on the kernel command
156 line via the <varname>systemd.crash_reboot=</varname> option,
157 see below.</para></listitem>
158 </varlistentry>
159
798d3a52
ZJS
160 <varlistentry>
161 <term><option>--confirm-spawn</option></term>
162
163 <listitem><para>Ask for confirmation when spawning processes.
164 This switch has no effect when run as user
165 instance.</para></listitem>
166 </varlistentry>
167 <varlistentry>
168 <term><option>--show-status=</option></term>
169
33fc1800
LP
170 <listitem><para>Takes a boolean argument or the special value <constant>auto</constant>. If on, terse unit
171 status information is shown on the console during boot-up and shutdown. If off, no such status information is
172 shown. If set to <constant>auto</constant> behavior is similar to off, except that it is automatically switched
173 to on, as soon as the first unit failure or significant boot delay is encountered. This switch has no effect
174 when invoked as user instance. If specified, overrides both the kernel command line setting
175 <varname>systemd.show_status=</varname> (see below) and the configuration file option
176 <option>ShowStatus=</option>, see
177 <citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
798d3a52
ZJS
178 </varlistentry>
179 <varlistentry>
180 <term><option>--log-target=</option></term>
181
182 <listitem><para>Set log target. Argument must be one of
183 <option>console</option>,
184 <option>journal</option>,
185 <option>kmsg</option>,
186 <option>journal-or-kmsg</option>,
187 <option>null</option>.</para></listitem>
188 </varlistentry>
189 <varlistentry>
190 <term><option>--log-level=</option></term>
191
192 <listitem><para>Set log level. As
193 argument this accepts a numerical log
194 level or the well-known <citerefentry project='man-pages'><refentrytitle>syslog</refentrytitle><manvolnum>3</manvolnum></citerefentry>
195 symbolic names (lowercase):
196 <option>emerg</option>,
197 <option>alert</option>,
198 <option>crit</option>,
199 <option>err</option>,
200 <option>warning</option>,
201 <option>notice</option>,
202 <option>info</option>,
203 <option>debug</option>.</para></listitem>
204 </varlistentry>
205 <varlistentry>
206 <term><option>--log-color=</option></term>
207
208 <listitem><para>Highlight important log messages. Argument is
209 a boolean value. If the argument is omitted, it defaults to
210 <option>true</option>.</para></listitem>
211 </varlistentry>
212 <varlistentry>
213 <term><option>--log-location=</option></term>
214
215 <listitem><para>Include code location in log messages. This is
216 mostly relevant for debugging purposes. Argument is a boolean
217 value. If the argument is omitted it defaults to
218 <option>true</option>.</para></listitem>
219 </varlistentry>
220 <varlistentry>
221 <term><option>--default-standard-output=</option></term>
222 <term><option>--default-standard-error=</option></term>
223
224 <listitem><para>Sets the default output or error output for
225 all services and sockets, respectively. That is, controls the
226 default for <option>StandardOutput=</option> and
227 <option>StandardError=</option> (see
228 <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>
229 for details). Takes one of
230 <option>inherit</option>,
231 <option>null</option>,
232 <option>tty</option>,
233 <option>journal</option>,
234 <option>journal+console</option>,
235 <option>syslog</option>,
236 <option>syslog+console</option>,
237 <option>kmsg</option>,
238 <option>kmsg+console</option>. If the
239 argument is omitted
240 <option>--default-standard-output=</option> defaults to
241 <option>journal</option> and
242 <option>--default-standard-error=</option> to
243 <option>inherit</option>.</para></listitem>
244 </varlistentry>
245
ee48dbd5
NC
246 <varlistentry>
247 <term><option>--machine-id=</option></term>
248
249 <listitem><para>Override the machine-id set on the hard drive,
b8e1d4d1 250 useful for network booting or for containers. May not be set
ee48dbd5
NC
251 to all zeros.</para></listitem>
252 </varlistentry>
253
2a12e32e
JK
254 <varlistentry>
255 <term><option>--service-watchdogs=</option></term>
256
257 <listitem><para>Globally enable/disable all service watchdog timeouts and emergency
258 actions. This setting may also be specified during boot, on the kernel
259 command line via the <varname>systemd.service_watchdogs=</varname>
260 option, see below. Defaults to enabled.</para></listitem>
261 </varlistentry>
262
798d3a52
ZJS
263 <xi:include href="standard-options.xml" xpointer="help" />
264 <xi:include href="standard-options.xml" xpointer="version" />
265 </variablelist>
266 </refsect1>
267
268 <refsect1>
269 <title>Concepts</title>
270
271 <para>systemd provides a dependency system between various
19f0cf65 272 entities called "units" of 11 different types. Units encapsulate
798d3a52
ZJS
273 various objects that are relevant for system boot-up and
274 maintenance. The majority of units are configured in unit
275 configuration files, whose syntax and basic set of options is
276 described in
277 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
278 however some are created automatically from other configuration,
279 dynamically from system state or programmatically at runtime.
1eecafb8 280 Units may be "active" (meaning started, bound, plugged in, …,
798d3a52 281 depending on the unit type, see below), or "inactive" (meaning
1eecafb8 282 stopped, unbound, unplugged, …), as well as in the process of
798d3a52
ZJS
283 being activated or deactivated, i.e. between the two states (these
284 states are called "activating", "deactivating"). A special
285 "failed" state is available as well, which is very similar to
286 "inactive" and is entered when the service failed in some way
bd2538b5
KBM
287 (process returned error code on exit, or crashed, an operation
288 timed out, or after too many restarts). If this state is entered,
289 the cause will be logged, for later reference. Note that the
290 various unit types may have a number of additional substates,
291 which are mapped to the five generalized unit states described
292 here.</para>
798d3a52
ZJS
293
294 <para>The following unit types are available:</para>
295
296 <orderedlist>
297 <listitem><para>Service units, which start and control daemons
b938cb90 298 and the processes they consist of. For details, see
798d3a52
ZJS
299 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
300
301 <listitem><para>Socket units, which encapsulate local IPC or
302 network sockets in the system, useful for socket-based
b938cb90 303 activation. For details about socket units, see
798d3a52
ZJS
304 <citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
305 for details on socket-based activation and other forms of
306 activation, see
307 <citerefentry><refentrytitle>daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para></listitem>
308
309 <listitem><para>Target units are useful to group units, or
310 provide well-known synchronization points during boot-up, see
311 <citerefentry><refentrytitle>systemd.target</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
312
313 <listitem><para>Device units expose kernel devices in systemd
314 and may be used to implement device-based activation. For
b938cb90 315 details, see
798d3a52
ZJS
316 <citerefentry><refentrytitle>systemd.device</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
317
318 <listitem><para>Mount units control mount points in the file
319 system, for details see
320 <citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
321
322 <listitem><para>Automount units provide automount capabilities,
323 for on-demand mounting of file systems as well as parallelized
324 boot-up. See
325 <citerefentry><refentrytitle>systemd.automount</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
798d3a52
ZJS
326
327 <listitem><para>Timer units are useful for triggering activation
328 of other units based on timers. You may find details in
329 <citerefentry><refentrytitle>systemd.timer</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
330
331 <listitem><para>Swap units are very similar to mount units and
332 encapsulate memory swap partitions or files of the operating
333 system. They are described in
334 <citerefentry><refentrytitle>systemd.swap</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
335
336 <listitem><para>Path units may be used to activate other
337 services when file system objects change or are modified. See
338 <citerefentry><refentrytitle>systemd.path</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
339
340 <listitem><para>Slice units may be used to group units which
341 manage system processes (such as service and scope units) in a
342 hierarchical tree for resource management purposes. See
343 <citerefentry><refentrytitle>systemd.slice</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
344
345 <listitem><para>Scope units are similar to service units, but
346 manage foreign processes instead of starting them as well. See
347 <citerefentry><refentrytitle>systemd.scope</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
348
349 </orderedlist>
350
351 <para>Units are named as their configuration files. Some units
352 have special semantics. A detailed list is available in
353 <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
354
355 <para>systemd knows various kinds of dependencies, including
356 positive and negative requirement dependencies (i.e.
357 <varname>Requires=</varname> and <varname>Conflicts=</varname>) as
358 well as ordering dependencies (<varname>After=</varname> and
359 <varname>Before=</varname>). NB: ordering and requirement
360 dependencies are orthogonal. If only a requirement dependency
361 exists between two units (e.g. <filename>foo.service</filename>
362 requires <filename>bar.service</filename>), but no ordering
363 dependency (e.g. <filename>foo.service</filename> after
364 <filename>bar.service</filename>) and both are requested to start,
365 they will be started in parallel. It is a common pattern that both
366 requirement and ordering dependencies are placed between two
367 units. Also note that the majority of dependencies are implicitly
368 created and maintained by systemd. In most cases, it should be
369 unnecessary to declare additional dependencies manually, however
370 it is possible to do this.</para>
371
372 <para>Application programs and units (via dependencies) may
373 request state changes of units. In systemd, these requests are
374 encapsulated as 'jobs' and maintained in a job queue. Jobs may
375 succeed or can fail, their execution is ordered based on the
376 ordering dependencies of the units they have been scheduled
377 for.</para>
378
379 <para>On boot systemd activates the target unit
380 <filename>default.target</filename> whose job is to activate
381 on-boot services and other on-boot units by pulling them in via
b938cb90 382 dependencies. Usually, the unit name is just an alias (symlink) for
798d3a52
ZJS
383 either <filename>graphical.target</filename> (for fully-featured
384 boots into the UI) or <filename>multi-user.target</filename> (for
385 limited console-only boots for use in embedded or server
386 environments, or similar; a subset of graphical.target). However,
387 it is at the discretion of the administrator to configure it as an
388 alias to any other target unit. See
389 <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>
390 for details about these target units.</para>
391
e5b62c9b
LP
392 <para>systemd only keeps a minimal set of units loaded into memory. Specifically, the only units that are kept
393 loaded into memory are those for which at least one of the following conditions is true:</para>
394
395 <orderedlist>
05d4db20 396 <listitem><para>It is in an active, activating, deactivating or failed state (i.e. in any unit state except for <literal>inactive</literal>)</para></listitem>
e5b62c9b
LP
397 <listitem><para>It has a job queued for it</para></listitem>
398 <listitem><para>It is a dependency of some sort of at least one other unit that is loaded into memory</para></listitem>
399 <listitem><para>It has some form of resource still allocated (e.g. a service unit that is inactive but for which
400 a process is still lingering that ignored the request to be terminated)</para></listitem>
401 <listitem><para>It has been pinned into memory programmatically by a D-Bus call</para></listitem>
402 </orderedlist>
403
404 <para>systemd will automatically and implicitly load units from disk — if they are not loaded yet — as soon as
405 operations are requested for them. Thus, in many respects, the fact whether a unit is loaded or not is invisible to
406 clients. Use <command>systemctl list-units --all</command> to comprehensively list all units currently loaded. Any
407 unit for which none of the conditions above applies is promptly unloaded. Note that when a unit is unloaded from
408 memory its accounting data is flushed out too. However, this data is generally not lost, as a journal log record
409 is generated declaring the consumed resources whenever a unit shuts down.</para>
410
798d3a52
ZJS
411 <para>Processes systemd spawns are placed in individual Linux
412 control groups named after the unit which they belong to in the
413 private systemd hierarchy. (see <ulink
3c887f97 414 url="https://www.kernel.org/doc/Documentation/cgroup-v1/cgroups.txt">cgroups.txt</ulink>
798d3a52
ZJS
415 for more information about control groups, or short "cgroups").
416 systemd uses this to effectively keep track of processes. Control
417 group information is maintained in the kernel, and is accessible
418 via the file system hierarchy (beneath
419 <filename>/sys/fs/cgroup/systemd/</filename>), or in tools such as
f4b8163b
EV
420 <citerefentry project='man-pages'><refentrytitle>systemd-cgls</refentrytitle><manvolnum>1</manvolnum></citerefentry>
421 or
798d3a52
ZJS
422 <citerefentry project='man-pages'><refentrytitle>ps</refentrytitle><manvolnum>1</manvolnum></citerefentry>
423 (<command>ps xawf -eo pid,user,cgroup,args</command> is
424 particularly useful to list all processes and the systemd units
425 they belong to.).</para>
426
427 <para>systemd is compatible with the SysV init system to a large
428 degree: SysV init scripts are supported and simply read as an
429 alternative (though limited) configuration file format. The SysV
430 <filename>/dev/initctl</filename> interface is provided, and
431 compatibility implementations of the various SysV client tools are
432 available. In addition to that, various established Unix
433 functionality such as <filename>/etc/fstab</filename> or the
434 <filename>utmp</filename> database are supported.</para>
435
436 <para>systemd has a minimal transaction system: if a unit is
437 requested to start up or shut down it will add it and all its
438 dependencies to a temporary transaction. Then, it will verify if
439 the transaction is consistent (i.e. whether the ordering of all
440 units is cycle-free). If it is not, systemd will try to fix it up,
441 and removes non-essential jobs from the transaction that might
442 remove the loop. Also, systemd tries to suppress non-essential
443 jobs in the transaction that would stop a running service. Finally
444 it is checked whether the jobs of the transaction contradict jobs
445 that have already been queued, and optionally the transaction is
446 aborted then. If all worked out and the transaction is consistent
447 and minimized in its impact it is merged with all already
448 outstanding jobs and added to the run queue. Effectively this
449 means that before executing a requested operation, systemd will
450 verify that it makes sense, fixing it if possible, and only
451 failing if it really cannot work.</para>
92e29d82 452
05d4db20
JK
453 <para>Note that transactions are generated independently of a unit's
454 state at runtime, hence, for example, if a start job is requested on an
455 already started unit, it will still generate a transaction and wake up any
456 inactive dependencies (and cause propagation of other jobs as per the
457 defined relationships). This is because the enqueued job is at the time of
458 execution compared to the target unit's state and is marked successful and
459 complete when both satisfy. However, this job also pulls in other
460 dependencies due to the defined relationships and thus leads to, in our
461 our example, start jobs for any of those inactive units getting queued as
462 well.</para>
798d3a52 463
f95b0be7 464 <para>systemd contains native implementations of various tasks
798d3a52
ZJS
465 that need to be executed as part of the boot process. For example,
466 it sets the hostname or configures the loopback network device. It
467 also sets up and mounts various API file systems, such as
468 <filename>/sys</filename> or <filename>/proc</filename>.</para>
469
470 <para>For more information about the concepts and
471 ideas behind systemd, please refer to the
472 <ulink url="http://0pointer.de/blog/projects/systemd.html">Original Design Document</ulink>.</para>
473
474 <para>Note that some but not all interfaces provided
475 by systemd are covered by the
28a0ad81 476 <ulink url="https://www.freedesktop.org/wiki/Software/systemd/InterfaceStabilityPromise">Interface
798d3a52
ZJS
477 Stability Promise</ulink>.</para>
478
479 <para>Units may be generated dynamically at boot and system
480 manager reload time, for example based on other configuration
b938cb90 481 files or parameters passed on the kernel command line. For details, see
b1c1a519 482 <citerefentry><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
798d3a52
ZJS
483
484 <para>Systems which invoke systemd in a container or initrd
485 environment should implement the
28a0ad81
DR
486 <ulink url="https://www.freedesktop.org/wiki/Software/systemd/ContainerInterface">Container Interface</ulink> or
487 <ulink url="https://www.freedesktop.org/wiki/Software/systemd/InitrdInterface">initrd Interface</ulink>
798d3a52
ZJS
488 specifications, respectively.</para>
489 </refsect1>
490
491 <refsect1>
492 <title>Directories</title>
493
494 <variablelist>
495 <varlistentry>
496 <term>System unit directories</term>
497
498 <listitem><para>The systemd system manager reads unit
499 configuration from various directories. Packages that want to
500 install unit files shall place them in the directory returned
501 by <command>pkg-config systemd
502 --variable=systemdsystemunitdir</command>. Other directories
503 checked are <filename>/usr/local/lib/systemd/system</filename>
12b42c76 504 and <filename>/usr/lib/systemd/system</filename>. User
798d3a52
ZJS
505 configuration always takes precedence. <command>pkg-config
506 systemd --variable=systemdsystemconfdir</command> returns the
507 path of the system configuration directory. Packages should
508 alter the content of these directories only with the
509 <command>enable</command> and <command>disable</command>
510 commands of the
511 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
512 tool. Full list of directories is provided in
513 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
514 </para></listitem>
515 </varlistentry>
516 </variablelist>
517
518 <variablelist>
519 <varlistentry>
520 <term>User unit directories</term>
521
522 <listitem><para>Similar rules apply for the user unit
523 directories. However, here the
524 <ulink url="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html">XDG
525 Base Directory specification</ulink> is followed to find
526 units. Applications should place their unit files in the
527 directory returned by <command>pkg-config systemd
528 --variable=systemduserunitdir</command>. Global configuration
529 is done in the directory reported by <command>pkg-config
530 systemd --variable=systemduserconfdir</command>. The
531 <command>enable</command> and <command>disable</command>
532 commands of the
533 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
534 tool can handle both global (i.e. for all users) and private
535 (for one user) enabling/disabling of units. Full list of
536 directories is provided in
537 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
538 </para></listitem>
539 </varlistentry>
540 </variablelist>
541
542 <variablelist>
543 <varlistentry>
544 <term>SysV init scripts directory</term>
545
546 <listitem><para>The location of the SysV init script directory
547 varies between distributions. If systemd cannot find a native
548 unit file for a requested service, it will look for a SysV
549 init script of the same name (with the
550 <filename>.service</filename> suffix
551 removed).</para></listitem>
552 </varlistentry>
553 </variablelist>
554
555 <variablelist>
556 <varlistentry>
557 <term>SysV runlevel link farm directory</term>
558
559 <listitem><para>The location of the SysV runlevel link farm
560 directory varies between distributions. systemd will take the
561 link farm into account when figuring out whether a service
562 shall be enabled. Note that a service unit with a native unit
563 configuration file cannot be started by activating it in the
564 SysV runlevel link farm.</para></listitem>
565 </varlistentry>
566 </variablelist>
567 </refsect1>
568
569 <refsect1>
570 <title>Signals</title>
571
572 <variablelist>
573 <varlistentry>
574 <term><constant>SIGTERM</constant></term>
575
576 <listitem><para>Upon receiving this signal the systemd system
577 manager serializes its state, reexecutes itself and
578 deserializes the saved state again. This is mostly equivalent
579 to <command>systemctl daemon-reexec</command>.</para>
580
581 <para>systemd user managers will start the
582 <filename>exit.target</filename> unit when this signal is
583 received. This is mostly equivalent to <command>systemctl
d60cb656
AJ
584 --user start exit.target
585 --job-mode=replace-irreversible</command>.</para></listitem>
798d3a52
ZJS
586 </varlistentry>
587
588 <varlistentry>
589 <term><constant>SIGINT</constant></term>
590
84afbbcf
ZJS
591 <listitem><para>Upon receiving this signal the systemd system manager will start the
592 <filename>ctrl-alt-del.target</filename> unit. This is mostly equivalent to
593 <command>systemctl start ctrl-alt-del.target --job-mode=replace-irreversible</command>. If
594 this signal is received more than 7 times per 2s, an immediate reboot is triggered. Note
595 that pressing
596 <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>Del</keycap></keycombo> on the
597 console will trigger this signal. Hence, if a reboot is hanging, pressing
598 <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>Del</keycap></keycombo> more than
599 7 times in 2 seconds is a relatively safe way to trigger an immediate reboot.</para>
798d3a52
ZJS
600
601 <para>systemd user managers treat this signal the same way as
602 <constant>SIGTERM</constant>.</para></listitem>
603 </varlistentry>
604
605 <varlistentry>
606 <term><constant>SIGWINCH</constant></term>
607
608 <listitem><para>When this signal is received the systemd
609 system manager will start the
610 <filename>kbrequest.target</filename> unit. This is mostly
611 equivalent to <command>systemctl start
612 kbrequest.target</command>.</para>
613
614 <para>This signal is ignored by systemd user
615 managers.</para></listitem>
616 </varlistentry>
617
618 <varlistentry>
619 <term><constant>SIGPWR</constant></term>
620
621 <listitem><para>When this signal is received the systemd
622 manager will start the <filename>sigpwr.target</filename>
623 unit. This is mostly equivalent to <command>systemctl start
624 sigpwr.target</command>.</para></listitem>
625 </varlistentry>
626
627 <varlistentry>
628 <term><constant>SIGUSR1</constant></term>
629
630 <listitem><para>When this signal is received the systemd
631 manager will try to reconnect to the D-Bus
632 bus.</para></listitem>
633 </varlistentry>
634
635 <varlistentry>
636 <term><constant>SIGUSR2</constant></term>
637
638 <listitem><para>When this signal is received the systemd
b938cb90 639 manager will log its complete state in human-readable form.
798d3a52
ZJS
640 The data logged is the same as printed by
641 <command>systemd-analyze dump</command>.</para></listitem>
642 </varlistentry>
643
644 <varlistentry>
645 <term><constant>SIGHUP</constant></term>
646
647 <listitem><para>Reloads the complete daemon configuration.
648 This is mostly equivalent to <command>systemctl
649 daemon-reload</command>.</para></listitem>
650 </varlistentry>
651
652 <varlistentry>
653 <term><constant>SIGRTMIN+0</constant></term>
654
655 <listitem><para>Enters default mode, starts the
656 <filename>default.target</filename> unit. This is mostly
d60cb656 657 equivalent to <command>systemctl isolate
798d3a52
ZJS
658 default.target</command>.</para></listitem>
659 </varlistentry>
660
661 <varlistentry>
662 <term><constant>SIGRTMIN+1</constant></term>
663
664 <listitem><para>Enters rescue mode, starts the
665 <filename>rescue.target</filename> unit. This is mostly
666 equivalent to <command>systemctl isolate
667 rescue.target</command>.</para></listitem>
668 </varlistentry>
669
670 <varlistentry>
671 <term><constant>SIGRTMIN+2</constant></term>
672
673 <listitem><para>Enters emergency mode, starts the
674 <filename>emergency.service</filename> unit. This is mostly
675 equivalent to <command>systemctl isolate
676 emergency.service</command>.</para></listitem>
677 </varlistentry>
678
679 <varlistentry>
680 <term><constant>SIGRTMIN+3</constant></term>
681
682 <listitem><para>Halts the machine, starts the
683 <filename>halt.target</filename> unit. This is mostly
d60cb656
AJ
684 equivalent to <command>systemctl start halt.target
685 --job-mode=replace-irreversible</command>.</para>
686 </listitem>
798d3a52
ZJS
687 </varlistentry>
688
689 <varlistentry>
690 <term><constant>SIGRTMIN+4</constant></term>
691
692 <listitem><para>Powers off the machine, starts the
693 <filename>poweroff.target</filename> unit. This is mostly
d60cb656
AJ
694 equivalent to <command>systemctl start poweroff.target
695 --job-mode=replace-irreversible</command>.</para>
696 </listitem>
798d3a52
ZJS
697 </varlistentry>
698
699 <varlistentry>
700 <term><constant>SIGRTMIN+5</constant></term>
701
702 <listitem><para>Reboots the machine, starts the
703 <filename>reboot.target</filename> unit. This is mostly
d60cb656
AJ
704 equivalent to <command>systemctl start reboot.target
705 --job-mode=replace-irreversible</command>.</para>
706 </listitem>
798d3a52
ZJS
707 </varlistentry>
708
709 <varlistentry>
710 <term><constant>SIGRTMIN+6</constant></term>
711
712 <listitem><para>Reboots the machine via kexec, starts the
713 <filename>kexec.target</filename> unit. This is mostly
d60cb656
AJ
714 equivalent to <command>systemctl start kexec.target
715 --job-mode=replace-irreversible</command>.</para>
716 </listitem>
798d3a52
ZJS
717 </varlistentry>
718
719 <varlistentry>
720 <term><constant>SIGRTMIN+13</constant></term>
721
722 <listitem><para>Immediately halts the machine.</para></listitem>
723 </varlistentry>
724
725 <varlistentry>
726 <term><constant>SIGRTMIN+14</constant></term>
727
728 <listitem><para>Immediately powers off the machine.</para></listitem>
729 </varlistentry>
730
731 <varlistentry>
732 <term><constant>SIGRTMIN+15</constant></term>
733
734 <listitem><para>Immediately reboots the machine.</para></listitem>
735 </varlistentry>
736
737 <varlistentry>
738 <term><constant>SIGRTMIN+16</constant></term>
739
740 <listitem><para>Immediately reboots the machine with kexec.</para></listitem>
741 </varlistentry>
742
743 <varlistentry>
744 <term><constant>SIGRTMIN+20</constant></term>
745
746 <listitem><para>Enables display of status messages on the
747 console, as controlled via
748 <varname>systemd.show_status=1</varname> on the kernel command
749 line.</para></listitem>
750 </varlistentry>
751
752 <varlistentry>
753 <term><constant>SIGRTMIN+21</constant></term>
754
755 <listitem><para>Disables display of
756 status messages on the console, as
757 controlled via
758 <varname>systemd.show_status=0</varname>
759 on the kernel command
760 line.</para></listitem>
761 </varlistentry>
762
763 <varlistentry>
764 <term><constant>SIGRTMIN+22</constant></term>
a6ecbf83
FB
765
766 <listitem><para>Sets the service manager's log level to <literal>debug</literal>, in a fashion equivalent to
767 <varname>systemd.log_level=debug</varname> on the kernel command line.</para></listitem>
768 </varlistentry>
769
770 <varlistentry>
798d3a52
ZJS
771 <term><constant>SIGRTMIN+23</constant></term>
772
a6ecbf83
FB
773 <listitem><para>Restores the log level to its configured value. The configured value is derived from – in order
774 of priority – the value specified with <varname>systemd.log-level=</varname> on the kernel command line, or the
775 value specified with <option>LogLevel=</option> in the configuration file, or the built-in default of
776 <literal>info</literal>.</para></listitem>
798d3a52
ZJS
777 </varlistentry>
778
779 <varlistentry>
780 <term><constant>SIGRTMIN+24</constant></term>
781
782 <listitem><para>Immediately exits the manager (only available
783 for --user instances).</para></listitem>
784 </varlistentry>
785
786 <varlistentry>
787 <term><constant>SIGRTMIN+26</constant></term>
bda7d78b
FB
788
789 <listitem><para>Restores the log target to its configured value. The configured value is derived from – in
790 order of priority – the value specified with <varname>systemd.log-target=</varname> on the kernel command line,
791 or the value specified with <option>LogTarget=</option> in the configuration file, or the built-in
792 default.</para></listitem>
793 </varlistentry>
794
795 <varlistentry>
798d3a52
ZJS
796 <term><constant>SIGRTMIN+27</constant></term>
797 <term><constant>SIGRTMIN+28</constant></term>
798
bda7d78b
FB
799 <listitem><para>Sets the log target to <literal>console</literal> on <constant>SIGRTMIN+27</constant> (or
800 <literal>kmsg</literal> on <constant>SIGRTMIN+28</constant>), in a fashion equivalent to
801 <varname>systemd.log_target=console</varname> (or <varname>systemd.log_target=kmsg</varname> on
802 <constant>SIGRTMIN+28</constant>) on the kernel command line.</para></listitem>
798d3a52
ZJS
803 </varlistentry>
804 </variablelist>
805 </refsect1>
806
807 <refsect1>
808 <title>Environment</title>
809
810 <variablelist class='environment-variables'>
811 <varlistentry>
812 <term><varname>$SYSTEMD_LOG_LEVEL</varname></term>
813 <listitem><para>systemd reads the log level from this
814 environment variable. This can be overridden with
815 <option>--log-level=</option>.</para></listitem>
816 </varlistentry>
817
818 <varlistentry>
819 <term><varname>$SYSTEMD_LOG_TARGET</varname></term>
820 <listitem><para>systemd reads the log target from this
821 environment variable. This can be overridden with
822 <option>--log-target=</option>.</para></listitem>
823 </varlistentry>
824
825 <varlistentry>
826 <term><varname>$SYSTEMD_LOG_COLOR</varname></term>
827 <listitem><para>Controls whether systemd highlights important
828 log messages. This can be overridden with
829 <option>--log-color=</option>.</para></listitem>
830 </varlistentry>
831
832 <varlistentry>
833 <term><varname>$SYSTEMD_LOG_LOCATION</varname></term>
834 <listitem><para>Controls whether systemd prints the code
835 location along with log messages. This can be overridden with
836 <option>--log-location=</option>.</para></listitem>
837 </varlistentry>
838
839 <varlistentry>
840 <term><varname>$XDG_CONFIG_HOME</varname></term>
841 <term><varname>$XDG_CONFIG_DIRS</varname></term>
842 <term><varname>$XDG_DATA_HOME</varname></term>
843 <term><varname>$XDG_DATA_DIRS</varname></term>
844
845 <listitem><para>The systemd user manager uses these variables
846 in accordance to the <ulink
847 url="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html">XDG
848 Base Directory specification</ulink> to find its
849 configuration.</para></listitem>
850 </varlistentry>
851
852 <varlistentry>
853 <term><varname>$SYSTEMD_UNIT_PATH</varname></term>
854
855 <listitem><para>Controls where systemd looks for unit
856 files.</para></listitem>
857 </varlistentry>
858
859 <varlistentry>
860 <term><varname>$SYSTEMD_SYSVINIT_PATH</varname></term>
861
862 <listitem><para>Controls where systemd looks for SysV init
863 scripts.</para></listitem>
864 </varlistentry>
865
866 <varlistentry>
867 <term><varname>$SYSTEMD_SYSVRCND_PATH</varname></term>
868
869 <listitem><para>Controls where systemd looks for SysV init
870 script runlevel link farms.</para></listitem>
871 </varlistentry>
872
40c9fe4c
JS
873 <varlistentry>
874 <term><varname>$SYSTEMD_COLORS</varname></term>
875
acf553b0
ZJS
876 <listitem><para>The value must be a boolean. Controls whether colorized output should be
877 generated. This can be specified to override the decision that <command>systemd</command>
878 makes based on <varname>$TERM</varname> and what the console is connected to.</para>
879 </listitem>
40c9fe4c
JS
880 </varlistentry>
881
23b27b39
LP
882 <varlistentry>
883 <term><varname>$SYSTEMD_URLIFY</varname></term>
884
885 <listitem><para>The value must be a boolean. Controls whether clickable links should be generated in the output
886 for terminal emulators supporting this. This can be specified to override the decision that
887 <command>systemd</command> makes based on <varname>$TERM</varname> and other conditions.</para>
888 </listitem>
889 </varlistentry>
890
798d3a52
ZJS
891 <varlistentry>
892 <term><varname>$LISTEN_PID</varname></term>
893 <term><varname>$LISTEN_FDS</varname></term>
8dd4c05b 894 <term><varname>$LISTEN_FDNAMES</varname></term>
798d3a52
ZJS
895
896 <listitem><para>Set by systemd for supervised processes during
897 socket-based activation. See
898 <citerefentry><refentrytitle>sd_listen_fds</refentrytitle><manvolnum>3</manvolnum></citerefentry>
acf553b0 899 for more information.</para></listitem>
798d3a52
ZJS
900 </varlistentry>
901
902 <varlistentry>
903 <term><varname>$NOTIFY_SOCKET</varname></term>
904
905 <listitem><para>Set by systemd for supervised processes for
906 status and start-up completion notification. See
907 <citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>
acf553b0 908 for more information.</para></listitem>
798d3a52
ZJS
909 </varlistentry>
910 </variablelist>
8ce202fa
LP
911
912 <para>For further environment variables understood by systemd and its various components, see <ulink
913 url="https://systemd.io/ENVIRONMENT">Known Environment Variables</ulink>.</para>
798d3a52
ZJS
914 </refsect1>
915
916 <refsect1>
917 <title>Kernel Command Line</title>
918
919 <para>When run as system instance systemd parses a number of
920 kernel command line arguments<footnote><para>If run inside a Linux
921 container these arguments may be passed as command line arguments
922 to systemd itself, next to any of the command line options listed
923 in the Options section above. If run outside of Linux containers,
924 these arguments are parsed from <filename>/proc/cmdline</filename>
925 instead.</para></footnote>:</para>
926
927 <variablelist class='kernel-commandline-options'>
928 <varlistentry>
929 <term><varname>systemd.unit=</varname></term>
930 <term><varname>rd.systemd.unit=</varname></term>
931
932 <listitem><para>Overrides the unit to activate on boot.
933 Defaults to <filename>default.target</filename>. This may be
934 used to temporarily boot into a different boot unit, for
935 example <filename>rescue.target</filename> or
936 <filename>emergency.service</filename>. See
937 <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>
938 for details about these units. The option prefixed with
939 <literal>rd.</literal> is honored only in the initial RAM disk
940 (initrd), while the one that is not prefixed only in the main
941 system.</para></listitem>
942 </varlistentry>
943
944 <varlistentry>
770c4777 945 <term><varname>systemd.dump_core</varname></term>
798d3a52 946
770c4777
ZJS
947 <listitem><para>Takes a boolean argument or enables the option if specified
948 without an argument. If enabled, the systemd manager (PID 1) dumps core when
949 it crashes. Otherwise, no core dump is created. Defaults to enabled.</para>
950 </listitem>
b9e74c39
LP
951 </varlistentry>
952
953 <varlistentry>
770c4777 954 <term><varname>systemd.crash_chvt</varname></term>
b9e74c39 955
770c4777
ZJS
956 <listitem><para>Takes a positive integer, or a boolean argument. Can be also
957 specified without an argument, with the same effect as a positive boolean. If
958 a positive integer (in the range 1–63) is specified, the system manager (PID
959 1) will activate the specified virtual terminal (VT) when it
960 crashes. Defaults to disabled, meaning that no such switch is attempted. If
961 set to enabled, the VT the kernel messages are written to is selected.
962 </para></listitem>
798d3a52
ZJS
963 </varlistentry>
964
965 <varlistentry>
770c4777 966 <term><varname>systemd.crash_shell</varname></term>
798d3a52 967
770c4777
ZJS
968 <listitem><para>Takes a boolean argument or enables the option if specified
969 without an argument. If enabled, the system manager (PID 1) spawns a shell
970 when it crashes, after a 10s delay. Otherwise, no shell is spawned. Defaults
971 to disabled, for security reasons, as the shell is not protected by password
798d3a52
ZJS
972 authentication.</para></listitem>
973 </varlistentry>
974
975 <varlistentry>
770c4777 976 <term><varname>systemd.crash_reboot</varname></term>
798d3a52 977
770c4777
ZJS
978 <listitem><para>Takes a boolean argument or enables the option if specified
979 without an argument. If enabled, the system manager (PID 1) will reboot the
980 machine automatically when it crashes, after a 10s delay. Otherwise, the
981 system will hang indefinitely. Defaults to disabled, in order to avoid a
982 reboot loop. If combined with <varname>systemd.crash_shell</varname>, the
4cf0b03b 983 system is rebooted after the shell exits.</para></listitem>
798d3a52
ZJS
984 </varlistentry>
985
986 <varlistentry>
770c4777 987 <term><varname>systemd.confirm_spawn</varname></term>
798d3a52 988
770c4777
ZJS
989 <listitem><para>Takes a boolean argument or a path to the virtual console
990 where the confirmation messages should be emitted. Can be also specified
991 without an argument, with the same effect as a positive boolean. If enabled,
992 the system manager (PID 1) asks for confirmation when spawning processes
993 using <option>/dev/console</option>. If a path or a console name (such as
994 <literal>ttyS0</literal>) is provided, the virtual console pointed to by this
995 path or described by the give name will be used instead. Defaults to disabled.
996 </para></listitem>
798d3a52
ZJS
997 </varlistentry>
998
2a12e32e
JK
999 <varlistentry>
1000 <term><varname>systemd.service_watchdogs=</varname></term>
1001
1002 <listitem><para>Takes a boolean argument. If disabled, all service runtime
1003 watchdogs (<option>WatchdogSec=</option>) and emergency actions (e.g.
1004 <option>OnFailure=</option> or <option>StartLimitAction=</option>) are
1005 ignored by the system manager (PID 1); see
1006 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
1007 Defaults to enabled, i.e. watchdogs and failure actions are processed
1008 normally. The hardware watchdog is not affected by this
1009 option.</para></listitem>
1010 </varlistentry>
1011
798d3a52 1012 <varlistentry>
770c4777 1013 <term><varname>systemd.show_status</varname></term>
798d3a52 1014
770c4777
ZJS
1015 <listitem><para>Takes a boolean argument or the constant
1016 <constant>auto</constant>. Can be also specified without an argument, with
1017 the same effect as a positive boolean. If enabled, the systemd manager (PID
1018 1) shows terse service status updates on the console during bootup.
1019 <constant>auto</constant> behaves like <option>false</option> until a unit
1020 fails or there is a significant delay in boot. Defaults to enabled, unless
1021 <option>quiet</option> is passed as kernel command line option, in which case
1022 it defaults to <constant>auto</constant>. If specified overrides the system
1023 manager configuration file option <option>ShowStatus=</option>, see
1024 <citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
1025 However, the process command line option <option>--show-status=</option>
1026 takes precedence over both this kernel command line option and the
1027 configuration file option.</para></listitem>
798d3a52
ZJS
1028 </varlistentry>
1029
1030 <varlistentry>
1031 <term><varname>systemd.log_target=</varname></term>
1032 <term><varname>systemd.log_level=</varname></term>
798d3a52 1033 <term><varname>systemd.log_location=</varname></term>
770c4777 1034 <term><varname>systemd.log_color</varname></term>
798d3a52 1035
770c4777
ZJS
1036 <listitem><para>Controls log output, with the same effect as the
1037 <varname>$SYSTEMD_LOG_TARGET</varname>,
798d3a52 1038 <varname>$SYSTEMD_LOG_LEVEL</varname>,
770c4777
ZJS
1039 <varname>$SYSTEMD_LOG_LOCATION</varname>,
1040 <varname>$SYSTEMD_LOG_COLOR</varname> environment variables described above.
1041 <varname>systemd.log_color</varname> can be specified without an argument,
1042 with the same effect as a positive boolean.</para></listitem>
798d3a52
ZJS
1043 </varlistentry>
1044
1045 <varlistentry>
1046 <term><varname>systemd.default_standard_output=</varname></term>
1047 <term><varname>systemd.default_standard_error=</varname></term>
1048 <listitem><para>Controls default standard output and error
1049 output for services, with the same effect as the
1050 <option>--default-standard-output=</option> and
1051 <option>--default-standard-error=</option> command line
1052 arguments described above, respectively.</para></listitem>
1053 </varlistentry>
1054
1055 <varlistentry>
1056 <term><varname>systemd.setenv=</varname></term>
1057
1058 <listitem><para>Takes a string argument in the form
1059 VARIABLE=VALUE. May be used to set default environment
1060 variables to add to forked child processes. May be used more
1061 than once to set multiple variables.</para></listitem>
1062 </varlistentry>
1063
ee48dbd5
NC
1064 <varlistentry>
1065 <term><varname>systemd.machine_id=</varname></term>
1066
1067 <listitem><para>Takes a 32 character hex value to be
1068 used for setting the machine-id. Intended mostly for
1069 network booting where the same machine-id is desired
1070 for every boot.</para></listitem>
1071 </varlistentry>
1072
ee075513
ZJS
1073 <varlistentry>
1074 <term><varname>systemd.unified_cgroup_hierarchy</varname></term>
1075
1076 <listitem><para>When specified without an argument or with a true argument,
1077 enables the usage of
1078 <ulink url="https://www.kernel.org/doc/Documentation/cgroup-v2.txt">unified cgroup hierarchy</ulink>
1079 (a.k.a. cgroups-v2). When specified with a false argument, fall back to
1080 hybrid or full legacy cgroup hierarchy.</para>
1081
1082 <para>If this option is not specified, the default behaviour is determined
0fad72fa 1083 during compilation (the <option>-Ddefault-hierarchy=</option> meson
ee075513
ZJS
1084 option). If the kernel does not support unified cgroup hierarchy, the legacy
1085 hierarchy will be used even if this option is specified.</para>
1086 </listitem>
1087 </varlistentry>
1088
1089 <varlistentry>
1090 <term><varname>systemd.legacy_systemd_cgroup_controller</varname></term>
1091
1092 <listitem><para>Takes effect if the full unified cgroup hierarchy is not used
1093 (see previous option). When specified without an argument or with a true
1094 argument, disables the use of "hybrid" cgroup hierarchy (i.e. a cgroups-v2
1095 tree used for systemd, and
1096 <ulink url="https://www.kernel.org/doc/Documentation/cgroup-v1/">legacy
1097 cgroup hierarchy</ulink>, a.k.a. cgroups-v1, for other controllers), and
1098 forces a full "legacy" mode. When specified with a false argument, enables
1099 the use of "hybrid" hierarchy.</para>
1100
1101 <para>If this option is not specified, the default behaviour is determined
0fad72fa 1102 during compilation (the <option>-Ddefault-hierarchy=</option> meson
ee075513
ZJS
1103 option). If the kernel does not support unified cgroup hierarchy, the legacy
1104 hierarchy will be used even if this option is specified.</para>
1105 </listitem>
1106 </varlistentry>
1107
798d3a52
ZJS
1108 <varlistentry>
1109 <term><varname>quiet</varname></term>
1110
1111 <listitem><para>Turn off status output at boot, much like
964c4eda 1112 <varname>systemd.show_status=no</varname> would. Note that
798d3a52
ZJS
1113 this option is also read by the kernel itself and disables
1114 kernel log output. Passing this option hence turns off the
1115 usual output from both the system manager and the kernel.
1116 </para></listitem>
1117 </varlistentry>
1118
1119 <varlistentry>
1120 <term><varname>debug</varname></term>
1121
1122 <listitem><para>Turn on debugging output. This is equivalent
1123 to <varname>systemd.log_level=debug</varname>. Note that this
1124 option is also read by the kernel itself and enables kernel
1125 debug output. Passing this option hence turns on the debug
1126 output from both the system manager and the
1127 kernel.</para></listitem>
1128 </varlistentry>
1129
1130 <varlistentry>
1131 <term><varname>emergency</varname></term>
dcd61450 1132 <term><varname>rd.emergency</varname></term>
798d3a52
ZJS
1133 <term><varname>-b</varname></term>
1134
1135 <listitem><para>Boot into emergency mode. This is equivalent
dcd61450
IS
1136 to <varname>systemd.unit=emergency.target</varname> or
1137 <varname>rd.systemd.unit=emergency.target</varname>, respectively, and
1138 provided for compatibility reasons and to be easier to type.</para></listitem>
798d3a52
ZJS
1139 </varlistentry>
1140
1141 <varlistentry>
1142 <term><varname>rescue</varname></term>
dcd61450 1143 <term><varname>rd.rescue</varname></term>
798d3a52
ZJS
1144 <term><varname>single</varname></term>
1145 <term><varname>s</varname></term>
1146 <term><varname>S</varname></term>
1147 <term><varname>1</varname></term>
1148
1149 <listitem><para>Boot into rescue mode. This is equivalent to
dcd61450
IS
1150 <varname>systemd.unit=rescue.target</varname> or
1151 <varname>rd.systemd.unit=rescue.target</varname>, respectively, and
1152 provided for compatibility reasons and to be easier to type.</para></listitem>
798d3a52
ZJS
1153 </varlistentry>
1154
1155 <varlistentry>
1156 <term><varname>2</varname></term>
1157 <term><varname>3</varname></term>
1158 <term><varname>4</varname></term>
1159 <term><varname>5</varname></term>
1160
1161 <listitem><para>Boot into the specified legacy SysV runlevel.
1162 These are equivalent to
1163 <varname>systemd.unit=runlevel2.target</varname>,
1164 <varname>systemd.unit=runlevel3.target</varname>,
1165 <varname>systemd.unit=runlevel4.target</varname>, and
1166 <varname>systemd.unit=runlevel5.target</varname>,
1167 respectively, and provided for compatibility reasons and to be
1168 easier to type.</para></listitem>
1169 </varlistentry>
1170
1171 <varlistentry>
1172 <term><varname>locale.LANG=</varname></term>
1173 <term><varname>locale.LANGUAGE=</varname></term>
1174 <term><varname>locale.LC_CTYPE=</varname></term>
1175 <term><varname>locale.LC_NUMERIC=</varname></term>
1176 <term><varname>locale.LC_TIME=</varname></term>
1177 <term><varname>locale.LC_COLLATE=</varname></term>
1178 <term><varname>locale.LC_MONETARY=</varname></term>
1179 <term><varname>locale.LC_MESSAGES=</varname></term>
1180 <term><varname>locale.LC_PAPER=</varname></term>
1181 <term><varname>locale.LC_NAME=</varname></term>
1182 <term><varname>locale.LC_ADDRESS=</varname></term>
1183 <term><varname>locale.LC_TELEPHONE=</varname></term>
1184 <term><varname>locale.LC_MEASUREMENT=</varname></term>
1185 <term><varname>locale.LC_IDENTIFICATION=</varname></term>
1186
1187 <listitem><para>Set the system locale to use. This overrides
1188 the settings in <filename>/etc/locale.conf</filename>. For
b938cb90 1189 more information, see
3ba3a79d 1190 <citerefentry project='man-pages'><refentrytitle>locale.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
798d3a52 1191 and
3ba3a79d 1192 <citerefentry project='man-pages'><refentrytitle>locale</refentrytitle><manvolnum>7</manvolnum></citerefentry>.
798d3a52
ZJS
1193 </para></listitem>
1194 </varlistentry>
1195 </variablelist>
1196
1197 <para>For other kernel command line parameters understood by
1198 components of the core OS, please refer to
1199 <citerefentry><refentrytitle>kernel-command-line</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
1200 </refsect1>
1201
1202 <refsect1>
1203 <title>Sockets and FIFOs</title>
1204
1205 <variablelist>
1206 <varlistentry>
1207 <term><filename>/run/systemd/notify</filename></term>
1208
1209 <listitem><para>Daemon status notification socket. This is an
1210 <constant>AF_UNIX</constant> datagram socket and is used to
1211 implement the daemon notification logic as implemented by
1212 <citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para></listitem>
1213
1214 </varlistentry>
1215
798d3a52
ZJS
1216 <varlistentry>
1217 <term><filename>/run/systemd/private</filename></term>
1218
1219 <listitem><para>Used internally as communication channel
1220 between
1221 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
1222 and the systemd process. This is an
1223 <constant>AF_UNIX</constant> stream socket. This interface is
1224 private to systemd and should not be used in external
1225 projects.</para></listitem>
1226 </varlistentry>
1227
1228 <varlistentry>
1229 <term><filename>/dev/initctl</filename></term>
1230
1231 <listitem><para>Limited compatibility support for the SysV
1232 client interface, as implemented by the
1233 <filename>systemd-initctl.service</filename> unit. This is a
1234 named pipe in the file system. This interface is obsolete and
1235 should not be used in new applications.</para></listitem>
1236 </varlistentry>
1237 </variablelist>
1238 </refsect1>
1239
1240 <refsect1>
1241 <title>See Also</title>
1242 <para>
28a0ad81 1243 The <ulink url="https://www.freedesktop.org/wiki/Software/systemd/">systemd Homepage</ulink>,
798d3a52 1244 <citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
3ba3a79d 1245 <citerefentry project='man-pages'><refentrytitle>locale.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
798d3a52
ZJS
1246 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1247 <citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1248 <citerefentry><refentrytitle>systemd-notify</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1249 <citerefentry><refentrytitle>daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
1250 <citerefentry><refentrytitle>sd-daemon</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
1251 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1252 <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1253 <citerefentry project='die-net'><refentrytitle>pkg-config</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1254 <citerefentry><refentrytitle>kernel-command-line</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
1255 <citerefentry project='man-pages'><refentrytitle>bootup</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
1256 <citerefentry><refentrytitle>systemd.directives</refentrytitle><manvolnum>7</manvolnum></citerefentry>
1257 </para>
1258 </refsect1>
9e632bf7
LP
1259
1260</refentry>