source: chapter08/systemd.xml@ 0ebda11

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

Remove entities for multilib pathes
Add usage of libc_cv_rtlddir

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