source: chapter08/systemd.xml@ 2858f02

multilib xry111/multilib
Last change on this file since 2858f02 was d09e490, checked in by Thomas Trepl <thomas@…>, 19 months ago

Automatic merge of trunk into multilib

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