source: chapter08/systemd.xml@ 0f46bd2

multilib xry111/multilib
Last change on this file since 0f46bd2 was 0f46bd2, checked in by Thomas Trepl <thomas@…>, 20 months ago

Add --lib=/usr/lib{,x}32 to get .pc files in the correct location

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