source: chapter08/systemd.xml@ e74dffd4

multilib xry111/multilib
Last change on this file since e74dffd4 was 511932f, checked in by Thomas Trepl <thomas@…>, 5 months ago

Automatic merge of trunk into multilib

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