source: chapter08/systemd.xml@ df462a9

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

Merge pre-LFS-11-0 changes

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