source: chapter08/systemd.xml@ 06addba

11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 06addba was 06addba, checked in by Douglas R. Reno <renodr@…>, 3 years ago

Add systemd patch to allow systemd-rfkill to work on Linux-5.11+

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12154 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 31.5 KB
RevLine 
[f896e21c]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
[35a5259]8<sect1 id="ch-system-systemd" role="wrap" revision="systemd">
[cba2d4e]9 <?dbhtml filename="systemd.html"?>
[f896e21c]10
11 <sect1info condition="script">
[cba2d4e]12 <productname>systemd</productname>
[f896e21c]13 <productnumber>&systemd-version;</productnumber>
14 <address>&systemd-url;</address>
15 </sect1info>
16
[cba2d4e]17 <title>Systemd-&systemd-version;</title>
[f896e21c]18
[cba2d4e]19 <indexterm zone="ch-system-systemd">
[1118b17]20 <primary sortas="a-systemd">systemd</primary>
[f896e21c]21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
[1118b17]26 <para>The systemd package contains programs for controlling the startup,
[cba2d4e]27 running, and shutdown of the system.</para>
[f896e21c]28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
[fb386e0]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>
[70dcd88]42
[2ca70d33]43<!--
[380fdc0]44 <para>First, apply a patch to fix the build with GCC-10 and fix a segfault:</para>
[d53fefa]45
[380fdc0]46<screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-gcc_10-fixes-2.patch</userinput></screen>
[2ca70d33]47-->
[d53fefa]48
[06addba]49 <!-- For linux-5.11's API headers changing the rfkill_event structure -->
50 <para>First, apply a patch to fix some regressions and fix functionality
51 with future versions of the kernel:</para>
[22009fb]52
[06addba]53<screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-upstream_fixes-2.patch</userinput></screen>
[22009fb]54
[9e7475a]55 <para>Create a symlink to work around the xsltproc command not being installed:</para>
[81ed05f]56
[efcb393]57<screen><userinput remap="pre">ln -sf /bin/true /usr/bin/xsltproc</userinput></screen>
[e88a471b]58
[fc199db]59 <para>Set up the man pages:</para>
60
[f7cea72]61<screen><userinput remap="pre">tar -xf ../systemd-man-pages-&systemd-version;.tar.xz</userinput></screen>
[1118b17]62
[e88a471b]63 <para>Remove tests that cannot be built in chroot:</para>
64
[22009fb]65<screen><userinput remap="pre">sed '181,$ d' -i src/resolve/meson.build</userinput></screen>
[b55310e]66
[896e77e]67 <para>Remove an unneeded group,
68 <systemitem class="groupname">render</systemitem>, from the default udev
69 rules:</para>
70
[87621f8]71<screen><userinput remap="pre">sed -i 's/GROUP="render"/GROUP="video"/' rules.d/50-udev-default.rules.in</userinput></screen>
[896e77e]72
[1118b17]73 <para>Prepare systemd for compilation:</para>
74
[c556e59]75<screen><userinput remap="configure">mkdir -p build
[04b2165]76cd build
[fc199db]77
[0f703541]78LANG=en_US.UTF-8 \
79meson --prefix=/usr \
80 --sysconfdir=/etc \
81 --localstatedir=/var \
82 -Dblkid=true \
83 -Dbuildtype=release \
84 -Ddefault-dnssec=no \
85 -Dfirstboot=false \
86 -Dinstall-tests=false \
87 -Dkmod-path=/bin/kmod \
88 -Dldconfig=false \
89 -Dmount-path=/bin/mount \
90 -Drootprefix= \
91 -Drootlibdir=/lib \
92 -Dsplit-usr=true \
93 -Dsulogin-path=/sbin/sulogin \
94 -Dsysusers=false \
95 -Dumount-path=/bin/umount \
96 -Db_lto=false \
97 -Drpmmacrosdir=no \
98 -Dhomed=false \
99 -Duserdb=false \
100 -Dman=true \
[22009fb]101 -Dmode=release \
[1446892]102 -Ddocdir=/usr/share/doc/systemd-&systemd-version; \
[fc199db]103 ..</userinput></screen>
[cba2d4e]104
105 <variablelist>
[81ed05f]106 <title>The meaning of the meson options:</title>
[cba2d4e]107
108 <varlistentry>
[81ed05f]109 <term><parameter>-D*-path=*</parameter></term>
[cba2d4e]110 <listitem>
[9e7475a]111 <para>These switches provide the location of binaries needed by
[efcb393]112 systemd at runtime that have not yet been installed.</para>
[cba2d4e]113 </listitem>
114 </varlistentry>
115
116 <varlistentry>
[81ed05f]117 <term><parameter>-Ddefault-dnssec=no</parameter></term>
[cba2d4e]118 <listitem>
[81ed05f]119 <para>This switch turns off the experimental DNSSEC support.</para>
[cba2d4e]120 </listitem>
121 </varlistentry>
122
123 <varlistentry>
[81ed05f]124 <term><parameter>-Dfirstboot=false</parameter></term>
[cba2d4e]125 <listitem>
[81ed05f]126 <para>This switch prevents installation of systemd
127 services responsible for setting up the system for
128 the first time. They are not useful for LFS because
129 everything is done manually.</para>
[cba2d4e]130 </listitem>
131 </varlistentry>
132
[e88a471b]133 <varlistentry>
134 <term><parameter>-Dinstall-tests=false</parameter></term>
135 <listitem>
136 <para>This switch prevents installation of the compiled tests.</para>
137 </listitem>
138 </varlistentry>
139
[cba2d4e]140 <varlistentry>
[0d84af1]141 <term><parameter>-Dldconfig=false</parameter></term>
[cba2d4e]142 <listitem>
[0d84af1]143 <para>This switch prevents installation of a systemd unit that runs
144 <command>ldconfig</command> at boot, which is not useful for source
145 distributions such as LFS and makes the boot time longer. Remove it
146 if the described feature is desired.</para>
[cba2d4e]147 </listitem>
148 </varlistentry>
149
150 <varlistentry>
[81ed05f]151 <term><parameter>-Droot*</parameter></term>
[cba2d4e]152 <listitem>
[81ed05f]153 <para>These switches ensure that core programs and
[9e7475a]154 shared libraries are installed in subdirectories
[81ed05f]155 of the root partition.</para>
[1118b17]156 </listitem>
157 </varlistentry>
158
159 <varlistentry>
[81ed05f]160 <term><parameter>-Dsplit-usr=true</parameter></term>
[1118b17]161 <listitem>
[81ed05f]162 <para>This switch ensures that systemd will work on
163 systems where /bin, /lib and /sbin directories are not
164 symlinks to their /usr counterparts.</para>
[1118b17]165 </listitem>
166 </varlistentry>
167
168 <varlistentry>
[81ed05f]169 <term><parameter>-Dsysusers=false</parameter></term>
[1118b17]170 <listitem>
171 <para>This switch prevents installation of systemd
172 services responsible for setting up the
173 <filename>/etc/group</filename> and
174 <filename>/etc/passwd</filename> files. Both files
[0d84af1]175 were created earlier in this chapter.</para>
[cba2d4e]176 </listitem>
177 </varlistentry>
178
[c556e59]179 <varlistentry>
180 <term><parameter>-Drpmmacrosdir=no</parameter></term>
181 <listitem>
182 <para>This switch disables installation of RPM Macros
183 for use with systemd because LFS does not support RPM.</para>
184 </listitem>
185 </varlistentry>
[c06f49a]186
187 <varlistentry>
188 <term><parameter>-D{userdb,homed}=false</parameter></term>
189 <listitem>
190 <para>Remove two daemons that have dependencies that do not fit
191 the scope of LFS.</para>
192 </listitem>
193 </varlistentry>
194
[fe42b2f]195 <varlistentry>
196 <term><parameter>-Dmode=release</parameter></term>
197 <listitem>
198 <para>Disable some features considered experimental by upstream.
199 </para>
200 </listitem>
201 </varlistentry>
202
[cba2d4e]203 </variablelist>
204
205 <para>Compile the package:</para>
206
[fc199db]207<screen><userinput remap="make">LANG=en_US.UTF-8 ninja</userinput></screen>
[f896e21c]208
209 <para>Install the package:</para>
210
[81ed05f]211<screen><userinput remap="install">LANG=en_US.UTF-8 ninja install</userinput></screen>
[cba2d4e]212
[c556e59]213 <para>Remove an unnecessary symbolic link:</para>
214
215<screen><userinput remap="install">rm -f /usr/bin/xsltproc</userinput></screen>
216
[4f8ae861]217 <para>Remove a useless directory:</para>
[a815ec7]218
219<screen><userinput remap="install">rm -rf /usr/lib/pam.d</userinput></screen>
220
[cba2d4e]221 <para>Create the <filename>/etc/machine-id</filename> file needed by
[1118b17]222 <command>systemd-journald</command>:</para>
[053b206]223
[15f0f21]224<screen><userinput remap="adjust">systemd-machine-id-setup</userinput></screen>
[cba2d4e]225
[8a0d39ee]226 <para>Setup the basic target structure:</para>
227
228<screen><userinput remap="adjust">systemctl preset-all</userinput></screen>
[777b5cb]229
230 <para>Disable a service that is known to cause problems with systems that
231 use a network configuration other than what is provided by
232 systemd-networkd:</para>
233 <!-- Observed halting startup with dhcpcd handling the primary NIC -->
234
235<screen><userinput remap="adjust">systemctl disable systemd-time-wait-sync.service</userinput></screen>
236
[a815ec7]237<!-- dev: 50-pid-max.conf is not removed in BLFS, so I commented the following out.
238 If it causes any trouble, we can add this back and also copy it into BLFS -->
239<!--
[777b5cb]240 <para>Prevent systemd from resetting the maximum PID value which causes
241 some problems with packages and units in BLFS:</para>
[c06f49a]242
243<screen><userinput remap="adjust">rm -f /usr/lib/sysctl.d/50-pid-max.conf</userinput></screen>
[a815ec7]244-->
[777b5cb]245
[f896e21c]246 </sect2>
247
[cba2d4e]248 <sect2 id="contents-systemd" role="content">
[1118b17]249 <title>Contents of systemd</title>
[f896e21c]250
251 <segmentedlist>
252 <segtitle>Installed programs</segtitle>
253 <segtitle>Installed libraries</segtitle>
254 <segtitle>Installed directories</segtitle>
255
256 <seglistitem>
[78cc3be]257 <seg>bootctl, busctl, coredumpctl, halt (symlink to systemctl),
258 hostnamectl, init, journalctl, kernel-install, localectl, loginctl,
259 machinectl, networkctl, portablectl, poweroff (symlink to
260 systemctl), reboot (symlink to systemctl), resolvconf (symlink to
261 resolvectl), resolvectl, runlevel (symlink to systemctl), shutdown
262 (symlink to systemctl), systemctl, systemd-analyze,
[1118b17]263 systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop,
[22009fb]264 systemd-delta, systemd-detect-virt, systemd-dissect, systemd-escape,
265 systemd-hwdb, systemd-id128, systemd-inhibit, systemd-machine-id-setup,
[78cc3be]266 systemd-mount, systemd-notify, systemd-nspawn, systemd-path,
[c06f49a]267 systemd-repart, systemd-resolve (symlink to resolvectl), systemd-run,
[78cc3be]268 systemd-socket-activate, systemd-stdio-bridge, systemd-tmpfiles,
269 systemd-tty-ask-password-agent, systemd-umount (symlink to
270 systemd-mount), telinit (symlink to systemctl), timedatectl, and
271 udevadm</seg>
[1118b17]272 <seg>libnss_myhostname.so.2, libnss_mymachines.so.2,
[78cc3be]273 libnss_resolve.so.2, libnss_systemd.so.2,
274 libsystemd.so, libsystemd-shared-&systemd-version;.so (in /lib/systemd),
[a840e59]275 and libudev.so</seg>
[cba2d4e]276 <seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d,
277 /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev,
278 /etc/xdg/systemd, /lib/systemd, /lib/udev, /usr/include/systemd,
[2ca70d33]279 /usr/lib/binfmt.d, /usr/lib/environment.d, /usr/lib/kernel,
280 /usr/lib/modules-load.d, /usr/lib/sysctl.d, /usr/lib/systemd,
281 /usr/lib/tmpfiles.d,
[1118b17]282 /usr/share/doc/systemd-&systemd-version;, /usr/share/factory,
283 /usr/share/systemd, /var/lib/systemd, and /var/log/journal</seg>
[f896e21c]284 </seglistitem>
285 </segmentedlist>
286
287 <variablelist>
288 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
289 <?dbfo list-presentation="list"?>
290 <?dbhtml list-presentation="table"?>
291
[cba2d4e]292 <varlistentry id="bootctl">
293 <term><command>bootctl</command></term>
294 <listitem>
[9e7475a]295 <para>Is used to query the firmware and boot manager settings</para>
[cba2d4e]296 <indexterm zone="ch-system-systemd bootctl">
297 <primary sortas="b-bootctl">bootctl</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="busctl">
303 <term><command>busctl</command></term>
304 <listitem>
[9e7475a]305 <para>Is used to introspect and monitor the D-Bus bus</para>
[cba2d4e]306 <indexterm zone="ch-system-systemd busctl">
307 <primary sortas="b-busctl">busctl</primary>
308 </indexterm>
309 </listitem>
310 </varlistentry>
311
[1118b17]312 <varlistentry id="coredumpctl">
313 <term><command>coredumpctl</command></term>
314 <listitem>
[9e7475a]315 <para>Is used to retrieve coredumps from the systemd journal</para>
[1118b17]316 <indexterm zone="ch-system-systemd coredumpctl">
317 <primary sortas="b-coredumpctl">coredumpctl</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
[cba2d4e]322 <varlistentry id="halt">
323 <term><command>halt</command></term>
324 <listitem>
325 <para>Normally invokes <command>shutdown</command> with the
326 <parameter>-h</parameter> option, except when already in run-level 0,
327 then it tells the kernel to halt the system; it notes in the
328 file <filename>/var/log/wtmp</filename> that the system is being
[1118b17]329 brought down</para>
[cba2d4e]330 <indexterm zone="ch-system-systemd halt">
331 <primary sortas="b-halt">halt</primary>
332 </indexterm>
333 </listitem>
334 </varlistentry>
335
336 <varlistentry id="hostnamectl">
337 <term><command>hostnamectl</command></term>
338 <listitem>
[9e7475a]339 <para>Is used to query and change the system hostname and related
[1118b17]340 settings</para>
[cba2d4e]341 <indexterm zone="ch-system-systemd hostnamectl">
342 <primary sortas="b-hostnamectl">hostnamectl</primary>
343 </indexterm>
344 </listitem>
345 </varlistentry>
346
347 <varlistentry id="init">
348 <term><command>init</command></term>
349 <listitem>
[9e7475a]350 <para>Is the first process to be started when the kernel has initialized
[0d84af1]351 the hardware which takes over the boot process and starts all
[9e7475a]352 processes according to its configuration files. In this case, it starts
[8d35535]353 systemd</para>
[cba2d4e]354 <indexterm zone="ch-system-systemd init">
355 <primary sortas="b-init">init</primary>
356 </indexterm>
357 </listitem>
358 </varlistentry>
359
360 <varlistentry id="journalctl">
361 <term><command>journalctl</command></term>
362 <listitem>
[9e7475a]363 <para>Is used to query the contents of the systemd journal</para>
[cba2d4e]364 <indexterm zone="ch-system-systemd journalctl">
365 <primary sortas="b-journalctl">journalctl</primary>
366 </indexterm>
367 </listitem>
368 </varlistentry>
369
370 <varlistentry id="kernel-install">
371 <term><command>kernel-install</command></term>
372 <listitem>
[9e7475a]373 <para>Is used to add and remove kernel and initramfs images to and
[8d35535]374 from /boot. In LFS, this is done manually</para>
[cba2d4e]375 <indexterm zone="ch-system-systemd kernel-install">
376 <primary sortas="b-kernel-install">kernel-install</primary>
377 </indexterm>
378 </listitem>
379 </varlistentry>
380
381 <varlistentry id="localectl">
382 <term><command>localectl</command></term>
383 <listitem>
[9e7475a]384 <para>Is used to query and change the system locale and keyboard layout
[1118b17]385 settings</para>
[cba2d4e]386 <indexterm zone="ch-system-systemd localectl">
387 <primary sortas="b-localectl">localectl</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="loginctl">
393 <term><command>loginctl</command></term>
394 <listitem>
[9e7475a]395 <para>Is used to introspect and control the state of the systemd Login
[1118b17]396 Manager</para>
[cba2d4e]397 <indexterm zone="ch-system-systemd loginctl">
398 <primary sortas="b-loginctl">loginctl</primary>
399 </indexterm>
400 </listitem>
401 </varlistentry>
402
403 <varlistentry id="machinectl">
404 <term><command>machinectl</command></term>
405 <listitem>
[9e7475a]406 <para>Is used to introspect and control the state of the systemd Virtual
[cba2d4e]407 Machine and Container Registration Manager</para>
408 <indexterm zone="ch-system-systemd machinectl">
409 <primary sortas="b-machinectl">machinectl</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
[1118b17]414 <varlistentry id="networkctl">
415 <term><command>networkctl</command></term>
416 <listitem>
[9e7475a]417 <para>Is used to introspect and configure the state of the network
418 links configured by systemd-networkd</para>
[1118b17]419 <indexterm zone="ch-system-systemd networkctl">
420 <primary sortas="b-networkctl">networkctl</primary>
421 </indexterm>
422 </listitem>
423 </varlistentry>
424
[78cc3be]425 <varlistentry id="portablectl">
426 <term><command>portablectl</command></term>
427 <listitem>
[9e7475a]428 <para>Is used to attach or detach portable services from the local
[78cc3be]429 system</para>
430 <indexterm zone="ch-system-systemd portablectl">
431 <primary sortas="b-portablectl">portablectl</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
[cba2d4e]436 <varlistentry id="poweroff">
437 <term><command>poweroff</command></term>
438 <listitem>
[9e7475a]439 <para>Instructs the kernel to halt the system and switch off the computer
[1118b17]440 (see <command>halt</command>)</para>
[cba2d4e]441 <indexterm zone="ch-system-systemd poweroff">
442 <primary sortas="b-poweroff">poweroff</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446
447 <varlistentry id="reboot">
448 <term><command>reboot</command></term>
[f896e21c]449 <listitem>
[9e7475a]450 <para>Instructs the kernel to reboot the system (see
[1118b17]451 <command>halt</command>)</para>
[cba2d4e]452 <indexterm zone="ch-system-systemd reboot">
453 <primary sortas="b-reboot">reboot</primary>
[f896e21c]454 </indexterm>
455 </listitem>
456 </varlistentry>
457
[78cc3be]458 <varlistentry id="resolvconf">
459 <term><command>resolvconf</command></term>
460 <listitem>
[9e7475a]461 <para>Registers DNS server and domain configuration with
[93058448]462 <command>systemd-resolved</command></para>
[78cc3be]463 <indexterm zone="ch-system-systemd resolvconf">
464 <primary sortas="b-resolvconf">resolvconf</primary>
465 </indexterm>
466 </listitem>
467 </varlistentry>
468
469 <varlistentry id="resolvectl">
470 <term><command>resolvectl</command></term>
471 <listitem>
[9e7475a]472 <para>Sends control commands to the network name resolution
473 manager, or resolves domain names, IPv4 and IPv6 addresses,
[8d35535]474 DNS records, and services</para>
[78cc3be]475 <indexterm zone="ch-system-systemd resolvectl">
476 <primary sortas="b-resolvectl">resolvectl</primary>
477 </indexterm>
478 </listitem>
479 </varlistentry>
480
[cba2d4e]481 <varlistentry id="runlevel">
482 <term><command>runlevel</command></term>
[f896e21c]483 <listitem>
[9e7475a]484 <para>Outputs the previous and the current run-level, as noted in the
[02776dff]485 last run-level record in <filename>/run/utmp</filename></para>
[cba2d4e]486 <indexterm zone="ch-system-systemd runlevel">
487 <primary sortas="b-runlevel">runlevel</primary>
[f896e21c]488 </indexterm>
489 </listitem>
490 </varlistentry>
491
[cba2d4e]492 <varlistentry id="shutdown">
493 <term><command>shutdown</command></term>
[f896e21c]494 <listitem>
[9e7475a]495 <para>Brings the system down in a safe and secure manner, signaling
496 all processes and notifying all logged-in users</para>
[cba2d4e]497 <indexterm zone="ch-system-systemd shutdown">
498 <primary sortas="b-shutdown">shutdown</primary>
[f896e21c]499 </indexterm>
500 </listitem>
501 </varlistentry>
502
[cba2d4e]503 <varlistentry id="systemctl">
504 <term><command>systemctl</command></term>
[f896e21c]505 <listitem>
[9e7475a]506 <para>Is used to introspect and control the state of the systemd system
[1118b17]507 and service manager</para>
[cba2d4e]508 <indexterm zone="ch-system-systemd systemctl">
509 <primary sortas="b-systemctl">systemctl</primary>
510 </indexterm>
511 </listitem>
512 </varlistentry>
513
514 <varlistentry id="systemd-analyze">
515 <term><command>systemd-analyze</command></term>
516 <listitem>
[9e7475a]517 <para>Is used to determine system startup performance of the current
518 boot, as well as identify troublesome systemd units</para>
[cba2d4e]519 <indexterm zone="ch-system-systemd systemd-analyze">
520 <primary sortas="b-systemd-analyze">systemd-analyze</primary>
521 </indexterm>
522 </listitem>
523 </varlistentry>
524
525 <varlistentry id="systemd-ask-password">
526 <term><command>systemd-ask-password</command></term>
527 <listitem>
[9e7475a]528 <para>Is used to query a system password or passphrase from the user,
[1118b17]529 using a question message specified on the command line</para>
[cba2d4e]530 <indexterm zone="ch-system-systemd systemd-ask-password">
531 <primary sortas="b-systemd-ask-password">systemd-ask-password</primary>
532 </indexterm>
533 </listitem>
534 </varlistentry>
535
536 <varlistentry id="systemd-cat">
537 <term><command>systemd-cat</command></term>
538 <listitem>
[9e7475a]539 <para>Is used to connect the STDOUT and STDERR outputs of a process
[8d35535]540 with the systemd journal
[cba2d4e]541 </para>
542 <indexterm zone="ch-system-systemd systemd-cat">
543 <primary sortas="b-systemd-cat">systemd-cat</primary>
544 </indexterm>
545 </listitem>
546 </varlistentry>
547
548 <varlistentry id="systemd-cgls">
549 <term><command>systemd-cgls</command></term>
550 <listitem>
[1118b17]551 <para>Recursively shows the contents of the selected Linux control
552 group hierarchy in a tree</para>
[cba2d4e]553 <indexterm zone="ch-system-systemd systemd-cgls">
554 <primary sortas="b-systemd-cgls">systemd-cgls</primary>
555 </indexterm>
556 </listitem>
557 </varlistentry>
558
559 <varlistentry id="systemd-cgtop">
560 <term><command>systemd-cgtop</command></term>
561 <listitem>
[1118b17]562 <para>Shows the top control groups of the local Linux control group
563 hierarchy, ordered by their CPU, memory and disk I/O load</para>
[cba2d4e]564 <indexterm zone="ch-system-systemd systemd-cgtop">
565 <primary sortas="b-systemd-cgtop">systemd-cgtop</primary>
566 </indexterm>
567 </listitem>
568 </varlistentry>
569
570 <varlistentry id="systemd-delta">
571 <term><command>systemd-delta</command></term>
572 <listitem>
[9e7475a]573 <para>Is used to identify and compare configuration files in
[cba2d4e]574 <filename class="directory">/etc</filename> that override default
[1118b17]575 counterparts in <filename class="directory">/usr</filename></para>
[cba2d4e]576 <indexterm zone="ch-system-systemd systemd-delta">
577 <primary sortas="b-systemd-delta">systemd-delta</primary>
578 </indexterm>
579 </listitem>
580 </varlistentry>
581
582 <varlistentry id="systemd-detect-virt">
583 <term><command>systemd-detect-virt</command></term>
584 <listitem>
[9e7475a]585 <para>Detects whether the system is being run in a virtual
[8d35535]586 environment, and adjusts udev accordingly</para>
[cba2d4e]587 <indexterm zone="ch-system-systemd systemd-detect-virt">
588 <primary sortas="b-systemd-detect-virt">systemd-detect-virt</primary>
589 </indexterm>
590 </listitem>
591 </varlistentry>
592
[22009fb]593 <varlistentry id="systemd-dissect">
594 <term><command>systemd-dissect</command></term>
595 <listitem>
[8d35535]596 <para>Is used to inspect OS disk images</para>
[22009fb]597 <indexterm zone="ch-system-systemd systemd-dissect">
598 <primary sortas="b-systemd-dissect">systemd-dissect</primary>
599 </indexterm>
600 </listitem>
601 </varlistentry>
602
[1118b17]603 <varlistentry id="systemd-escape">
604 <term><command>systemd-escape</command></term>
605 <listitem>
[9e7475a]606 <para>Is used to escape strings for inclusion in systemd unit
[1118b17]607 names</para>
608 <indexterm zone="ch-system-systemd systemd-escape">
609 <primary sortas="b-systemd-escape">systemd-escape</primary>
610 </indexterm>
611 </listitem>
612 </varlistentry>
613
614 <varlistentry id="systemd-hwdb">
615 <term><command>systemd-hwdb</command></term>
616 <listitem>
[9e7475a]617 <para>Is used to manage the hardware database (hwdb)</para>
[1118b17]618 <indexterm zone="ch-system-systemd systemd-hwdb">
619 <primary sortas="b-systemd-hwdb">systemd-hwdb</primary>
620 </indexterm>
621 </listitem>
622 </varlistentry>
623
[78cc3be]624 <varlistentry id="systemd-id128">
625 <term><command>systemd-id128</command></term>
626 <listitem>
[9e7475a]627 <para>Generates and prints id128 strings</para>
[78cc3be]628 <indexterm zone="ch-system-systemd systemd-id128">
629 <primary sortas="b-systemd-id128">systemd-id128</primary>
630 </indexterm>
631 </listitem>
632 </varlistentry>
633
[cba2d4e]634 <varlistentry id="systemd-inhibit">
635 <term><command>systemd-inhibit</command></term>
636 <listitem>
[9e7475a]637 <para>Is used to execute a program with a shutdown, sleep or idle
638 inhibitor lock taken, preventing an action such as a system shutdown
[8d35535]639 until the process is completed</para>
[cba2d4e]640 <indexterm zone="ch-system-systemd systemd-inhibit">
641 <primary sortas="b-systemd-inhibit">systemd-inhibit</primary>
642 </indexterm>
643 </listitem>
644 </varlistentry>
645
646 <varlistentry id="systemd-machine-id-setup">
647 <term><command>systemd-machine-id-setup</command></term>
648 <listitem>
[9e7475a]649 <para>Is used by system installer tools to initialize the machine ID
[1118b17]650 stored in <filename>/etc/machine-id</filename> at install time with a
651 randomly generated ID</para>
[cba2d4e]652 <indexterm zone="ch-system-systemd systemd-machine-id-setup">
653 <primary sortas="b-systemd-machine-id-setup">systemd-machine-id-setup</primary>
654 </indexterm>
655 </listitem>
656 </varlistentry>
657
[13c8b42]658 <varlistentry id="systemd-mount">
659 <term><command>systemd-mount</command></term>
660 <listitem>
[8d35535]661 <para>Is used to temporarily mount or automount disks</para>
[13c8b42]662 <indexterm zone="ch-system-systemd systemd-mount">
663 <primary sortas="b-systemd-mount">systemd-mount</primary>
664 </indexterm>
665 </listitem>
666 </varlistentry>
667
[cba2d4e]668 <varlistentry id="systemd-notify">
669 <term><command>systemd-notify</command></term>
670 <listitem>
[9e7475a]671 <para>Is used by daemon scripts to notify the init system about status
[1118b17]672 changes</para>
[cba2d4e]673 <indexterm zone="ch-system-systemd systemd-notify">
674 <primary sortas="b-systemd-notify">systemd-notify</primary>
675 </indexterm>
676 </listitem>
677 </varlistentry>
678
679 <varlistentry id="systemd-nspawn">
680 <term><command>systemd-nspawn</command></term>
681 <listitem>
[9e7475a]682 <para>Is used to run a command or OS in a light-weight namespace
[1118b17]683 container</para>
[cba2d4e]684 <indexterm zone="ch-system-systemd systemd-nspawn">
685 <primary sortas="b-systemd-nspawn">systemd-nspawn</primary>
686 </indexterm>
687 </listitem>
688 </varlistentry>
689
[1118b17]690 <varlistentry id="systemd-path">
691 <term><command>systemd-path</command></term>
692 <listitem>
[9e7475a]693 <para>Is used to query system and user paths</para>
[1118b17]694 <indexterm zone="ch-system-systemd systemd-path">
695 <primary sortas="b-systemd-path">systemd-path</primary>
696 </indexterm>
697 </listitem>
698 </varlistentry>
699
[c06f49a]700 <varlistentry id="systemd-repart">
701 <term><command>systemd-repart</command></term>
702 <listitem>
[9e7475a]703 <para>Is used to grow and add partitions to a partition table when
[8d35535]704 systemd is used in an OS image (e.g. a container)</para>
[c06f49a]705 <indexterm zone="ch-system-systemd systemd-repart">
706 <primary sortas="b-systemd-repart">systemd-repart</primary>
707 </indexterm>
708 </listitem>
709 </varlistentry>
710
[1118b17]711 <varlistentry id="systemd-resolve">
712 <term><command>systemd-resolve</command></term>
713 <listitem>
[9e7475a]714 <para>Is used to resolve domain names, IPV4 and IPv6 addresses, DNS
[1118b17]715 resource records, and services</para>
716 <indexterm zone="ch-system-systemd systemd-resolve">
717 <primary sortas="b-systemd-resolve">systemd-resolve</primary>
718 </indexterm>
719 </listitem>
720 </varlistentry>
721
[cba2d4e]722 <varlistentry id="systemd-run">
723 <term><command>systemd-run</command></term>
724 <listitem>
[9e7475a]725 <para>Is used to create and start a transient .service or a .scope
726 unit and run the specified command in it. This is useful for
[8d35535]727 validating systemd units</para>
[cba2d4e]728 <indexterm zone="ch-system-systemd systemd-run">
729 <primary sortas="b-systemd-run">systemd-run</primary>
730 </indexterm>
731 </listitem>
732 </varlistentry>
733
[13c8b42]734 <varlistentry id="systemd-socket-activate">
735 <term><command>systemd-socket-activate</command></term>
736 <listitem>
[9e7475a]737 <para>Is used to listen on socket devices and launch a process upon
[8d35535]738 a successful connection to the socket</para>
[13c8b42]739 <indexterm zone="ch-system-systemd systemd-socket-activate">
740 <primary sortas="b-systemd-socket-activate">systemd-socket-activate</primary>
741 </indexterm>
742 </listitem>
743 </varlistentry>
744
[cba2d4e]745 <varlistentry id="systemd-tmpfiles">
746 <term><command>systemd-tmpfiles</command></term>
747 <listitem>
[1118b17]748 <para>Creates, deletes and cleans up volatile and temporary files and
749 directories, based on the configuration file format and location
750 specified in
751 <filename class="directory">tmpfiles.d</filename> directories</para>
[cba2d4e]752 <indexterm zone="ch-system-systemd systemd-tmpfiles">
753 <primary sortas="b-systemd-tmpfiles">systemd-tmpfiles</primary>
754 </indexterm>
755 </listitem>
756 </varlistentry>
757
[78cc3be]758 <varlistentry id="systemd-umount">
759 <term><command>systemd-umount</command></term>
760 <listitem>
[9e7475a]761 <para>Unmounts mount points</para>
[78cc3be]762 <indexterm zone="ch-system-systemd systemd-umount">
763 <primary sortas="b-systemd-umount">systemd-umount</primary>
764 </indexterm>
765 </listitem>
766 </varlistentry>
767
[cba2d4e]768 <varlistentry id="systemd-tty-ask-password-agent">
769 <term><command>systemd-tty-ask-password-agent</command></term>
770 <listitem>
[9e7475a]771 <para>Is used to list and/or process pending systemd password
772 requests</para>
[cba2d4e]773 <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent">
774 <primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary>
775 </indexterm>
776 </listitem>
777 </varlistentry>
778
779 <varlistentry id="telinit">
780 <term><command>telinit</command></term>
781 <listitem>
[1118b17]782 <para>Tells <command>init</command> which run-level to change
783 to</para>
[cba2d4e]784 <indexterm zone="ch-system-systemd telinit">
785 <primary sortas="b-telinit">telinit</primary>
786 </indexterm>
787 </listitem>
788 </varlistentry>
789
790 <varlistentry id="timedatectl">
791 <term><command>timedatectl</command></term>
792 <listitem>
[9e7475a]793 <para>Is used to query and change the system clock and its settings
[cba2d4e]794 </para>
795 <indexterm zone="ch-system-systemd timedatectl">
796 <primary sortas="b-timedatectl">timedatectl</primary>
[f896e21c]797 </indexterm>
798 </listitem>
799 </varlistentry>
800
801 <varlistentry id="udevadm">
802 <term><command>udevadm</command></term>
803 <listitem>
[9e7475a]804 <para>Is a generic udev administration tool which controls the udevd
805 daemon, provides info from the Udev hardware database, monitors
806 uevents, waits for uevents to finish, tests udev configuration, and
807 triggers uevents for a given device</para>
[cba2d4e]808 <indexterm zone="ch-system-systemd udevadm">
[f896e21c]809 <primary sortas="b-udevadm">udevadm</primary>
810 </indexterm>
811 </listitem>
812 </varlistentry>
813
[cba2d4e]814 <varlistentry id="libsystemd">
815 <term><filename class="libraryfile">libsystemd</filename></term>
[f896e21c]816 <listitem>
[9e7475a]817 <para>Is the main systemd utility library</para>
[cba2d4e]818 <indexterm zone="ch-system-systemd libsystemd">
819 <primary sortas="c-libsystemd">libsystemd</primary>
[f896e21c]820 </indexterm>
821 </listitem>
822 </varlistentry>
823
824 <varlistentry id="libudev">
825 <term><filename class="libraryfile">libudev</filename></term>
826 <listitem>
[9e7475a]827 <para>Is a library to access Udev device information</para>
[cba2d4e]828 <indexterm zone="ch-system-systemd libudev">
[f896e21c]829 <primary sortas="c-libudev">libudev</primary>
830 </indexterm>
831 </listitem>
832 </varlistentry>
833
834 </variablelist>
835
836 </sect2>
837
838</sect1>
Note: See TracBrowser for help on using the repository browser.