source: chapter08/systemd.xml@ b84eff0

multilib xry111/multilib
Last change on this file since b84eff0 was c931e9d, checked in by Thomas Trepl <thomas@…>, 12 months ago

Automatic merge of trunk into multilib

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