source: chapter08/systemd.xml@ 2590473

multilib
Last change on this file since 2590473 was 2590473, checked in by Thomas Trepl (Moody) <thomas@…>, 2 years ago

Automatic merge of trunk into multilib

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