source: chapter08/systemd.xml@ fca7ffe

ml-11.0
Last change on this file since fca7ffe was f18f2d6, checked in by Thomas Trepl (Moody) <thomas@…>, 3 years ago

Automatic merge of trunk into multilib

  • Property mode set to 100644
File size: 36.2 KB
RevLine 
[f896e21c]1<?xml version="1.0" encoding="ISO-8859-1"?>
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>
[6dfcfecc]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>
[bc375da6]42
[9f84752]43 <!--Fix CVE-2021-33910 -->
44 <para>First, apply a patch to fix a security vulnerability:</para>
[38de42d]45
[d7a9421]46<screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-upstream_fixes-1.patch</userinput></screen>
[1118b17]47
[0ebda11]48<!-- Seems to be not needed anymore with 248
[e88a471b]49 <para>Remove tests that cannot be built in chroot:</para>
50
[d7a9421]51<screen><userinput remap="pre">sed '177,$ d' -i src/resolve/meson.build</userinput></screen>
[0ebda11]52-->
[b55310e]53
[87119fd]54 <para>Remove two unneeded groups,
55 <systemitem class="groupname">render</systemitem> and
56 <systemitem class="groupname">sgx</systemitem>, from the default udev
[896e77e]57 rules:</para>
58
[87119fd]59 <screen><userinput remap="pre"> sed -i -e 's/GROUP="render"/GROUP="video"/' \
60 -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in</userinput></screen>
[896e77e]61
[1118b17]62 <para>Prepare systemd for compilation:</para>
63
[be00729f]64<screen><userinput remap="configure">mkdir -p build
[04b2165]65cd build
[fc199db]66
[95906db]67LANG=en_US.UTF-8 \
68meson --prefix=/usr \
69 --sysconfdir=/etc \
70 --localstatedir=/var \
[06cdaed]71 --buildtype=release \
[95906db]72 -Dblkid=true \
73 -Ddefault-dnssec=no \
74 -Dfirstboot=false \
75 -Dinstall-tests=false \
76 -Dldconfig=false \
77 -Dsysusers=false \
78 -Db_lto=false \
79 -Drpmmacrosdir=no \
80 -Dhomed=false \
81 -Duserdb=false \
[ceebda5]82 -Dman=false \
[38de42d]83 -Dmode=release \
[d7e0db5]84 -Ddocdir=/usr/share/doc/systemd-&systemd-version; \
[fc199db]85 ..</userinput></screen>
[cba2d4e]86
87 <variablelist>
[81ed05f]88 <title>The meaning of the meson options:</title>
[cba2d4e]89
[06cdaed]90 <varlistentry>
91 <term><parameter>--buildtype=release</parameter></term>
92 <listitem>
93 <para>This switch overrides the default buildtype
94 (<quote>debug</quote>), which would produce unoptimized
95 binaries.</para>
96 </listitem>
97 </varlistentry>
98
[cba2d4e]99 <varlistentry>
[81ed05f]100 <term><parameter>-Ddefault-dnssec=no</parameter></term>
[cba2d4e]101 <listitem>
[81ed05f]102 <para>This switch turns off the experimental DNSSEC support.</para>
[cba2d4e]103 </listitem>
104 </varlistentry>
105
106 <varlistentry>
[81ed05f]107 <term><parameter>-Dfirstboot=false</parameter></term>
[cba2d4e]108 <listitem>
[81ed05f]109 <para>This switch prevents installation of systemd
110 services responsible for setting up the system for
111 the first time. They are not useful for LFS because
112 everything is done manually.</para>
[cba2d4e]113 </listitem>
114 </varlistentry>
115
[e88a471b]116 <varlistentry>
117 <term><parameter>-Dinstall-tests=false</parameter></term>
118 <listitem>
119 <para>This switch prevents installation of the compiled tests.</para>
120 </listitem>
121 </varlistentry>
122
[cba2d4e]123 <varlistentry>
[0d84af1]124 <term><parameter>-Dldconfig=false</parameter></term>
[cba2d4e]125 <listitem>
[0d84af1]126 <para>This switch prevents installation of a systemd unit that runs
127 <command>ldconfig</command> at boot, which is not useful for source
128 distributions such as LFS and makes the boot time longer. Remove it
129 if the described feature is desired.</para>
[cba2d4e]130 </listitem>
131 </varlistentry>
132
[1118b17]133 <varlistentry>
[81ed05f]134 <term><parameter>-Dsysusers=false</parameter></term>
[1118b17]135 <listitem>
136 <para>This switch prevents installation of systemd
137 services responsible for setting up the
138 <filename>/etc/group</filename> and
139 <filename>/etc/passwd</filename> files. Both files
[0d84af1]140 were created earlier in this chapter.</para>
[cba2d4e]141 </listitem>
142 </varlistentry>
143
[be00729f]144 <varlistentry>
145 <term><parameter>-Drpmmacrosdir=no</parameter></term>
146 <listitem>
147 <para>This switch disables installation of RPM Macros
148 for use with systemd because LFS does not support RPM.</para>
149 </listitem>
150 </varlistentry>
[d1fbbd0]151
152 <varlistentry>
153 <term><parameter>-D{userdb,homed}=false</parameter></term>
154 <listitem>
155 <para>Remove two daemons that have dependencies that do not fit
156 the scope of LFS.</para>
157 </listitem>
158 </varlistentry>
159
[ceebda5]160 <varlistentry>
161 <term><parameter>-Dman=false</parameter></term>
162 <listitem>
163 <para>Prevent the generation of man pages to avoid extra
164 dependencies. We will install pre-generated man pages for systemd
165 from a tarball later.</para>
166 </listitem>
167 </varlistentry>
168
[38de42d]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
[cba2d4e]177 </variablelist>
178
179 <para>Compile the package:</para>
180
[fc199db]181<screen><userinput remap="make">LANG=en_US.UTF-8 ninja</userinput></screen>
[f896e21c]182
183 <para>Install the package:</para>
184
[81ed05f]185<screen><userinput remap="install">LANG=en_US.UTF-8 ninja install</userinput></screen>
[cba2d4e]186
[ceebda5]187 <para>Install the man pages:</para>
[cba2d4e]188
[ceebda5]189<screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz --strip-components=1 -C /usr/share/man</userinput></screen>
[81ed05f]190
[4c8c128]191 <para>Remove a useless directory:</para>
[a5c2803]192
193<screen><userinput remap="install">rm -rf /usr/lib/pam.d</userinput></screen>
194
[cba2d4e]195 <para>Create the <filename>/etc/machine-id</filename> file needed by
[1118b17]196 <command>systemd-journald</command>:</para>
[053b206]197
[15f0f21]198<screen><userinput remap="adjust">systemd-machine-id-setup</userinput></screen>
[cba2d4e]199
[0aaf6a31]200 <para>Setup the basic target structure:</para>
201
202<screen><userinput remap="adjust">systemctl preset-all</userinput></screen>
203
204 <para>Disable a service that is known to cause problems with systems that
205 use a network configuration other than what is provided by
206 systemd-networkd:</para>
207 <!-- Observed halting startup with dhcpcd handling the primary NIC -->
208
209<screen><userinput remap="adjust">systemctl disable systemd-time-wait-sync.service</userinput></screen>
210
[a5c2803]211<!-- dev: 50-pid-max.conf is not removed in BLFS, so I commented the following out.
212 If it causes any trouble, we can add this back and also copy it into BLFS -->
213<!--
[0aaf6a31]214 <para>Prevent systemd from resetting the maximum PID value which causes
215 some problems with packages and units in BLFS:</para>
[d1fbbd0]216
217<screen><userinput remap="adjust">rm -f /usr/lib/sysctl.d/50-pid-max.conf</userinput></screen>
[a5c2803]218-->
[0aaf6a31]219
[f896e21c]220 </sect2>
221
[6dfcfecc]222 <!-- - - - - - - - - - -->
223 <!-- Multilib - 32bit -->
224 <!-- - - - - - - - - - -->
225
[fd48baa]226 <sect2 arch="ml_32,ml_all" role="installation">
[b3f1ebb3]227 <title>Installation of systemd - 32-bit</title>
228
229 <para>Clean previous build:</para>
230
[6dfcfecc]231<screen><userinput remap="pre">rm -rf *</userinput></screen>
[b3f1ebb3]232
233 <para>Create a symlink to work around missing xsltproc:</para>
234
[6dfcfecc]235<!-- screen><userinput remap="pre">ln -sf /tools/bin/true /usr/bin/xsltproc</userinput></screen -->
236<screen><userinput remap="pre">ln -sf /bin/true /usr/bin/xsltproc</userinput></screen>
[b3f1ebb3]237
[6dfcfecc]238<!-- with cross-LFS we have util-linux in place:
[b3f1ebb3]239 <para>Because we have not yet installed the final version of Util-Linux,
240 create links to the libraries in the approprite location:</para>
241
242<screen><userinput remap="pre">for file in /tools/lib32/lib{blkid,mount,uuid}*; do
243 ln -sf $file /usr/lib32/
244done</userinput></screen>
[6dfcfecc]245-->
[b3f1ebb3]246
247 <para>Prepare systemd for compilation:</para>
248
[0ebda11]249 <screen><userinput remap="configure">PKG_CONFIG_PATH="/usr/lib32/pkgconfig" \
[b3f1ebb3]250CC="gcc -m32 -march=i686" \
251CXX="g++ -m32 -march=i686" \
252LANG=en_US.UTF-8 \
253meson --prefix=/usr \
254 --sysconfdir=/etc \
255 --localstatedir=/var \
256 -Dblkid=true \
257 -Dbuildtype=release \
258 -Ddefault-dnssec=no \
259 -Dfirstboot=false \
260 -Dinstall-tests=false \
261 -Dkill-path=/bin/kill \
262 -Dkmod-path=/bin/kmod \
263 -Dldconfig=false \
264 -Dmount-path=/bin/mount \
265 -Drootprefix= \
[0ebda11]266 -Drootlibdir=/usr/lib32 \
[b3f1ebb3]267 -Dsplit-usr=true \
268 -Dsulogin-path=/sbin/sulogin \
269 -Dsysusers=false \
270 -Dumount-path=/bin/umount \
271 -Db_lto=false \
272 ..</userinput></screen>
273
274 <para>Compile the package:</para>
275
276<screen><userinput remap="make">LANG=en_US.UTF-8 ninja</userinput></screen>
277
278 <para>Install the package:</para>
279
280<screen><userinput remap="install">LANG=en_US.UTF-8 DESTDIR=$PWD/DESTDIR ninja install
[0ebda11]281cp -Rv DESTDIR/usr/lib32/* /usr/lib32
[b3f1ebb3]282rm -rf DESTDIR
283rm -f /usr/bin/xsltproc</userinput></screen>
284
[6dfcfecc]285 </sect2><!-- m32 -->
[b3f1ebb3]286
[6dfcfecc]287 <!-- - - - - - - - - - -->
288 <!-- Multilib - x32bit -->
289 <!-- - - - - - - - - - -->
290
[fd48baa]291 <sect2 arch="ml_x32,ml_all" role="installation">
[b3f1ebb3]292 <title>Installation of systemd - x32-bit</title>
293
294 <para>Clean previous build:</para>
295
[6dfcfecc]296<screen><userinput remap="pre">rm -rf *</userinput></screen>
[b3f1ebb3]297
298 <para>Create a symlink to work around missing xsltproc:</para>
299
[6dfcfecc]300<screen><userinput remap="pre">ln -sf /bin/true /usr/bin/xsltproc</userinput></screen>
[b3f1ebb3]301
302 <para>Fix an issue on x32:</para>
303
304<screen><userinput remap="pre">sed '/log_debug/s@PRI_TIMEX@PRIi64@' -i src/timesync/timesyncd-manager.c
305sed '/long drift_freq;/s@long @int64_t @' -i src/timesync/timesyncd-manager.h</userinput></screen>
306
307 <para>Prepare systemd for compilation:</para>
308
[0ebda11]309<screen><userinput remap="configure">PKG_CONFIG_PATH="/usr/libx32/pkgconfig" \
[b3f1ebb3]310CC="gcc -mx32" \
311CXX="g++ -mx32" \
312CFLAGS+="-Wno-error=shift-overflow" \
313CXXFLAGS+="-Wno-error=shift-overflow" \
314LANG=en_US.UTF-8 \
315meson --prefix=/usr \
316 --sysconfdir=/etc \
317 --localstatedir=/var \
318 -Dblkid=true \
319 -Dbuildtype=release \
320 -Ddefault-dnssec=no \
321 -Dfirstboot=false \
322 -Dinstall-tests=false \
323 -Dkill-path=/bin/kill \
324 -Dkmod-path=/bin/kmod \
325 -Dldconfig=false \
326 -Dmount-path=/bin/mount \
327 -Drootprefix= \
[0ebda11]328 -Drootlibdir=/usr/libx32 \
[b3f1ebb3]329 -Dsplit-usr=true \
330 -Dsulogin-path=/sbin/sulogin \
331 -Dsysusers=false \
332 -Dumount-path=/bin/umount \
333 -Db_lto=false \
334 ..</userinput></screen>
335
336 <para>Compile the package:</para>
337
338<screen><userinput remap="make">LANG=en_US.UTF-8 ninja</userinput></screen>
339
340 <para>Install the package:</para>
341
342<screen><userinput remap="install">LANG=en_US.UTF-8 DESTDIR=$PWD/DESTDIR ninja install
[0ebda11]343cp -Rv DESTDIR/usr/lib32/* /usr/lib32
[b3f1ebb3]344rm -rf DESTDIR
345rm -f /usr/bin/xsltproc</userinput></screen>
346
[6dfcfecc]347 </sect2><!-- mx32 -->
[b3f1ebb3]348
[cba2d4e]349 <sect2 id="contents-systemd" role="content">
[1118b17]350 <title>Contents of systemd</title>
[f896e21c]351
352 <segmentedlist>
353 <segtitle>Installed programs</segtitle>
354 <segtitle>Installed libraries</segtitle>
355 <segtitle>Installed directories</segtitle>
356
357 <seglistitem>
[78cc3be]358 <seg>bootctl, busctl, coredumpctl, halt (symlink to systemctl),
359 hostnamectl, init, journalctl, kernel-install, localectl, loginctl,
[d7a9421]360 machinectl, networkctl, oomctl, portablectl, poweroff (symlink to
[78cc3be]361 systemctl), reboot (symlink to systemctl), resolvconf (symlink to
362 resolvectl), resolvectl, runlevel (symlink to systemctl), shutdown
363 (symlink to systemctl), systemctl, systemd-analyze,
[1118b17]364 systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop,
[d7a9421]365 systemd-cryptenroll, systemd-delta, systemd-detect-virt,
366 systemd-dissect, systemd-escape, systemd-hwdb, systemd-id128,
367 systemd-inhibit, systemd-machine-id-setup,
[78cc3be]368 systemd-mount, systemd-notify, systemd-nspawn, systemd-path,
[d1fbbd0]369 systemd-repart, systemd-resolve (symlink to resolvectl), systemd-run,
[d7a9421]370 systemd-socket-activate, systemd-stdio-bridge, systemd-sysext,
371 systemd-tmpfiles, systemd-tty-ask-password-agent,
372 systemd-umount (symlink to systemd-mount),
373 telinit (symlink to systemctl), timedatectl, and udevadm</seg>
[1118b17]374 <seg>libnss_myhostname.so.2, libnss_mymachines.so.2,
[78cc3be]375 libnss_resolve.so.2, libnss_systemd.so.2,
[d7a9421]376 libsystemd.so, libsystemd-shared-&systemd-version;.so (in /usr/lib/systemd),
[a840e59]377 and libudev.so</seg>
[cba2d4e]378 <seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d,
379 /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev,
[d7a9421]380 /etc/xdg/systemd, /usr/lib/systemd, /usr/lib/udev, /usr/include/systemd,
[4ea78e0]381 /usr/lib/binfmt.d, /usr/lib/environment.d, /usr/lib/kernel,
382 /usr/lib/modules-load.d, /usr/lib/sysctl.d, /usr/lib/systemd,
383 /usr/lib/tmpfiles.d,
[1118b17]384 /usr/share/doc/systemd-&systemd-version;, /usr/share/factory,
385 /usr/share/systemd, /var/lib/systemd, and /var/log/journal</seg>
[f896e21c]386 </seglistitem>
387 </segmentedlist>
388
389 <variablelist>
390 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
391 <?dbfo list-presentation="list"?>
392 <?dbhtml list-presentation="table"?>
393
[cba2d4e]394 <varlistentry id="bootctl">
395 <term><command>bootctl</command></term>
396 <listitem>
[6dfcfecc]397 <para>Is used to query the firmware and boot manager settings</para>
[cba2d4e]398 <indexterm zone="ch-system-systemd bootctl">
399 <primary sortas="b-bootctl">bootctl</primary>
400 </indexterm>
401 </listitem>
402 </varlistentry>
403
404 <varlistentry id="busctl">
405 <term><command>busctl</command></term>
406 <listitem>
[6dfcfecc]407 <para>Is used to introspect and monitor the D-Bus bus</para>
[cba2d4e]408 <indexterm zone="ch-system-systemd busctl">
409 <primary sortas="b-busctl">busctl</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
[1118b17]414 <varlistentry id="coredumpctl">
415 <term><command>coredumpctl</command></term>
416 <listitem>
[6dfcfecc]417 <para>Is used to retrieve coredumps from the systemd journal</para>
[1118b17]418 <indexterm zone="ch-system-systemd coredumpctl">
419 <primary sortas="b-coredumpctl">coredumpctl</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
423
[cba2d4e]424 <varlistentry id="halt">
425 <term><command>halt</command></term>
426 <listitem>
427 <para>Normally invokes <command>shutdown</command> with the
428 <parameter>-h</parameter> option, except when already in run-level 0,
429 then it tells the kernel to halt the system; it notes in the
430 file <filename>/var/log/wtmp</filename> that the system is being
[1118b17]431 brought down</para>
[cba2d4e]432 <indexterm zone="ch-system-systemd halt">
433 <primary sortas="b-halt">halt</primary>
434 </indexterm>
435 </listitem>
436 </varlistentry>
437
438 <varlistentry id="hostnamectl">
439 <term><command>hostnamectl</command></term>
440 <listitem>
[6dfcfecc]441 <para>Is used to query and change the system hostname and related
[1118b17]442 settings</para>
[cba2d4e]443 <indexterm zone="ch-system-systemd hostnamectl">
444 <primary sortas="b-hostnamectl">hostnamectl</primary>
445 </indexterm>
446 </listitem>
447 </varlistentry>
448
449 <varlistentry id="init">
450 <term><command>init</command></term>
451 <listitem>
[6dfcfecc]452 <para>Is the first process to be started when the kernel has initialized
[0d84af1]453 the hardware which takes over the boot process and starts all
[6dfcfecc]454 processes according to its configuration files. In this case, it starts
[4c8c128]455 systemd</para>
[cba2d4e]456 <indexterm zone="ch-system-systemd init">
457 <primary sortas="b-init">init</primary>
458 </indexterm>
459 </listitem>
460 </varlistentry>
461
462 <varlistentry id="journalctl">
463 <term><command>journalctl</command></term>
464 <listitem>
[6dfcfecc]465 <para>Is used to query the contents of the systemd journal</para>
[cba2d4e]466 <indexterm zone="ch-system-systemd journalctl">
467 <primary sortas="b-journalctl">journalctl</primary>
468 </indexterm>
469 </listitem>
470 </varlistentry>
471
472 <varlistentry id="kernel-install">
473 <term><command>kernel-install</command></term>
474 <listitem>
[6dfcfecc]475 <para>Is used to add and remove kernel and initramfs images to and
[4c8c128]476 from /boot. In LFS, this is done manually</para>
[cba2d4e]477 <indexterm zone="ch-system-systemd kernel-install">
478 <primary sortas="b-kernel-install">kernel-install</primary>
479 </indexterm>
480 </listitem>
481 </varlistentry>
482
483 <varlistentry id="localectl">
484 <term><command>localectl</command></term>
485 <listitem>
[6dfcfecc]486 <para>Is used to query and change the system locale and keyboard layout
[1118b17]487 settings</para>
[cba2d4e]488 <indexterm zone="ch-system-systemd localectl">
489 <primary sortas="b-localectl">localectl</primary>
490 </indexterm>
491 </listitem>
492 </varlistentry>
493
494 <varlistentry id="loginctl">
495 <term><command>loginctl</command></term>
496 <listitem>
[6dfcfecc]497 <para>Is used to introspect and control the state of the systemd Login
[1118b17]498 Manager</para>
[cba2d4e]499 <indexterm zone="ch-system-systemd loginctl">
500 <primary sortas="b-loginctl">loginctl</primary>
501 </indexterm>
502 </listitem>
503 </varlistentry>
504
505 <varlistentry id="machinectl">
506 <term><command>machinectl</command></term>
507 <listitem>
[6dfcfecc]508 <para>Is used to introspect and control the state of the systemd Virtual
[cba2d4e]509 Machine and Container Registration Manager</para>
510 <indexterm zone="ch-system-systemd machinectl">
511 <primary sortas="b-machinectl">machinectl</primary>
512 </indexterm>
513 </listitem>
514 </varlistentry>
515
[1118b17]516 <varlistentry id="networkctl">
517 <term><command>networkctl</command></term>
518 <listitem>
[6dfcfecc]519 <para>Is used to introspect and configure the state of the network
520 links configured by systemd-networkd</para>
[1118b17]521 <indexterm zone="ch-system-systemd networkctl">
522 <primary sortas="b-networkctl">networkctl</primary>
523 </indexterm>
524 </listitem>
525 </varlistentry>
526
[d7a9421]527 <varlistentry id="oomctl">
528 <term><command>oomctl</command></term>
529 <listitem>
530 <para>Controls the systemd Out Of Memory daemon</para>
531 <indexterm zone="ch-system-systemd oomctl">
532 <primary sortas="b-oomctl">oomctl</primary>
533 </indexterm>
534 </listitem>
535 </varlistentry>
536
[78cc3be]537 <varlistentry id="portablectl">
538 <term><command>portablectl</command></term>
539 <listitem>
[6dfcfecc]540 <para>Is used to attach or detach portable services from the local
[78cc3be]541 system</para>
542 <indexterm zone="ch-system-systemd portablectl">
543 <primary sortas="b-portablectl">portablectl</primary>
544 </indexterm>
545 </listitem>
546 </varlistentry>
547
[cba2d4e]548 <varlistentry id="poweroff">
549 <term><command>poweroff</command></term>
550 <listitem>
[6dfcfecc]551 <para>Instructs the kernel to halt the system and switch off the computer
[1118b17]552 (see <command>halt</command>)</para>
[cba2d4e]553 <indexterm zone="ch-system-systemd poweroff">
554 <primary sortas="b-poweroff">poweroff</primary>
555 </indexterm>
556 </listitem>
557 </varlistentry>
558
559 <varlistentry id="reboot">
560 <term><command>reboot</command></term>
[f896e21c]561 <listitem>
[6dfcfecc]562 <para>Instructs the kernel to reboot the system (see
[1118b17]563 <command>halt</command>)</para>
[cba2d4e]564 <indexterm zone="ch-system-systemd reboot">
565 <primary sortas="b-reboot">reboot</primary>
[f896e21c]566 </indexterm>
567 </listitem>
568 </varlistentry>
569
[78cc3be]570 <varlistentry id="resolvconf">
571 <term><command>resolvconf</command></term>
572 <listitem>
[6dfcfecc]573 <para>Registers DNS server and domain configuration with
[93058448]574 <command>systemd-resolved</command></para>
[78cc3be]575 <indexterm zone="ch-system-systemd resolvconf">
576 <primary sortas="b-resolvconf">resolvconf</primary>
577 </indexterm>
578 </listitem>
579 </varlistentry>
580
581 <varlistentry id="resolvectl">
582 <term><command>resolvectl</command></term>
583 <listitem>
[6dfcfecc]584 <para>Sends control commands to the network name resolution
585 manager, or resolves domain names, IPv4 and IPv6 addresses,
[4c8c128]586 DNS records, and services</para>
[78cc3be]587 <indexterm zone="ch-system-systemd resolvectl">
588 <primary sortas="b-resolvectl">resolvectl</primary>
589 </indexterm>
590 </listitem>
591 </varlistentry>
592
[cba2d4e]593 <varlistentry id="runlevel">
594 <term><command>runlevel</command></term>
[f896e21c]595 <listitem>
[6dfcfecc]596 <para>Outputs the previous and the current run-level, as noted in the
[edd83dc]597 last run-level record in <filename>/run/utmp</filename></para>
[cba2d4e]598 <indexterm zone="ch-system-systemd runlevel">
599 <primary sortas="b-runlevel">runlevel</primary>
[f896e21c]600 </indexterm>
601 </listitem>
602 </varlistentry>
603
[cba2d4e]604 <varlistentry id="shutdown">
605 <term><command>shutdown</command></term>
[f896e21c]606 <listitem>
[6dfcfecc]607 <para>Brings the system down in a safe and secure manner, signaling
608 all processes and notifying all logged-in users</para>
[cba2d4e]609 <indexterm zone="ch-system-systemd shutdown">
610 <primary sortas="b-shutdown">shutdown</primary>
[f896e21c]611 </indexterm>
612 </listitem>
613 </varlistentry>
614
[cba2d4e]615 <varlistentry id="systemctl">
616 <term><command>systemctl</command></term>
[f896e21c]617 <listitem>
[6dfcfecc]618 <para>Is used to introspect and control the state of the systemd system
[1118b17]619 and service manager</para>
[cba2d4e]620 <indexterm zone="ch-system-systemd systemctl">
621 <primary sortas="b-systemctl">systemctl</primary>
622 </indexterm>
623 </listitem>
624 </varlistentry>
625
626 <varlistentry id="systemd-analyze">
627 <term><command>systemd-analyze</command></term>
628 <listitem>
[6dfcfecc]629 <para>Is used to determine system startup performance of the current
630 boot, as well as identify troublesome systemd units</para>
[cba2d4e]631 <indexterm zone="ch-system-systemd systemd-analyze">
632 <primary sortas="b-systemd-analyze">systemd-analyze</primary>
633 </indexterm>
634 </listitem>
635 </varlistentry>
636
637 <varlistentry id="systemd-ask-password">
638 <term><command>systemd-ask-password</command></term>
639 <listitem>
[6dfcfecc]640 <para>Is used to query a system password or passphrase from the user,
[1118b17]641 using a question message specified on the command line</para>
[cba2d4e]642 <indexterm zone="ch-system-systemd systemd-ask-password">
643 <primary sortas="b-systemd-ask-password">systemd-ask-password</primary>
644 </indexterm>
645 </listitem>
646 </varlistentry>
647
648 <varlistentry id="systemd-cat">
649 <term><command>systemd-cat</command></term>
650 <listitem>
[6dfcfecc]651 <para>Is used to connect the STDOUT and STDERR outputs of a process
[4c8c128]652 with the systemd journal
[cba2d4e]653 </para>
654 <indexterm zone="ch-system-systemd systemd-cat">
655 <primary sortas="b-systemd-cat">systemd-cat</primary>
656 </indexterm>
657 </listitem>
658 </varlistentry>
659
660 <varlistentry id="systemd-cgls">
661 <term><command>systemd-cgls</command></term>
662 <listitem>
[1118b17]663 <para>Recursively shows the contents of the selected Linux control
664 group hierarchy in a tree</para>
[cba2d4e]665 <indexterm zone="ch-system-systemd systemd-cgls">
666 <primary sortas="b-systemd-cgls">systemd-cgls</primary>
667 </indexterm>
668 </listitem>
669 </varlistentry>
670
671 <varlistentry id="systemd-cgtop">
672 <term><command>systemd-cgtop</command></term>
673 <listitem>
[1118b17]674 <para>Shows the top control groups of the local Linux control group
675 hierarchy, ordered by their CPU, memory and disk I/O load</para>
[cba2d4e]676 <indexterm zone="ch-system-systemd systemd-cgtop">
677 <primary sortas="b-systemd-cgtop">systemd-cgtop</primary>
678 </indexterm>
679 </listitem>
680 </varlistentry>
681
[d7a9421]682 <varlistentry id="systemd-cryptenroll">
683 <term><command>systemd-cryptenroll</command></term>
684 <listitem>
685 <para>Is used to enroll or remove a system from full disk encryption,
686 as well as set and query private keys and recovery keys</para>
687 <indexterm zone="ch-system-systemd systemd-cryptenroll">
688 <primary sortas="b-systemd-cryptenroll">systemd-cryptenroll</primary>
689 </indexterm>
690 </listitem>
691 </varlistentry>
692
[cba2d4e]693 <varlistentry id="systemd-delta">
694 <term><command>systemd-delta</command></term>
695 <listitem>
[6dfcfecc]696 <para>Is used to identify and compare configuration files in
[cba2d4e]697 <filename class="directory">/etc</filename> that override default
[1118b17]698 counterparts in <filename class="directory">/usr</filename></para>
[cba2d4e]699 <indexterm zone="ch-system-systemd systemd-delta">
700 <primary sortas="b-systemd-delta">systemd-delta</primary>
701 </indexterm>
702 </listitem>
703 </varlistentry>
704
705 <varlistentry id="systemd-detect-virt">
706 <term><command>systemd-detect-virt</command></term>
707 <listitem>
[6dfcfecc]708 <para>Detects whether the system is being run in a virtual
[4c8c128]709 environment, and adjusts udev accordingly</para>
[cba2d4e]710 <indexterm zone="ch-system-systemd systemd-detect-virt">
711 <primary sortas="b-systemd-detect-virt">systemd-detect-virt</primary>
712 </indexterm>
713 </listitem>
714 </varlistentry>
715
[38de42d]716 <varlistentry id="systemd-dissect">
717 <term><command>systemd-dissect</command></term>
718 <listitem>
[4c8c128]719 <para>Is used to inspect OS disk images</para>
[38de42d]720 <indexterm zone="ch-system-systemd systemd-dissect">
721 <primary sortas="b-systemd-dissect">systemd-dissect</primary>
722 </indexterm>
723 </listitem>
724 </varlistentry>
725
[1118b17]726 <varlistentry id="systemd-escape">
727 <term><command>systemd-escape</command></term>
728 <listitem>
[6dfcfecc]729 <para>Is used to escape strings for inclusion in systemd unit
[1118b17]730 names</para>
731 <indexterm zone="ch-system-systemd systemd-escape">
732 <primary sortas="b-systemd-escape">systemd-escape</primary>
733 </indexterm>
734 </listitem>
735 </varlistentry>
736
737 <varlistentry id="systemd-hwdb">
738 <term><command>systemd-hwdb</command></term>
739 <listitem>
[6dfcfecc]740 <para>Is used to manage the hardware database (hwdb)</para>
[1118b17]741 <indexterm zone="ch-system-systemd systemd-hwdb">
742 <primary sortas="b-systemd-hwdb">systemd-hwdb</primary>
743 </indexterm>
744 </listitem>
745 </varlistentry>
746
[78cc3be]747 <varlistentry id="systemd-id128">
748 <term><command>systemd-id128</command></term>
749 <listitem>
[6dfcfecc]750 <para>Generates and prints id128 strings</para>
[78cc3be]751 <indexterm zone="ch-system-systemd systemd-id128">
752 <primary sortas="b-systemd-id128">systemd-id128</primary>
753 </indexterm>
754 </listitem>
755 </varlistentry>
756
[cba2d4e]757 <varlistentry id="systemd-inhibit">
758 <term><command>systemd-inhibit</command></term>
759 <listitem>
[6dfcfecc]760 <para>Is used to execute a program with a shutdown, sleep or idle
761 inhibitor lock taken, preventing an action such as a system shutdown
[4c8c128]762 until the process is completed</para>
[cba2d4e]763 <indexterm zone="ch-system-systemd systemd-inhibit">
764 <primary sortas="b-systemd-inhibit">systemd-inhibit</primary>
765 </indexterm>
766 </listitem>
767 </varlistentry>
768
769 <varlistentry id="systemd-machine-id-setup">
770 <term><command>systemd-machine-id-setup</command></term>
771 <listitem>
[6dfcfecc]772 <para>Is used by system installer tools to initialize the machine ID
[1118b17]773 stored in <filename>/etc/machine-id</filename> at install time with a
774 randomly generated ID</para>
[cba2d4e]775 <indexterm zone="ch-system-systemd systemd-machine-id-setup">
776 <primary sortas="b-systemd-machine-id-setup">systemd-machine-id-setup</primary>
777 </indexterm>
778 </listitem>
779 </varlistentry>
780
[13c8b42]781 <varlistentry id="systemd-mount">
782 <term><command>systemd-mount</command></term>
783 <listitem>
[4c8c128]784 <para>Is used to temporarily mount or automount disks</para>
[13c8b42]785 <indexterm zone="ch-system-systemd systemd-mount">
786 <primary sortas="b-systemd-mount">systemd-mount</primary>
787 </indexterm>
788 </listitem>
789 </varlistentry>
790
[cba2d4e]791 <varlistentry id="systemd-notify">
792 <term><command>systemd-notify</command></term>
793 <listitem>
[6dfcfecc]794 <para>Is used by daemon scripts to notify the init system about status
[1118b17]795 changes</para>
[cba2d4e]796 <indexterm zone="ch-system-systemd systemd-notify">
797 <primary sortas="b-systemd-notify">systemd-notify</primary>
798 </indexterm>
799 </listitem>
800 </varlistentry>
801
802 <varlistentry id="systemd-nspawn">
803 <term><command>systemd-nspawn</command></term>
804 <listitem>
[6dfcfecc]805 <para>Is used to run a command or OS in a light-weight namespace
[1118b17]806 container</para>
[cba2d4e]807 <indexterm zone="ch-system-systemd systemd-nspawn">
808 <primary sortas="b-systemd-nspawn">systemd-nspawn</primary>
809 </indexterm>
810 </listitem>
811 </varlistentry>
812
[1118b17]813 <varlistentry id="systemd-path">
814 <term><command>systemd-path</command></term>
815 <listitem>
[6dfcfecc]816 <para>Is used to query system and user paths</para>
[1118b17]817 <indexterm zone="ch-system-systemd systemd-path">
818 <primary sortas="b-systemd-path">systemd-path</primary>
819 </indexterm>
820 </listitem>
821 </varlistentry>
822
[d1fbbd0]823 <varlistentry id="systemd-repart">
824 <term><command>systemd-repart</command></term>
825 <listitem>
[6dfcfecc]826 <para>Is used to grow and add partitions to a partition table when
[4c8c128]827 systemd is used in an OS image (e.g. a container)</para>
[d1fbbd0]828 <indexterm zone="ch-system-systemd systemd-repart">
829 <primary sortas="b-systemd-repart">systemd-repart</primary>
830 </indexterm>
831 </listitem>
832 </varlistentry>
833
[1118b17]834 <varlistentry id="systemd-resolve">
835 <term><command>systemd-resolve</command></term>
836 <listitem>
[6dfcfecc]837 <para>Is used to resolve domain names, IPV4 and IPv6 addresses, DNS
[1118b17]838 resource records, and services</para>
839 <indexterm zone="ch-system-systemd systemd-resolve">
840 <primary sortas="b-systemd-resolve">systemd-resolve</primary>
841 </indexterm>
842 </listitem>
843 </varlistentry>
844
[cba2d4e]845 <varlistentry id="systemd-run">
846 <term><command>systemd-run</command></term>
847 <listitem>
[6dfcfecc]848 <para>Is used to create and start a transient .service or a .scope
849 unit and run the specified command in it. This is useful for
[4c8c128]850 validating systemd units</para>
[cba2d4e]851 <indexterm zone="ch-system-systemd systemd-run">
852 <primary sortas="b-systemd-run">systemd-run</primary>
853 </indexterm>
854 </listitem>
855 </varlistentry>
856
[13c8b42]857 <varlistentry id="systemd-socket-activate">
858 <term><command>systemd-socket-activate</command></term>
859 <listitem>
[6dfcfecc]860 <para>Is used to listen on socket devices and launch a process upon
[4c8c128]861 a successful connection to the socket</para>
[13c8b42]862 <indexterm zone="ch-system-systemd systemd-socket-activate">
863 <primary sortas="b-systemd-socket-activate">systemd-socket-activate</primary>
864 </indexterm>
865 </listitem>
866 </varlistentry>
867
[d7a9421]868 <varlistentry id="systemd-sysext">
869 <term><command>systemd-sysext</command></term>
870 <listitem>
[871fd2f]871 <para>Activates system extension images</para>
[d7a9421]872 <indexterm zone="ch-system-systemd systemd-sysext">
873 <primary sortas="b-systemd-sysext">systemd-sysext</primary>
874 </indexterm>
875 </listitem>
876 </varlistentry>
877
[cba2d4e]878 <varlistentry id="systemd-tmpfiles">
879 <term><command>systemd-tmpfiles</command></term>
880 <listitem>
[1118b17]881 <para>Creates, deletes and cleans up volatile and temporary files and
882 directories, based on the configuration file format and location
883 specified in
884 <filename class="directory">tmpfiles.d</filename> directories</para>
[cba2d4e]885 <indexterm zone="ch-system-systemd systemd-tmpfiles">
886 <primary sortas="b-systemd-tmpfiles">systemd-tmpfiles</primary>
887 </indexterm>
888 </listitem>
889 </varlistentry>
890
[78cc3be]891 <varlistentry id="systemd-umount">
892 <term><command>systemd-umount</command></term>
893 <listitem>
[6dfcfecc]894 <para>Unmounts mount points</para>
[78cc3be]895 <indexterm zone="ch-system-systemd systemd-umount">
896 <primary sortas="b-systemd-umount">systemd-umount</primary>
897 </indexterm>
898 </listitem>
899 </varlistentry>
900
[cba2d4e]901 <varlistentry id="systemd-tty-ask-password-agent">
902 <term><command>systemd-tty-ask-password-agent</command></term>
903 <listitem>
[6dfcfecc]904 <para>Is used to list and/or process pending systemd password
905 requests</para>
[cba2d4e]906 <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent">
907 <primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary>
908 </indexterm>
909 </listitem>
910 </varlistentry>
911
912 <varlistentry id="telinit">
913 <term><command>telinit</command></term>
914 <listitem>
[1118b17]915 <para>Tells <command>init</command> which run-level to change
916 to</para>
[cba2d4e]917 <indexterm zone="ch-system-systemd telinit">
918 <primary sortas="b-telinit">telinit</primary>
919 </indexterm>
920 </listitem>
921 </varlistentry>
922
923 <varlistentry id="timedatectl">
924 <term><command>timedatectl</command></term>
925 <listitem>
[6dfcfecc]926 <para>Is used to query and change the system clock and its settings
[cba2d4e]927 </para>
928 <indexterm zone="ch-system-systemd timedatectl">
929 <primary sortas="b-timedatectl">timedatectl</primary>
[f896e21c]930 </indexterm>
931 </listitem>
932 </varlistentry>
933
934 <varlistentry id="udevadm">
935 <term><command>udevadm</command></term>
936 <listitem>
[6dfcfecc]937 <para>Is a generic udev administration tool which controls the udevd
938 daemon, provides info from the Udev hardware database, monitors
939 uevents, waits for uevents to finish, tests udev configuration, and
940 triggers uevents for a given device</para>
[cba2d4e]941 <indexterm zone="ch-system-systemd udevadm">
[f896e21c]942 <primary sortas="b-udevadm">udevadm</primary>
943 </indexterm>
944 </listitem>
945 </varlistentry>
946
[cba2d4e]947 <varlistentry id="libsystemd">
948 <term><filename class="libraryfile">libsystemd</filename></term>
[f896e21c]949 <listitem>
[6dfcfecc]950 <para>Is the main systemd utility library</para>
[cba2d4e]951 <indexterm zone="ch-system-systemd libsystemd">
952 <primary sortas="c-libsystemd">libsystemd</primary>
[f896e21c]953 </indexterm>
954 </listitem>
955 </varlistentry>
956
957 <varlistentry id="libudev">
958 <term><filename class="libraryfile">libudev</filename></term>
959 <listitem>
[6dfcfecc]960 <para>Is a library to access Udev device information</para>
[cba2d4e]961 <indexterm zone="ch-system-systemd libudev">
[f896e21c]962 <primary sortas="c-libudev">libudev</primary>
963 </indexterm>
964 </listitem>
965 </varlistentry>
966
967 </variablelist>
968
969 </sect2>
970
971</sect1>
Note: See TracBrowser for help on using the repository browser.