source: chapter08/systemd.xml@ 3a4f80c

multilib
Last change on this file since 3a4f80c was da2e8cb, checked in by Thomas Trepl <thomas@…>, 11 months ago

Automatic merge of trunk into multilib

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