source: chapter08/systemd.xml@ 77ea132

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

Automatic merge of trunk into multilib

  • Property mode set to 100644
File size: 35.6 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>
[662f649]352 <seg>busctl, coredumpctl, halt (symlink to systemctl),
[78cc3be]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,
[662f649]359 systemd-creds, systemd-delta, systemd-detect-virt,
[d7a9421]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="busctl">
389 <term><command>busctl</command></term>
390 <listitem>
[6dfcfecc]391 <para>Is used to introspect and monitor the D-Bus bus</para>
[cba2d4e]392 <indexterm zone="ch-system-systemd busctl">
393 <primary sortas="b-busctl">busctl</primary>
394 </indexterm>
395 </listitem>
396 </varlistentry>
397
[1118b17]398 <varlistentry id="coredumpctl">
399 <term><command>coredumpctl</command></term>
400 <listitem>
[6dfcfecc]401 <para>Is used to retrieve coredumps from the systemd journal</para>
[1118b17]402 <indexterm zone="ch-system-systemd coredumpctl">
403 <primary sortas="b-coredumpctl">coredumpctl</primary>
404 </indexterm>
405 </listitem>
406 </varlistentry>
407
[cba2d4e]408 <varlistentry id="halt">
409 <term><command>halt</command></term>
410 <listitem>
411 <para>Normally invokes <command>shutdown</command> with the
412 <parameter>-h</parameter> option, except when already in run-level 0,
413 then it tells the kernel to halt the system; it notes in the
414 file <filename>/var/log/wtmp</filename> that the system is being
[1118b17]415 brought down</para>
[cba2d4e]416 <indexterm zone="ch-system-systemd halt">
417 <primary sortas="b-halt">halt</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
422 <varlistentry id="hostnamectl">
423 <term><command>hostnamectl</command></term>
424 <listitem>
[6dfcfecc]425 <para>Is used to query and change the system hostname and related
[1118b17]426 settings</para>
[cba2d4e]427 <indexterm zone="ch-system-systemd hostnamectl">
428 <primary sortas="b-hostnamectl">hostnamectl</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
433 <varlistentry id="init">
434 <term><command>init</command></term>
435 <listitem>
[6dfcfecc]436 <para>Is the first process to be started when the kernel has initialized
[d672ab7]437 the hardware which takes over the boot process and starts all
[6dfcfecc]438 processes according to its configuration files. In this case, it starts
[4c8c128]439 systemd</para>
[cba2d4e]440 <indexterm zone="ch-system-systemd init">
441 <primary sortas="b-init">init</primary>
442 </indexterm>
443 </listitem>
444 </varlistentry>
445
446 <varlistentry id="journalctl">
447 <term><command>journalctl</command></term>
448 <listitem>
[6dfcfecc]449 <para>Is used to query the contents of the systemd journal</para>
[cba2d4e]450 <indexterm zone="ch-system-systemd journalctl">
451 <primary sortas="b-journalctl">journalctl</primary>
452 </indexterm>
453 </listitem>
454 </varlistentry>
455
456 <varlistentry id="kernel-install">
457 <term><command>kernel-install</command></term>
458 <listitem>
[6dfcfecc]459 <para>Is used to add and remove kernel and initramfs images to and
[4c8c128]460 from /boot. In LFS, this is done manually</para>
[cba2d4e]461 <indexterm zone="ch-system-systemd kernel-install">
462 <primary sortas="b-kernel-install">kernel-install</primary>
463 </indexterm>
464 </listitem>
465 </varlistentry>
466
467 <varlistentry id="localectl">
468 <term><command>localectl</command></term>
469 <listitem>
[6dfcfecc]470 <para>Is used to query and change the system locale and keyboard layout
[1118b17]471 settings</para>
[cba2d4e]472 <indexterm zone="ch-system-systemd localectl">
473 <primary sortas="b-localectl">localectl</primary>
474 </indexterm>
475 </listitem>
476 </varlistentry>
477
478 <varlistentry id="loginctl">
479 <term><command>loginctl</command></term>
480 <listitem>
[6dfcfecc]481 <para>Is used to introspect and control the state of the systemd Login
[1118b17]482 Manager</para>
[cba2d4e]483 <indexterm zone="ch-system-systemd loginctl">
484 <primary sortas="b-loginctl">loginctl</primary>
485 </indexterm>
486 </listitem>
487 </varlistentry>
488
489 <varlistentry id="machinectl">
490 <term><command>machinectl</command></term>
491 <listitem>
[6dfcfecc]492 <para>Is used to introspect and control the state of the systemd Virtual
[cba2d4e]493 Machine and Container Registration Manager</para>
494 <indexterm zone="ch-system-systemd machinectl">
495 <primary sortas="b-machinectl">machinectl</primary>
496 </indexterm>
497 </listitem>
498 </varlistentry>
499
[1118b17]500 <varlistentry id="networkctl">
501 <term><command>networkctl</command></term>
502 <listitem>
[d672ab7]503 <para>Is used to introspect and configure the state of the network
[6dfcfecc]504 links configured by systemd-networkd</para>
[1118b17]505 <indexterm zone="ch-system-systemd networkctl">
506 <primary sortas="b-networkctl">networkctl</primary>
507 </indexterm>
508 </listitem>
509 </varlistentry>
510
[d7a9421]511 <varlistentry id="oomctl">
512 <term><command>oomctl</command></term>
513 <listitem>
514 <para>Controls the systemd Out Of Memory daemon</para>
515 <indexterm zone="ch-system-systemd oomctl">
516 <primary sortas="b-oomctl">oomctl</primary>
517 </indexterm>
518 </listitem>
519 </varlistentry>
520
[78cc3be]521 <varlistentry id="portablectl">
522 <term><command>portablectl</command></term>
523 <listitem>
[6dfcfecc]524 <para>Is used to attach or detach portable services from the local
[78cc3be]525 system</para>
526 <indexterm zone="ch-system-systemd portablectl">
527 <primary sortas="b-portablectl">portablectl</primary>
528 </indexterm>
529 </listitem>
530 </varlistentry>
531
[cba2d4e]532 <varlistentry id="poweroff">
533 <term><command>poweroff</command></term>
534 <listitem>
[6dfcfecc]535 <para>Instructs the kernel to halt the system and switch off the computer
[1118b17]536 (see <command>halt</command>)</para>
[cba2d4e]537 <indexterm zone="ch-system-systemd poweroff">
538 <primary sortas="b-poweroff">poweroff</primary>
539 </indexterm>
540 </listitem>
541 </varlistentry>
542
543 <varlistentry id="reboot">
544 <term><command>reboot</command></term>
[f896e21c]545 <listitem>
[6dfcfecc]546 <para>Instructs the kernel to reboot the system (see
[1118b17]547 <command>halt</command>)</para>
[cba2d4e]548 <indexterm zone="ch-system-systemd reboot">
549 <primary sortas="b-reboot">reboot</primary>
[f896e21c]550 </indexterm>
551 </listitem>
552 </varlistentry>
553
[78cc3be]554 <varlistentry id="resolvconf">
555 <term><command>resolvconf</command></term>
556 <listitem>
[6dfcfecc]557 <para>Registers DNS server and domain configuration with
[93058448]558 <command>systemd-resolved</command></para>
[78cc3be]559 <indexterm zone="ch-system-systemd resolvconf">
560 <primary sortas="b-resolvconf">resolvconf</primary>
561 </indexterm>
562 </listitem>
563 </varlistentry>
564
565 <varlistentry id="resolvectl">
566 <term><command>resolvectl</command></term>
567 <listitem>
[6dfcfecc]568 <para>Sends control commands to the network name resolution
569 manager, or resolves domain names, IPv4 and IPv6 addresses,
[4c8c128]570 DNS records, and services</para>
[78cc3be]571 <indexterm zone="ch-system-systemd resolvectl">
572 <primary sortas="b-resolvectl">resolvectl</primary>
573 </indexterm>
574 </listitem>
575 </varlistentry>
576
[cba2d4e]577 <varlistentry id="runlevel">
578 <term><command>runlevel</command></term>
[f896e21c]579 <listitem>
[6dfcfecc]580 <para>Outputs the previous and the current run-level, as noted in the
[edd83dc]581 last run-level record in <filename>/run/utmp</filename></para>
[cba2d4e]582 <indexterm zone="ch-system-systemd runlevel">
583 <primary sortas="b-runlevel">runlevel</primary>
[f896e21c]584 </indexterm>
585 </listitem>
586 </varlistentry>
587
[cba2d4e]588 <varlistentry id="shutdown">
589 <term><command>shutdown</command></term>
[f896e21c]590 <listitem>
[d672ab7]591 <para>Brings the system down in a safe and secure manner, signaling
[6dfcfecc]592 all processes and notifying all logged-in users</para>
[cba2d4e]593 <indexterm zone="ch-system-systemd shutdown">
594 <primary sortas="b-shutdown">shutdown</primary>
[f896e21c]595 </indexterm>
596 </listitem>
597 </varlistentry>
598
[cba2d4e]599 <varlistentry id="systemctl">
600 <term><command>systemctl</command></term>
[f896e21c]601 <listitem>
[6dfcfecc]602 <para>Is used to introspect and control the state of the systemd system
[1118b17]603 and service manager</para>
[cba2d4e]604 <indexterm zone="ch-system-systemd systemctl">
605 <primary sortas="b-systemctl">systemctl</primary>
606 </indexterm>
607 </listitem>
608 </varlistentry>
609
610 <varlistentry id="systemd-analyze">
611 <term><command>systemd-analyze</command></term>
612 <listitem>
[6dfcfecc]613 <para>Is used to determine system startup performance of the current
614 boot, as well as identify troublesome systemd units</para>
[cba2d4e]615 <indexterm zone="ch-system-systemd systemd-analyze">
616 <primary sortas="b-systemd-analyze">systemd-analyze</primary>
617 </indexterm>
618 </listitem>
619 </varlistentry>
620
621 <varlistentry id="systemd-ask-password">
622 <term><command>systemd-ask-password</command></term>
623 <listitem>
[6dfcfecc]624 <para>Is used to query a system password or passphrase from the user,
[1118b17]625 using a question message specified on the command line</para>
[cba2d4e]626 <indexterm zone="ch-system-systemd systemd-ask-password">
627 <primary sortas="b-systemd-ask-password">systemd-ask-password</primary>
628 </indexterm>
629 </listitem>
630 </varlistentry>
631
632 <varlistentry id="systemd-cat">
633 <term><command>systemd-cat</command></term>
634 <listitem>
[6dfcfecc]635 <para>Is used to connect the STDOUT and STDERR outputs of a process
[4c8c128]636 with the systemd journal
[cba2d4e]637 </para>
638 <indexterm zone="ch-system-systemd systemd-cat">
639 <primary sortas="b-systemd-cat">systemd-cat</primary>
640 </indexterm>
641 </listitem>
642 </varlistentry>
643
644 <varlistentry id="systemd-cgls">
645 <term><command>systemd-cgls</command></term>
646 <listitem>
[1118b17]647 <para>Recursively shows the contents of the selected Linux control
648 group hierarchy in a tree</para>
[cba2d4e]649 <indexterm zone="ch-system-systemd systemd-cgls">
650 <primary sortas="b-systemd-cgls">systemd-cgls</primary>
651 </indexterm>
652 </listitem>
653 </varlistentry>
654
655 <varlistentry id="systemd-cgtop">
656 <term><command>systemd-cgtop</command></term>
657 <listitem>
[1118b17]658 <para>Shows the top control groups of the local Linux control group
659 hierarchy, ordered by their CPU, memory and disk I/O load</para>
[cba2d4e]660 <indexterm zone="ch-system-systemd systemd-cgtop">
661 <primary sortas="b-systemd-cgtop">systemd-cgtop</primary>
662 </indexterm>
663 </listitem>
664 </varlistentry>
665
[662f649]666 <varlistentry id="systemd-creds">
667 <term><command>systemd-creds</command></term>
[d7a9421]668 <listitem>
[662f649]669 <para>Displays and processes credentials.</para>
670 <indexterm zone="ch-system-systemd systemd-creds">
671 <primary sortas="b-systemd-creds">systemd-creds</primary>
[d7a9421]672 </indexterm>
673 </listitem>
674 </varlistentry>
675
[cba2d4e]676 <varlistentry id="systemd-delta">
677 <term><command>systemd-delta</command></term>
678 <listitem>
[6dfcfecc]679 <para>Is used to identify and compare configuration files in
[cba2d4e]680 <filename class="directory">/etc</filename> that override default
[1118b17]681 counterparts in <filename class="directory">/usr</filename></para>
[cba2d4e]682 <indexterm zone="ch-system-systemd systemd-delta">
683 <primary sortas="b-systemd-delta">systemd-delta</primary>
684 </indexterm>
685 </listitem>
686 </varlistentry>
687
688 <varlistentry id="systemd-detect-virt">
689 <term><command>systemd-detect-virt</command></term>
690 <listitem>
[6dfcfecc]691 <para>Detects whether the system is being run in a virtual
[4c8c128]692 environment, and adjusts udev accordingly</para>
[cba2d4e]693 <indexterm zone="ch-system-systemd systemd-detect-virt">
694 <primary sortas="b-systemd-detect-virt">systemd-detect-virt</primary>
695 </indexterm>
696 </listitem>
697 </varlistentry>
698
[38de42d]699 <varlistentry id="systemd-dissect">
700 <term><command>systemd-dissect</command></term>
701 <listitem>
[4c8c128]702 <para>Is used to inspect OS disk images</para>
[38de42d]703 <indexterm zone="ch-system-systemd systemd-dissect">
704 <primary sortas="b-systemd-dissect">systemd-dissect</primary>
705 </indexterm>
706 </listitem>
707 </varlistentry>
708
[1118b17]709 <varlistentry id="systemd-escape">
710 <term><command>systemd-escape</command></term>
711 <listitem>
[6dfcfecc]712 <para>Is used to escape strings for inclusion in systemd unit
[1118b17]713 names</para>
714 <indexterm zone="ch-system-systemd systemd-escape">
715 <primary sortas="b-systemd-escape">systemd-escape</primary>
716 </indexterm>
717 </listitem>
718 </varlistentry>
719
720 <varlistentry id="systemd-hwdb">
721 <term><command>systemd-hwdb</command></term>
722 <listitem>
[6dfcfecc]723 <para>Is used to manage the hardware database (hwdb)</para>
[1118b17]724 <indexterm zone="ch-system-systemd systemd-hwdb">
725 <primary sortas="b-systemd-hwdb">systemd-hwdb</primary>
726 </indexterm>
727 </listitem>
728 </varlistentry>
729
[78cc3be]730 <varlistentry id="systemd-id128">
731 <term><command>systemd-id128</command></term>
732 <listitem>
[6dfcfecc]733 <para>Generates and prints id128 strings</para>
[78cc3be]734 <indexterm zone="ch-system-systemd systemd-id128">
735 <primary sortas="b-systemd-id128">systemd-id128</primary>
736 </indexterm>
737 </listitem>
738 </varlistentry>
739
[cba2d4e]740 <varlistentry id="systemd-inhibit">
741 <term><command>systemd-inhibit</command></term>
742 <listitem>
[6dfcfecc]743 <para>Is used to execute a program with a shutdown, sleep or idle
744 inhibitor lock taken, preventing an action such as a system shutdown
[4c8c128]745 until the process is completed</para>
[cba2d4e]746 <indexterm zone="ch-system-systemd systemd-inhibit">
747 <primary sortas="b-systemd-inhibit">systemd-inhibit</primary>
748 </indexterm>
749 </listitem>
750 </varlistentry>
751
752 <varlistentry id="systemd-machine-id-setup">
753 <term><command>systemd-machine-id-setup</command></term>
754 <listitem>
[6dfcfecc]755 <para>Is used by system installer tools to initialize the machine ID
[1118b17]756 stored in <filename>/etc/machine-id</filename> at install time with a
757 randomly generated ID</para>
[cba2d4e]758 <indexterm zone="ch-system-systemd systemd-machine-id-setup">
759 <primary sortas="b-systemd-machine-id-setup">systemd-machine-id-setup</primary>
760 </indexterm>
761 </listitem>
762 </varlistentry>
763
[13c8b42]764 <varlistentry id="systemd-mount">
765 <term><command>systemd-mount</command></term>
766 <listitem>
[4c8c128]767 <para>Is used to temporarily mount or automount disks</para>
[13c8b42]768 <indexterm zone="ch-system-systemd systemd-mount">
769 <primary sortas="b-systemd-mount">systemd-mount</primary>
770 </indexterm>
771 </listitem>
772 </varlistentry>
773
[cba2d4e]774 <varlistentry id="systemd-notify">
775 <term><command>systemd-notify</command></term>
776 <listitem>
[6dfcfecc]777 <para>Is used by daemon scripts to notify the init system about status
[1118b17]778 changes</para>
[cba2d4e]779 <indexterm zone="ch-system-systemd systemd-notify">
780 <primary sortas="b-systemd-notify">systemd-notify</primary>
781 </indexterm>
782 </listitem>
783 </varlistentry>
784
785 <varlistentry id="systemd-nspawn">
786 <term><command>systemd-nspawn</command></term>
787 <listitem>
[6dfcfecc]788 <para>Is used to run a command or OS in a light-weight namespace
[1118b17]789 container</para>
[cba2d4e]790 <indexterm zone="ch-system-systemd systemd-nspawn">
791 <primary sortas="b-systemd-nspawn">systemd-nspawn</primary>
792 </indexterm>
793 </listitem>
794 </varlistentry>
795
[1118b17]796 <varlistentry id="systemd-path">
797 <term><command>systemd-path</command></term>
798 <listitem>
[6dfcfecc]799 <para>Is used to query system and user paths</para>
[1118b17]800 <indexterm zone="ch-system-systemd systemd-path">
801 <primary sortas="b-systemd-path">systemd-path</primary>
802 </indexterm>
803 </listitem>
804 </varlistentry>
805
[d1fbbd0]806 <varlistentry id="systemd-repart">
807 <term><command>systemd-repart</command></term>
808 <listitem>
[6dfcfecc]809 <para>Is used to grow and add partitions to a partition table when
[4c8c128]810 systemd is used in an OS image (e.g. a container)</para>
[d1fbbd0]811 <indexterm zone="ch-system-systemd systemd-repart">
812 <primary sortas="b-systemd-repart">systemd-repart</primary>
813 </indexterm>
814 </listitem>
815 </varlistentry>
816
[1118b17]817 <varlistentry id="systemd-resolve">
818 <term><command>systemd-resolve</command></term>
819 <listitem>
[6dfcfecc]820 <para>Is used to resolve domain names, IPV4 and IPv6 addresses, DNS
[1118b17]821 resource records, and services</para>
822 <indexterm zone="ch-system-systemd systemd-resolve">
823 <primary sortas="b-systemd-resolve">systemd-resolve</primary>
824 </indexterm>
825 </listitem>
826 </varlistentry>
827
[cba2d4e]828 <varlistentry id="systemd-run">
829 <term><command>systemd-run</command></term>
830 <listitem>
[6dfcfecc]831 <para>Is used to create and start a transient .service or a .scope
832 unit and run the specified command in it. This is useful for
[4c8c128]833 validating systemd units</para>
[cba2d4e]834 <indexterm zone="ch-system-systemd systemd-run">
835 <primary sortas="b-systemd-run">systemd-run</primary>
836 </indexterm>
837 </listitem>
838 </varlistentry>
839
[13c8b42]840 <varlistentry id="systemd-socket-activate">
841 <term><command>systemd-socket-activate</command></term>
842 <listitem>
[6dfcfecc]843 <para>Is used to listen on socket devices and launch a process upon
[4c8c128]844 a successful connection to the socket</para>
[13c8b42]845 <indexterm zone="ch-system-systemd systemd-socket-activate">
846 <primary sortas="b-systemd-socket-activate">systemd-socket-activate</primary>
847 </indexterm>
848 </listitem>
849 </varlistentry>
850
[d7a9421]851 <varlistentry id="systemd-sysext">
852 <term><command>systemd-sysext</command></term>
853 <listitem>
[871fd2f]854 <para>Activates system extension images</para>
[d7a9421]855 <indexterm zone="ch-system-systemd systemd-sysext">
856 <primary sortas="b-systemd-sysext">systemd-sysext</primary>
857 </indexterm>
858 </listitem>
859 </varlistentry>
860
[cba2d4e]861 <varlistentry id="systemd-tmpfiles">
862 <term><command>systemd-tmpfiles</command></term>
863 <listitem>
[1118b17]864 <para>Creates, deletes and cleans up volatile and temporary files and
865 directories, based on the configuration file format and location
866 specified in
867 <filename class="directory">tmpfiles.d</filename> directories</para>
[cba2d4e]868 <indexterm zone="ch-system-systemd systemd-tmpfiles">
869 <primary sortas="b-systemd-tmpfiles">systemd-tmpfiles</primary>
870 </indexterm>
871 </listitem>
872 </varlistentry>
873
[78cc3be]874 <varlistentry id="systemd-umount">
875 <term><command>systemd-umount</command></term>
876 <listitem>
[6dfcfecc]877 <para>Unmounts mount points</para>
[78cc3be]878 <indexterm zone="ch-system-systemd systemd-umount">
879 <primary sortas="b-systemd-umount">systemd-umount</primary>
880 </indexterm>
881 </listitem>
882 </varlistentry>
883
[cba2d4e]884 <varlistentry id="systemd-tty-ask-password-agent">
885 <term><command>systemd-tty-ask-password-agent</command></term>
886 <listitem>
[d672ab7]887 <para>Is used to list and/or process pending systemd password
[6dfcfecc]888 requests</para>
[cba2d4e]889 <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent">
890 <primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary>
891 </indexterm>
892 </listitem>
893 </varlistentry>
894
895 <varlistentry id="telinit">
896 <term><command>telinit</command></term>
897 <listitem>
[1118b17]898 <para>Tells <command>init</command> which run-level to change
899 to</para>
[cba2d4e]900 <indexterm zone="ch-system-systemd telinit">
901 <primary sortas="b-telinit">telinit</primary>
902 </indexterm>
903 </listitem>
904 </varlistentry>
905
906 <varlistentry id="timedatectl">
907 <term><command>timedatectl</command></term>
908 <listitem>
[6dfcfecc]909 <para>Is used to query and change the system clock and its settings
[cba2d4e]910 </para>
911 <indexterm zone="ch-system-systemd timedatectl">
912 <primary sortas="b-timedatectl">timedatectl</primary>
[f896e21c]913 </indexterm>
914 </listitem>
915 </varlistentry>
916
917 <varlistentry id="udevadm">
918 <term><command>udevadm</command></term>
919 <listitem>
[d672ab7]920 <para>Is a generic udev administration tool which controls the udevd
921 daemon, provides info from the Udev hardware database, monitors
922 uevents, waits for uevents to finish, tests udev configuration, and
[6dfcfecc]923 triggers uevents for a given device</para>
[cba2d4e]924 <indexterm zone="ch-system-systemd udevadm">
[f896e21c]925 <primary sortas="b-udevadm">udevadm</primary>
926 </indexterm>
927 </listitem>
928 </varlistentry>
929
[cba2d4e]930 <varlistentry id="libsystemd">
931 <term><filename class="libraryfile">libsystemd</filename></term>
[f896e21c]932 <listitem>
[6dfcfecc]933 <para>Is the main systemd utility library</para>
[cba2d4e]934 <indexterm zone="ch-system-systemd libsystemd">
935 <primary sortas="c-libsystemd">libsystemd</primary>
[f896e21c]936 </indexterm>
937 </listitem>
938 </varlistentry>
939
940 <varlistentry id="libudev">
941 <term><filename class="libraryfile">libudev</filename></term>
942 <listitem>
[6dfcfecc]943 <para>Is a library to access Udev device information</para>
[cba2d4e]944 <indexterm zone="ch-system-systemd libudev">
[f896e21c]945 <primary sortas="c-libudev">libudev</primary>
946 </indexterm>
947 </listitem>
948 </varlistentry>
949
950 </variablelist>
951
952 </sect2>
953
954</sect1>
Note: See TracBrowser for help on using the repository browser.