source: chapter08/systemd.xml@ 2d66549

ml-11.0 multilib
Last change on this file since 2d66549 was d7e0db5, checked in by Xℹ Ruoyao <xry111@…>, 3 years ago

Merge changes from trunk to multilib

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@12034 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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