source: chapter08/systemd.xml@ 372bbbb

multilib
Last change on this file since 372bbbb was 372bbbb, checked in by Thomas Trepl <thomas@…>, 8 months ago

Automatic merge of trunk into multilib

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