source: chapter08/systemd.xml@ 9c7437f

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 9c7437f was cadbe55, checked in by Bruce Dubbs <bdubbs@…>, 3 months ago

Merge branch 'trunk' of git.linuxfromscratch.org:lfs into trunk

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