source: chapter08/systemd.xml@ c7ed0b0

12.2 12.2-rc1 multilib trunk xry111/arm64 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.2 xry111/mips64el xry111/multilib
Last change on this file since c7ed0b0 was 1e7341fd, checked in by Xi Ruoyao <xry111@…>, 5 months ago

systemd: Enable test suite (again)

With systemd-255, I get only 1 failure out of 1206. Thus it seems a
good idea to run the test suite.

We can always revert if something bad happens.

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