source: chapter08/systemd.xml@ 464fd243

12.2 12.2-rc1 multilib trunk xry111/arm64 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.2 xry111/multilib
Last change on this file since 464fd243 was 464fd243, checked in by Xi Ruoyao <xry111@…>, 3 months ago

udev & systemd: Emphasis "API headers" for linux compatibility

Or people will ask "why no-break-userspace rule does not apply?"

  • Property mode set to 100644
File size: 34.3 KB
RevLine 
[7152faa]1<?xml version="1.0" encoding="UTF-8"?>
[f896e21c]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
[35a5259]8<sect1 id="ch-system-systemd" role="wrap" revision="systemd">
[cba2d4e]9 <?dbhtml filename="systemd.html"?>
[f896e21c]10
11 <sect1info condition="script">
[cba2d4e]12 <productname>systemd</productname>
[f896e21c]13 <productnumber>&systemd-version;</productnumber>
14 <address>&systemd-url;</address>
15 </sect1info>
16
[cba2d4e]17 <title>Systemd-&systemd-version;</title>
[f896e21c]18
[cba2d4e]19 <indexterm zone="ch-system-systemd">
[1118b17]20 <primary sortas="a-systemd">systemd</primary>
[f896e21c]21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
[1118b17]26 <para>The systemd package contains programs for controlling the startup,
[cba2d4e]27 running, and shutdown of the system.</para>
[f896e21c]28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
[fb386e0]34 <seg>&systemd-fin-sbu;</seg>
35 <seg>&systemd-fin-du;</seg>
[f896e21c]36 </seglistitem>
37 </segmentedlist>
38 </sect2>
39
40 <sect2 role="installation">
[1118b17]41 <title>Installation of systemd</title>
[70dcd88]42
[87119fd]43 <para>Remove two unneeded groups,
44 <systemitem class="groupname">render</systemitem> and
45 <systemitem class="groupname">sgx</systemitem>, from the default udev
[896e77e]46 rules:</para>
47
[1f201845]48 <screen><userinput remap="pre">sed -i -e 's/GROUP="render"/GROUP="video"/' \
[96fa6f2]49 -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in</userinput></screen>
[896e77e]50
[464fd243]51 <para>Next, fix compatibility with API headers from linux-6.9 and later:</para>
[6acfe2e]52
53 <screen><userinput remap="pre">sed -i '/DEVMEM_MAGIC 0/{n;n;a \
54/* cb12fd8e0dabb9a1c8aef55a6a41e2c255fcdf4b (6.8) */
55#ifndef PID_FS_MAGIC \
56#define PID_FS_MAGIC 0x50494446 \
57#endif
58}' src/basic/missing_magic.h
59
60sed -i '/OVERLAYFS_SUPER_MAGIC/a \
61pidfs, {PID_FS_MAGIC}' src/basic/filesystems-gperf.gperf</userinput></screen>
62
[8b4fb12]63 <!-- https://github.com/systemd/systemd/pull/30549 -->
64 <para>Now fix a security vulnerability in the DNSSEC verification of
[fe99d50]65 <command>systemd-resolved</command> and a bug breaking running
66 <command>systemd-analyze verify</command> on an instantiated systemd
67 unit:</para>
[8b4fb12]68
[fe99d50]69<screen><userinput remap='pre'>patch -Np1 -i ../&systemd-upstream-patch;</userinput></screen>
[8b4fb12]70
[1118b17]71 <para>Prepare systemd for compilation:</para>
72
[c556e59]73<screen><userinput remap="configure">mkdir -p build
[04b2165]74cd build
[fc199db]75
[740ee46]76meson setup \
77 --prefix=/usr \
[c349b4a]78 --buildtype=release \
[0f703541]79 -Ddefault-dnssec=no \
80 -Dfirstboot=false \
81 -Dinstall-tests=false \
82 -Dldconfig=false \
83 -Dsysusers=false \
84 -Drpmmacrosdir=no \
[9afac64]85 -Dhomed=disabled \
[0f703541]86 -Duserdb=false \
[33c9cb0]87 -Dman=disabled \
[22009fb]88 -Dmode=release \
[77e340bc]89 -Dpamconfdir=no \
[dfde664]90 -Ddev-kvm-mode=0660 \
[3864d23]91 -Dnobody-group=nogroup \
[73805590]92 -Dsysupdate=disabled \
[9afac64]93 -Dukify=disabled \
[1446892]94 -Ddocdir=/usr/share/doc/systemd-&systemd-version; \
[fc199db]95 ..</userinput></screen>
[cba2d4e]96
97 <variablelist>
[81ed05f]98 <title>The meaning of the meson options:</title>
[cba2d4e]99
[06cdaed]100 <varlistentry>
101 <term><parameter>--buildtype=release</parameter></term>
102 <listitem>
103 <para>This switch overrides the default buildtype
[69854d2a]104 (<quote>debug</quote>), which produces unoptimized
[06cdaed]105 binaries.</para>
106 </listitem>
107 </varlistentry>
108
[cba2d4e]109 <varlistentry>
[81ed05f]110 <term><parameter>-Ddefault-dnssec=no</parameter></term>
[cba2d4e]111 <listitem>
[81ed05f]112 <para>This switch turns off the experimental DNSSEC support.</para>
[cba2d4e]113 </listitem>
114 </varlistentry>
115
116 <varlistentry>
[81ed05f]117 <term><parameter>-Dfirstboot=false</parameter></term>
[cba2d4e]118 <listitem>
[81ed05f]119 <para>This switch prevents installation of systemd
120 services responsible for setting up the system for
[69854d2a]121 the first time. These are not useful in LFS, because
[81ed05f]122 everything is done manually.</para>
[cba2d4e]123 </listitem>
124 </varlistentry>
125
[e88a471b]126 <varlistentry>
127 <term><parameter>-Dinstall-tests=false</parameter></term>
128 <listitem>
129 <para>This switch prevents installation of the compiled tests.</para>
130 </listitem>
131 </varlistentry>
132
[cba2d4e]133 <varlistentry>
[0d84af1]134 <term><parameter>-Dldconfig=false</parameter></term>
[cba2d4e]135 <listitem>
[0d84af1]136 <para>This switch prevents installation of a systemd unit that runs
[69854d2a]137 <command>ldconfig</command> at boot; this is not useful for source
138 distributions such as LFS, and makes the boot time longer. Remove
139 this option to enable running <command>ldconfig</command> at boot.</para>
[cba2d4e]140 </listitem>
141 </varlistentry>
142
[1118b17]143 <varlistentry>
[81ed05f]144 <term><parameter>-Dsysusers=false</parameter></term>
[1118b17]145 <listitem>
146 <para>This switch prevents installation of systemd
147 services responsible for setting up the
148 <filename>/etc/group</filename> and
149 <filename>/etc/passwd</filename> files. Both files
[f09dd59]150 were created in the previous chapter. This daemon is not useful
[0a75d62]151 on an LFS system since user accounts are manually created.</para>
[cba2d4e]152 </listitem>
153 </varlistentry>
154
[c556e59]155 <varlistentry>
156 <term><parameter>-Drpmmacrosdir=no</parameter></term>
157 <listitem>
158 <para>This switch disables installation of RPM Macros
[69854d2a]159 for use with systemd, because LFS does not support RPM.</para>
[c556e59]160 </listitem>
161 </varlistentry>
[c06f49a]162
163 <varlistentry>
[9afac64]164 <term><parameter>-Dhomed=disabled</parameter> and
165 <parameter>-Duserdb=false</parameter></term>
[c06f49a]166 <listitem>
[69854d2a]167 <para>Remove two daemons with dependencies that do not fit
168 within the scope of LFS.</para>
[c06f49a]169 </listitem>
170 </varlistentry>
171
[35e0479]172 <varlistentry>
[56eed6c]173 <term><parameter>-Dman=disabled</parameter></term>
[35e0479]174 <listitem>
175 <para>Prevent the generation of man pages to avoid extra
176 dependencies. We will install pre-generated man pages for systemd
[69854d2a]177 from a tarball.</para>
[35e0479]178 </listitem>
179 </varlistentry>
180
[fe42b2f]181 <varlistentry>
182 <term><parameter>-Dmode=release</parameter></term>
183 <listitem>
184 <para>Disable some features considered experimental by upstream.
185 </para>
186 </listitem>
187 </varlistentry>
188
[77e340bc]189 <varlistentry>
190 <term><parameter>-Dpamconfdir=no</parameter></term>
191 <listitem>
192 <para>Prevent the installation of a PAM configuration file not
193 functional on LFS.</para>
194 </listitem>
195 </varlistentry>
[dfde664]196
197 <varlistentry>
198 <term><parameter>-Ddev-kvm-mode=0660</parameter></term>
199 <listitem>
200 <para>The default udev rule would allow all users to access
201 <filename class='devicefile'>/dev/kvm</filename>. The editors
202 consider it dangerous. This option overrides it.</para>
203 </listitem>
[3864d23]204 </varlistentry>
205
206 <varlistentry>
207 <term><parameter>-Dnobody-group=nogroup</parameter></term>
208 <listitem>
[ffecb9e]209 <para>Tell the package the group name with GID 65534 is
210 <systemitem class='groupname'>nogroup</systemitem>.</para>
[3864d23]211 </listitem>
[dfde664]212 </varlistentry>
[9afac64]213
[73805590]214 <varlistentry>
215 <term><parameter>-Dsysupdate=disabled</parameter></term>
216 <listitem>
217 <para>Do not install the <command>systemd-sysupdate</command>
218 tool. It's designed for automatically upgrading binary distros,
219 so it's useless for a basic Linux system built from source.
220 And it will report errors on boot if it's enabled but not properly
221 configured.</para>
222 </listitem>
223 </varlistentry>
224
[9afac64]225 <varlistentry>
226 <term><parameter>-Dukify=disabled</parameter></term>
227 <listitem>
228 <para>Do not install the <command>systemd-ukify</command> script.
229 At runtime this script requires the
230 <application>pefile</application> Python module that neither LFS
231 nor BLFS provides.</para>
232 </listitem>
233 </varlistentry>
234
[cba2d4e]235 </variablelist>
236
237 <para>Compile the package:</para>
238
[69c4524]239<screen><userinput remap="make">ninja</userinput></screen>
[f896e21c]240
[1e7341fd]241 <para>Some tests need a basic <filename>/etc/os-release</filename> file.
242 To test the results, issue:</para>
243
244<screen><userinput remap="test">echo 'NAME="Linux From Scratch"' &gt; /etc/os-release
245ninja test</userinput></screen>
246
247 <!-- This test needs /run/systemd/inaccessible/sock, which only exists
248 after initializing the system with systemd. -->
249 <para>One test named <literal>systemd:core / test-namespace</literal>
250 is known to fail in the LFS chroot environment. Some other tests may
251 fail because they depend on various kernel configuration options.</para>
252
[f896e21c]253 <para>Install the package:</para>
254
[69c4524]255<screen><userinput remap="install">ninja install</userinput></screen>
[cba2d4e]256
[35e0479]257 <para>Install the man pages:</para>
[c556e59]258
[b4008bb]259 <!-- Please make sure systemd man pages tarball has a common leading
260 component in the path. -->
[57f1678]261<screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-version;.tar.xz \
262 --no-same-owner --strip-components=1 \
263 -C /usr/share/man</userinput></screen>
[c556e59]264
[cba2d4e]265 <para>Create the <filename>/etc/machine-id</filename> file needed by
[1118b17]266 <command>systemd-journald</command>:</para>
[053b206]267
[15f0f21]268<screen><userinput remap="adjust">systemd-machine-id-setup</userinput></screen>
[cba2d4e]269
[69854d2a]270 <para>Set up the basic target structure:</para>
[8a0d39ee]271
272<screen><userinput remap="adjust">systemctl preset-all</userinput></screen>
[777b5cb]273
[a815ec7]274<!-- dev: 50-pid-max.conf is not removed in BLFS, so I commented the following out.
275 If it causes any trouble, we can add this back and also copy it into BLFS -->
276<!--
[777b5cb]277 <para>Prevent systemd from resetting the maximum PID value which causes
278 some problems with packages and units in BLFS:</para>
[d672ab7]279
[c06f49a]280<screen><userinput remap="adjust">rm -f /usr/lib/sysctl.d/50-pid-max.conf</userinput></screen>
[a815ec7]281-->
[777b5cb]282
[f896e21c]283 </sect2>
284
[cba2d4e]285 <sect2 id="contents-systemd" role="content">
[1118b17]286 <title>Contents of systemd</title>
[f896e21c]287
288 <segmentedlist>
289 <segtitle>Installed programs</segtitle>
290 <segtitle>Installed libraries</segtitle>
291 <segtitle>Installed directories</segtitle>
292
293 <seglistitem>
[662f649]294 <seg>busctl, coredumpctl, halt (symlink to systemctl),
[78cc3be]295 hostnamectl, init, journalctl, kernel-install, localectl, loginctl,
[c2ccad1]296 machinectl, mount.ddi (symlink to systemd-dissect), networkctl,
297 oomctl, portablectl, poweroff (symlink to
[78cc3be]298 systemctl), reboot (symlink to systemctl), resolvconf (symlink to
299 resolvectl), resolvectl, runlevel (symlink to systemctl), shutdown
[2efe1e8]300 (symlink to systemctl), systemctl, systemd-ac-power, systemd-analyze,
[1118b17]301 systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop,
[c2ccad1]302 systemd-confext (symlink to systemd-sysext), systemd-creds,
303 systemd-delta, systemd-detect-virt,
[d7a9421]304 systemd-dissect, systemd-escape, systemd-hwdb, systemd-id128,
305 systemd-inhibit, systemd-machine-id-setup,
[78cc3be]306 systemd-mount, systemd-notify, systemd-nspawn, systemd-path,
[c06f49a]307 systemd-repart, systemd-resolve (symlink to resolvectl), systemd-run,
[d7a9421]308 systemd-socket-activate, systemd-stdio-bridge, systemd-sysext,
309 systemd-tmpfiles, systemd-tty-ask-password-agent,
310 systemd-umount (symlink to systemd-mount),
311 telinit (symlink to systemctl), timedatectl, and udevadm</seg>
[1118b17]312 <seg>libnss_myhostname.so.2, libnss_mymachines.so.2,
[78cc3be]313 libnss_resolve.so.2, libnss_systemd.so.2,
[d7a9421]314 libsystemd.so, libsystemd-shared-&systemd-version;.so (in /usr/lib/systemd),
[a840e59]315 and libudev.so</seg>
[59d90df]316 <seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d,
[cba2d4e]317 /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev,
[d7a9421]318 /etc/xdg/systemd, /usr/lib/systemd, /usr/lib/udev, /usr/include/systemd,
[d672ab7]319 /usr/lib/binfmt.d, /usr/lib/environment.d, /usr/lib/kernel,
320 /usr/lib/modules-load.d, /usr/lib/sysctl.d, /usr/lib/systemd,
[2ca70d33]321 /usr/lib/tmpfiles.d,
[1118b17]322 /usr/share/doc/systemd-&systemd-version;, /usr/share/factory,
323 /usr/share/systemd, /var/lib/systemd, and /var/log/journal</seg>
[f896e21c]324 </seglistitem>
325 </segmentedlist>
326
327 <variablelist>
328 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
329 <?dbfo list-presentation="list"?>
330 <?dbhtml list-presentation="table"?>
331
[cba2d4e]332 <varlistentry id="busctl">
333 <term><command>busctl</command></term>
334 <listitem>
[9e7475a]335 <para>Is used to introspect and monitor the D-Bus bus</para>
[cba2d4e]336 <indexterm zone="ch-system-systemd busctl">
337 <primary sortas="b-busctl">busctl</primary>
338 </indexterm>
339 </listitem>
340 </varlistentry>
341
[1118b17]342 <varlistentry id="coredumpctl">
343 <term><command>coredumpctl</command></term>
344 <listitem>
[9e7475a]345 <para>Is used to retrieve coredumps from the systemd journal</para>
[1118b17]346 <indexterm zone="ch-system-systemd coredumpctl">
347 <primary sortas="b-coredumpctl">coredumpctl</primary>
348 </indexterm>
349 </listitem>
350 </varlistentry>
351
[cba2d4e]352 <varlistentry id="halt">
353 <term><command>halt</command></term>
354 <listitem>
355 <para>Normally invokes <command>shutdown</command> with the
356 <parameter>-h</parameter> option, except when already in run-level 0,
[69854d2a]357 when it tells the kernel to halt the system; it notes in the
[cba2d4e]358 file <filename>/var/log/wtmp</filename> that the system is being
[1118b17]359 brought down</para>
[cba2d4e]360 <indexterm zone="ch-system-systemd halt">
361 <primary sortas="b-halt">halt</primary>
362 </indexterm>
363 </listitem>
364 </varlistentry>
365
366 <varlistentry id="hostnamectl">
367 <term><command>hostnamectl</command></term>
368 <listitem>
[9e7475a]369 <para>Is used to query and change the system hostname and related
[1118b17]370 settings</para>
[cba2d4e]371 <indexterm zone="ch-system-systemd hostnamectl">
372 <primary sortas="b-hostnamectl">hostnamectl</primary>
373 </indexterm>
374 </listitem>
375 </varlistentry>
376
377 <varlistentry id="init">
378 <term><command>init</command></term>
379 <listitem>
[69854d2a]380 <para>Is the first process to be started after the kernel has initialized
381 the hardware; <command>init</command> takes over the boot process and starts the
382 processes specified by its configuration files; in this case, it starts
[8d35535]383 systemd</para>
[cba2d4e]384 <indexterm zone="ch-system-systemd init">
385 <primary sortas="b-init">init</primary>
386 </indexterm>
387 </listitem>
388 </varlistentry>
389
390 <varlistentry id="journalctl">
391 <term><command>journalctl</command></term>
392 <listitem>
[9e7475a]393 <para>Is used to query the contents of the systemd journal</para>
[cba2d4e]394 <indexterm zone="ch-system-systemd journalctl">
395 <primary sortas="b-journalctl">journalctl</primary>
396 </indexterm>
397 </listitem>
398 </varlistentry>
399
400 <varlistentry id="kernel-install">
401 <term><command>kernel-install</command></term>
402 <listitem>
[9e7475a]403 <para>Is used to add and remove kernel and initramfs images to and
[69854d2a]404 from /boot; in LFS, this is done manually</para>
[cba2d4e]405 <indexterm zone="ch-system-systemd kernel-install">
406 <primary sortas="b-kernel-install">kernel-install</primary>
407 </indexterm>
408 </listitem>
409 </varlistentry>
410
411 <varlistentry id="localectl">
412 <term><command>localectl</command></term>
413 <listitem>
[9e7475a]414 <para>Is used to query and change the system locale and keyboard layout
[1118b17]415 settings</para>
[cba2d4e]416 <indexterm zone="ch-system-systemd localectl">
417 <primary sortas="b-localectl">localectl</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
422 <varlistentry id="loginctl">
423 <term><command>loginctl</command></term>
424 <listitem>
[9e7475a]425 <para>Is used to introspect and control the state of the systemd Login
[1118b17]426 Manager</para>
[cba2d4e]427 <indexterm zone="ch-system-systemd loginctl">
428 <primary sortas="b-loginctl">loginctl</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
433 <varlistentry id="machinectl">
434 <term><command>machinectl</command></term>
435 <listitem>
[9e7475a]436 <para>Is used to introspect and control the state of the systemd Virtual
[cba2d4e]437 Machine and Container Registration Manager</para>
438 <indexterm zone="ch-system-systemd machinectl">
439 <primary sortas="b-machinectl">machinectl</primary>
440 </indexterm>
441 </listitem>
442 </varlistentry>
443
[1118b17]444 <varlistentry id="networkctl">
445 <term><command>networkctl</command></term>
446 <listitem>
[d672ab7]447 <para>Is used to introspect and configure the state of the network
[9e7475a]448 links configured by systemd-networkd</para>
[1118b17]449 <indexterm zone="ch-system-systemd networkctl">
450 <primary sortas="b-networkctl">networkctl</primary>
451 </indexterm>
452 </listitem>
453 </varlistentry>
454
[d7a9421]455 <varlistentry id="oomctl">
456 <term><command>oomctl</command></term>
457 <listitem>
458 <para>Controls the systemd Out Of Memory daemon</para>
459 <indexterm zone="ch-system-systemd oomctl">
460 <primary sortas="b-oomctl">oomctl</primary>
461 </indexterm>
462 </listitem>
463 </varlistentry>
464
[78cc3be]465 <varlistentry id="portablectl">
466 <term><command>portablectl</command></term>
467 <listitem>
[9e7475a]468 <para>Is used to attach or detach portable services from the local
[78cc3be]469 system</para>
470 <indexterm zone="ch-system-systemd portablectl">
471 <primary sortas="b-portablectl">portablectl</primary>
472 </indexterm>
473 </listitem>
474 </varlistentry>
475
[cba2d4e]476 <varlistentry id="poweroff">
477 <term><command>poweroff</command></term>
478 <listitem>
[9e7475a]479 <para>Instructs the kernel to halt the system and switch off the computer
[1118b17]480 (see <command>halt</command>)</para>
[cba2d4e]481 <indexterm zone="ch-system-systemd poweroff">
482 <primary sortas="b-poweroff">poweroff</primary>
483 </indexterm>
484 </listitem>
485 </varlistentry>
486
487 <varlistentry id="reboot">
488 <term><command>reboot</command></term>
[f896e21c]489 <listitem>
[9e7475a]490 <para>Instructs the kernel to reboot the system (see
[1118b17]491 <command>halt</command>)</para>
[cba2d4e]492 <indexterm zone="ch-system-systemd reboot">
493 <primary sortas="b-reboot">reboot</primary>
[f896e21c]494 </indexterm>
495 </listitem>
496 </varlistentry>
497
[78cc3be]498 <varlistentry id="resolvconf">
499 <term><command>resolvconf</command></term>
500 <listitem>
[9e7475a]501 <para>Registers DNS server and domain configuration with
[93058448]502 <command>systemd-resolved</command></para>
[78cc3be]503 <indexterm zone="ch-system-systemd resolvconf">
504 <primary sortas="b-resolvconf">resolvconf</primary>
505 </indexterm>
506 </listitem>
507 </varlistentry>
508
509 <varlistentry id="resolvectl">
510 <term><command>resolvectl</command></term>
511 <listitem>
[9e7475a]512 <para>Sends control commands to the network name resolution
513 manager, or resolves domain names, IPv4 and IPv6 addresses,
[8d35535]514 DNS records, and services</para>
[78cc3be]515 <indexterm zone="ch-system-systemd resolvectl">
516 <primary sortas="b-resolvectl">resolvectl</primary>
517 </indexterm>
518 </listitem>
519 </varlistentry>
520
[cba2d4e]521 <varlistentry id="runlevel">
522 <term><command>runlevel</command></term>
[f896e21c]523 <listitem>
[9e7475a]524 <para>Outputs the previous and the current run-level, as noted in the
[02776dff]525 last run-level record in <filename>/run/utmp</filename></para>
[cba2d4e]526 <indexterm zone="ch-system-systemd runlevel">
527 <primary sortas="b-runlevel">runlevel</primary>
[f896e21c]528 </indexterm>
529 </listitem>
530 </varlistentry>
531
[cba2d4e]532 <varlistentry id="shutdown">
533 <term><command>shutdown</command></term>
[f896e21c]534 <listitem>
[d672ab7]535 <para>Brings the system down in a safe and secure manner, signaling
[9e7475a]536 all processes and notifying all logged-in users</para>
[cba2d4e]537 <indexterm zone="ch-system-systemd shutdown">
538 <primary sortas="b-shutdown">shutdown</primary>
[f896e21c]539 </indexterm>
540 </listitem>
541 </varlistentry>
542
[cba2d4e]543 <varlistentry id="systemctl">
544 <term><command>systemctl</command></term>
[f896e21c]545 <listitem>
[9e7475a]546 <para>Is used to introspect and control the state of the systemd system
[1118b17]547 and service manager</para>
[cba2d4e]548 <indexterm zone="ch-system-systemd systemctl">
549 <primary sortas="b-systemctl">systemctl</primary>
550 </indexterm>
551 </listitem>
552 </varlistentry>
553
[2efe1e8]554 <varlistentry id="systemd-ac-power">
555 <term><command>systemd-ac-power</command></term>
556 <listitem>
557 <para>Reports whether the system is connected to an external
558 power source.</para>
559 <indexterm zone="ch-system-systemd systemd-ac-power">
560 <primary sortas="b-systemd-ac-power">systemd-ac-power</primary>
561 </indexterm>
562 </listitem>
563 </varlistentry>
564
[cba2d4e]565 <varlistentry id="systemd-analyze">
566 <term><command>systemd-analyze</command></term>
567 <listitem>
[69854d2a]568 <para>Is used to analyze system startup performance,
569 as well as identify troublesome systemd units</para>
[cba2d4e]570 <indexterm zone="ch-system-systemd systemd-analyze">
571 <primary sortas="b-systemd-analyze">systemd-analyze</primary>
572 </indexterm>
573 </listitem>
574 </varlistentry>
575
576 <varlistentry id="systemd-ask-password">
577 <term><command>systemd-ask-password</command></term>
578 <listitem>
[9e7475a]579 <para>Is used to query a system password or passphrase from the user,
[69854d2a]580 using a message specified on the Linux command line</para>
[cba2d4e]581 <indexterm zone="ch-system-systemd systemd-ask-password">
582 <primary sortas="b-systemd-ask-password">systemd-ask-password</primary>
583 </indexterm>
584 </listitem>
585 </varlistentry>
586
587 <varlistentry id="systemd-cat">
588 <term><command>systemd-cat</command></term>
589 <listitem>
[9e7475a]590 <para>Is used to connect the STDOUT and STDERR outputs of a process
[8d35535]591 with the systemd journal
[cba2d4e]592 </para>
593 <indexterm zone="ch-system-systemd systemd-cat">
594 <primary sortas="b-systemd-cat">systemd-cat</primary>
595 </indexterm>
596 </listitem>
597 </varlistentry>
598
599 <varlistentry id="systemd-cgls">
600 <term><command>systemd-cgls</command></term>
601 <listitem>
[1118b17]602 <para>Recursively shows the contents of the selected Linux control
603 group hierarchy in a tree</para>
[cba2d4e]604 <indexterm zone="ch-system-systemd systemd-cgls">
605 <primary sortas="b-systemd-cgls">systemd-cgls</primary>
606 </indexterm>
607 </listitem>
608 </varlistentry>
609
610 <varlistentry id="systemd-cgtop">
611 <term><command>systemd-cgtop</command></term>
612 <listitem>
[1118b17]613 <para>Shows the top control groups of the local Linux control group
[69854d2a]614 hierarchy, ordered by their CPU, memory and disk I/O loads</para>
[cba2d4e]615 <indexterm zone="ch-system-systemd systemd-cgtop">
616 <primary sortas="b-systemd-cgtop">systemd-cgtop</primary>
617 </indexterm>
618 </listitem>
619 </varlistentry>
620
[662f649]621 <varlistentry id="systemd-creds">
622 <term><command>systemd-creds</command></term>
[d7a9421]623 <listitem>
[9f0a642]624 <para>Displays and processes credentials</para>
[662f649]625 <indexterm zone="ch-system-systemd systemd-creds">
626 <primary sortas="b-systemd-creds">systemd-creds</primary>
[d7a9421]627 </indexterm>
628 </listitem>
629 </varlistentry>
630
[cba2d4e]631 <varlistentry id="systemd-delta">
632 <term><command>systemd-delta</command></term>
633 <listitem>
[9e7475a]634 <para>Is used to identify and compare configuration files in
[69854d2a]635 <filename class="directory">/etc</filename> that override the defaults
636 in <filename class="directory">/usr</filename></para>
[cba2d4e]637 <indexterm zone="ch-system-systemd systemd-delta">
638 <primary sortas="b-systemd-delta">systemd-delta</primary>
639 </indexterm>
640 </listitem>
641 </varlistentry>
642
643 <varlistentry id="systemd-detect-virt">
644 <term><command>systemd-detect-virt</command></term>
645 <listitem>
[9e7475a]646 <para>Detects whether the system is being run in a virtual
[8d35535]647 environment, and adjusts udev accordingly</para>
[cba2d4e]648 <indexterm zone="ch-system-systemd systemd-detect-virt">
649 <primary sortas="b-systemd-detect-virt">systemd-detect-virt</primary>
650 </indexterm>
651 </listitem>
652 </varlistentry>
653
[22009fb]654 <varlistentry id="systemd-dissect">
655 <term><command>systemd-dissect</command></term>
656 <listitem>
[8d35535]657 <para>Is used to inspect OS disk images</para>
[22009fb]658 <indexterm zone="ch-system-systemd systemd-dissect">
659 <primary sortas="b-systemd-dissect">systemd-dissect</primary>
660 </indexterm>
661 </listitem>
662 </varlistentry>
663
[1118b17]664 <varlistentry id="systemd-escape">
665 <term><command>systemd-escape</command></term>
666 <listitem>
[9e7475a]667 <para>Is used to escape strings for inclusion in systemd unit
[1118b17]668 names</para>
669 <indexterm zone="ch-system-systemd systemd-escape">
670 <primary sortas="b-systemd-escape">systemd-escape</primary>
671 </indexterm>
672 </listitem>
673 </varlistentry>
674
675 <varlistentry id="systemd-hwdb">
676 <term><command>systemd-hwdb</command></term>
677 <listitem>
[9e7475a]678 <para>Is used to manage the hardware database (hwdb)</para>
[1118b17]679 <indexterm zone="ch-system-systemd systemd-hwdb">
680 <primary sortas="b-systemd-hwdb">systemd-hwdb</primary>
681 </indexterm>
682 </listitem>
683 </varlistentry>
684
[78cc3be]685 <varlistentry id="systemd-id128">
686 <term><command>systemd-id128</command></term>
687 <listitem>
[69854d2a]688 <para>Generates and prints id128 (UUID) strings</para>
[78cc3be]689 <indexterm zone="ch-system-systemd systemd-id128">
690 <primary sortas="b-systemd-id128">systemd-id128</primary>
691 </indexterm>
692 </listitem>
693 </varlistentry>
694
[cba2d4e]695 <varlistentry id="systemd-inhibit">
696 <term><command>systemd-inhibit</command></term>
697 <listitem>
[9e7475a]698 <para>Is used to execute a program with a shutdown, sleep or idle
699 inhibitor lock taken, preventing an action such as a system shutdown
[8d35535]700 until the process is completed</para>
[cba2d4e]701 <indexterm zone="ch-system-systemd systemd-inhibit">
702 <primary sortas="b-systemd-inhibit">systemd-inhibit</primary>
703 </indexterm>
704 </listitem>
705 </varlistentry>
706
707 <varlistentry id="systemd-machine-id-setup">
708 <term><command>systemd-machine-id-setup</command></term>
709 <listitem>
[9e7475a]710 <para>Is used by system installer tools to initialize the machine ID
[1118b17]711 stored in <filename>/etc/machine-id</filename> at install time with a
712 randomly generated ID</para>
[cba2d4e]713 <indexterm zone="ch-system-systemd systemd-machine-id-setup">
714 <primary sortas="b-systemd-machine-id-setup">systemd-machine-id-setup</primary>
715 </indexterm>
716 </listitem>
717 </varlistentry>
718
[13c8b42]719 <varlistentry id="systemd-mount">
720 <term><command>systemd-mount</command></term>
721 <listitem>
[8d35535]722 <para>Is used to temporarily mount or automount disks</para>
[13c8b42]723 <indexterm zone="ch-system-systemd systemd-mount">
724 <primary sortas="b-systemd-mount">systemd-mount</primary>
725 </indexterm>
726 </listitem>
727 </varlistentry>
728
[cba2d4e]729 <varlistentry id="systemd-notify">
730 <term><command>systemd-notify</command></term>
731 <listitem>
[69854d2a]732 <para>Is used by daemon scripts to notify the init system of status
[1118b17]733 changes</para>
[cba2d4e]734 <indexterm zone="ch-system-systemd systemd-notify">
735 <primary sortas="b-systemd-notify">systemd-notify</primary>
736 </indexterm>
737 </listitem>
738 </varlistentry>
739
740 <varlistentry id="systemd-nspawn">
741 <term><command>systemd-nspawn</command></term>
742 <listitem>
[69854d2a]743 <para>Is used to run a command, or an entire OS, in a light-weight namespace
[1118b17]744 container</para>
[cba2d4e]745 <indexterm zone="ch-system-systemd systemd-nspawn">
746 <primary sortas="b-systemd-nspawn">systemd-nspawn</primary>
747 </indexterm>
748 </listitem>
749 </varlistentry>
750
[1118b17]751 <varlistentry id="systemd-path">
752 <term><command>systemd-path</command></term>
753 <listitem>
[9e7475a]754 <para>Is used to query system and user paths</para>
[1118b17]755 <indexterm zone="ch-system-systemd systemd-path">
756 <primary sortas="b-systemd-path">systemd-path</primary>
757 </indexterm>
758 </listitem>
759 </varlistentry>
760
[c06f49a]761 <varlistentry id="systemd-repart">
762 <term><command>systemd-repart</command></term>
763 <listitem>
[9e7475a]764 <para>Is used to grow and add partitions to a partition table when
[69854d2a]765 systemd is used with an OS image (e.g. a container)</para>
[c06f49a]766 <indexterm zone="ch-system-systemd systemd-repart">
767 <primary sortas="b-systemd-repart">systemd-repart</primary>
768 </indexterm>
769 </listitem>
770 </varlistentry>
771
[1118b17]772 <varlistentry id="systemd-resolve">
773 <term><command>systemd-resolve</command></term>
774 <listitem>
[9e7475a]775 <para>Is used to resolve domain names, IPV4 and IPv6 addresses, DNS
[1118b17]776 resource records, and services</para>
777 <indexterm zone="ch-system-systemd systemd-resolve">
778 <primary sortas="b-systemd-resolve">systemd-resolve</primary>
779 </indexterm>
780 </listitem>
781 </varlistentry>
782
[cba2d4e]783 <varlistentry id="systemd-run">
784 <term><command>systemd-run</command></term>
785 <listitem>
[9e7475a]786 <para>Is used to create and start a transient .service or a .scope
[69854d2a]787 unit and run the specified command in it; this is useful for
[8d35535]788 validating systemd units</para>
[cba2d4e]789 <indexterm zone="ch-system-systemd systemd-run">
790 <primary sortas="b-systemd-run">systemd-run</primary>
791 </indexterm>
792 </listitem>
793 </varlistentry>
794
[13c8b42]795 <varlistentry id="systemd-socket-activate">
796 <term><command>systemd-socket-activate</command></term>
797 <listitem>
[9e7475a]798 <para>Is used to listen on socket devices and launch a process upon
[8d35535]799 a successful connection to the socket</para>
[13c8b42]800 <indexterm zone="ch-system-systemd systemd-socket-activate">
801 <primary sortas="b-systemd-socket-activate">systemd-socket-activate</primary>
802 </indexterm>
803 </listitem>
804 </varlistentry>
805
[d7a9421]806 <varlistentry id="systemd-sysext">
807 <term><command>systemd-sysext</command></term>
808 <listitem>
[871fd2f]809 <para>Activates system extension images</para>
[d7a9421]810 <indexterm zone="ch-system-systemd systemd-sysext">
811 <primary sortas="b-systemd-sysext">systemd-sysext</primary>
812 </indexterm>
813 </listitem>
814 </varlistentry>
815
[cba2d4e]816 <varlistentry id="systemd-tmpfiles">
817 <term><command>systemd-tmpfiles</command></term>
818 <listitem>
[69854d2a]819 <para>Creates, deletes, and cleans up volatile and temporary files and
[1118b17]820 directories, based on the configuration file format and location
821 specified in
822 <filename class="directory">tmpfiles.d</filename> directories</para>
[cba2d4e]823 <indexterm zone="ch-system-systemd systemd-tmpfiles">
824 <primary sortas="b-systemd-tmpfiles">systemd-tmpfiles</primary>
825 </indexterm>
826 </listitem>
827 </varlistentry>
828
[78cc3be]829 <varlistentry id="systemd-umount">
830 <term><command>systemd-umount</command></term>
831 <listitem>
[9e7475a]832 <para>Unmounts mount points</para>
[78cc3be]833 <indexterm zone="ch-system-systemd systemd-umount">
834 <primary sortas="b-systemd-umount">systemd-umount</primary>
835 </indexterm>
836 </listitem>
837 </varlistentry>
838
[cba2d4e]839 <varlistentry id="systemd-tty-ask-password-agent">
840 <term><command>systemd-tty-ask-password-agent</command></term>
841 <listitem>
[d672ab7]842 <para>Is used to list and/or process pending systemd password
[9e7475a]843 requests</para>
[cba2d4e]844 <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent">
845 <primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary>
846 </indexterm>
847 </listitem>
848 </varlistentry>
849
850 <varlistentry id="telinit">
851 <term><command>telinit</command></term>
852 <listitem>
[1118b17]853 <para>Tells <command>init</command> which run-level to change
854 to</para>
[cba2d4e]855 <indexterm zone="ch-system-systemd telinit">
856 <primary sortas="b-telinit">telinit</primary>
857 </indexterm>
858 </listitem>
859 </varlistentry>
860
861 <varlistentry id="timedatectl">
862 <term><command>timedatectl</command></term>
863 <listitem>
[9e7475a]864 <para>Is used to query and change the system clock and its settings
[cba2d4e]865 </para>
866 <indexterm zone="ch-system-systemd timedatectl">
867 <primary sortas="b-timedatectl">timedatectl</primary>
[f896e21c]868 </indexterm>
869 </listitem>
870 </varlistentry>
871
872 <varlistentry id="udevadm">
873 <term><command>udevadm</command></term>
874 <listitem>
[d672ab7]875 <para>Is a generic udev administration tool which controls the udevd
[69854d2a]876 daemon, provides info from the udev hardware database, monitors
[d672ab7]877 uevents, waits for uevents to finish, tests udev configuration, and
[9e7475a]878 triggers uevents for a given device</para>
[cba2d4e]879 <indexterm zone="ch-system-systemd udevadm">
[f896e21c]880 <primary sortas="b-udevadm">udevadm</primary>
881 </indexterm>
882 </listitem>
883 </varlistentry>
884
[cba2d4e]885 <varlistentry id="libsystemd">
886 <term><filename class="libraryfile">libsystemd</filename></term>
[f896e21c]887 <listitem>
[9e7475a]888 <para>Is the main systemd utility library</para>
[cba2d4e]889 <indexterm zone="ch-system-systemd libsystemd">
890 <primary sortas="c-libsystemd">libsystemd</primary>
[f896e21c]891 </indexterm>
892 </listitem>
893 </varlistentry>
894
895 <varlistentry id="libudev">
896 <term><filename class="libraryfile">libudev</filename></term>
897 <listitem>
[9e7475a]898 <para>Is a library to access Udev device information</para>
[cba2d4e]899 <indexterm zone="ch-system-systemd libudev">
[f896e21c]900 <primary sortas="c-libudev">libudev</primary>
901 </indexterm>
902 </listitem>
903 </varlistentry>
904
905 </variablelist>
906
907 </sect2>
908
909</sect1>
Note: See TracBrowser for help on using the repository browser.