source: chapter08/systemd.xml@ 75b797b

multilib xry111/multilib
Last change on this file since 75b797b was b1169eb, checked in by Thomas Trepl <thomas@…>, 2 months ago

Automatic merge of trunk into multilib

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