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 |
|
---|
8 | <sect1 id="ch-system-systemd" role="wrap">
|
---|
9 | <?dbhtml filename="systemd.html"?>
|
---|
10 |
|
---|
11 | <sect1info condition="script">
|
---|
12 | <productname>systemd</productname>
|
---|
13 | <productnumber>&systemd-version;</productnumber>
|
---|
14 | <address>&systemd-url;</address>
|
---|
15 | </sect1info>
|
---|
16 |
|
---|
17 | <title>Systemd-&systemd-version;</title>
|
---|
18 |
|
---|
19 | <indexterm zone="ch-system-systemd">
|
---|
20 | <primary sortas="a-systemd">systemd</primary>
|
---|
21 | </indexterm>
|
---|
22 |
|
---|
23 | <sect2 role="package">
|
---|
24 | <title/>
|
---|
25 |
|
---|
26 | <para>The systemd package contains programs for controlling the startup,
|
---|
27 | running, and shutdown of the system.</para>
|
---|
28 |
|
---|
29 | <segmentedlist>
|
---|
30 | <segtitle>&buildtime;</segtitle>
|
---|
31 | <segtitle>&diskspace;</segtitle>
|
---|
32 |
|
---|
33 | <seglistitem>
|
---|
34 | <seg>&systemd-ch6-sbu;</seg>
|
---|
35 | <seg>&systemd-ch6-du;</seg>
|
---|
36 | </seglistitem>
|
---|
37 | </segmentedlist>
|
---|
38 | </sect2>
|
---|
39 |
|
---|
40 | <sect2 role="installation">
|
---|
41 | <title>Installation of systemd</title>
|
---|
42 |
|
---|
43 | <para>First, create a file to allow systemd to build when using Util-Linux
|
---|
44 | built in Chapter 5 and disable LTO by default:</para>
|
---|
45 |
|
---|
46 | <screen><userinput remap="pre">cat > config.cache << "EOF"
|
---|
47 | <literal>KILL=/bin/kill
|
---|
48 | HAVE_BLKID=1
|
---|
49 | BLKID_LIBS="-lblkid"
|
---|
50 | BLKID_CFLAGS="-I/tools/include/blkid"
|
---|
51 | cc_cv_CFLAGS__flto=no</literal>
|
---|
52 | EOF</userinput></screen>
|
---|
53 |
|
---|
54 | <para>LTO is disabled by default because it causes <command>systemd</command>
|
---|
55 | and other auxiliary programs to link to <filename
|
---|
56 | class="libraryfile">libgcc_s.so</filename>, slows the build down and makes the
|
---|
57 | compiled code larger.</para>
|
---|
58 |
|
---|
59 | <para>Additionally, fix a build error when using Util-Linux built in
|
---|
60 | Chapter 5:</para>
|
---|
61 |
|
---|
62 | <screen><userinput remap="pre">sed -i "s:blkid/::" $(grep -rl "blkid/blkid.h")</userinput></screen>
|
---|
63 |
|
---|
64 | <para>Apply the following patch so that compat <command>pkg-config</command> files
|
---|
65 | get installed without installing compat libs which are useless on LFS:</para>
|
---|
66 |
|
---|
67 | <screen><userinput remap="pre">patch -Np1 -i ../&systemd-compat-patch;</userinput></screen>
|
---|
68 |
|
---|
69 | <para>Also, apply the following patch to fix various bugs that have been
|
---|
70 | addressed upstream:</para>
|
---|
71 |
|
---|
72 | <screen><userinput remap="pre">patch -Np1 -i ../&systemd-fixes-patch;</userinput></screen>
|
---|
73 |
|
---|
74 | <para>Prepare systemd for compilation:</para>
|
---|
75 |
|
---|
76 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
77 | --sysconfdir=/etc \
|
---|
78 | --localstatedir=/var \
|
---|
79 | --config-cache \
|
---|
80 | --with-rootprefix= \
|
---|
81 | --with-rootlibdir=/lib \
|
---|
82 | --enable-split-usr \
|
---|
83 | --disable-gudev \
|
---|
84 | --disable-firstboot \
|
---|
85 | --disable-ldconfig \
|
---|
86 | --disable-sysusers \
|
---|
87 | --without-python \
|
---|
88 | --docdir=/usr/share/doc/systemd-&systemd-version; \
|
---|
89 | --with-dbuspolicydir=/etc/dbus-1/system.d \
|
---|
90 | --with-dbusinterfacedir=/usr/share/dbus-1/interfaces \
|
---|
91 | --with-dbussessionservicedir=/usr/share/dbus-1/services \
|
---|
92 | --with-dbussystemservicedir=/usr/share/dbus-1/system-services</userinput></screen>
|
---|
93 |
|
---|
94 | <variablelist>
|
---|
95 | <title>The meaning of the configure options:</title>
|
---|
96 |
|
---|
97 | <varlistentry>
|
---|
98 | <term><parameter>--config-cache</parameter></term>
|
---|
99 | <listitem>
|
---|
100 | <para>This switch tells the build system to use
|
---|
101 | the <filename>config.cache</filename> file which
|
---|
102 | was created earlier.</para>
|
---|
103 | </listitem>
|
---|
104 | </varlistentry>
|
---|
105 |
|
---|
106 | <varlistentry>
|
---|
107 | <term><parameter>--with-root*</parameter></term>
|
---|
108 | <listitem>
|
---|
109 | <para>These switches ensure that core programs and
|
---|
110 | shared libraries are installed in the subdirectories
|
---|
111 | of the root partition.</para>
|
---|
112 | </listitem>
|
---|
113 | </varlistentry>
|
---|
114 |
|
---|
115 | <varlistentry>
|
---|
116 | <term><parameter>--enable-split-usr</parameter></term>
|
---|
117 | <listitem>
|
---|
118 | <para>This switch ensures that systemd will work on
|
---|
119 | systems where /bin, /lib and /sbin directories are not
|
---|
120 | symlinks to their /usr counterparts.</para>
|
---|
121 | </listitem>
|
---|
122 | </varlistentry>
|
---|
123 |
|
---|
124 | <varlistentry>
|
---|
125 | <term><parameter>--disable-gudev --without-python</parameter></term>
|
---|
126 | <listitem>
|
---|
127 | <para>These switches disable optional features because
|
---|
128 | LFS does not provide their dependencies.</para>
|
---|
129 | </listitem>
|
---|
130 | </varlistentry>
|
---|
131 |
|
---|
132 | <varlistentry>
|
---|
133 | <term><parameter>--disable-firstboot</parameter></term>
|
---|
134 | <listitem>
|
---|
135 | <para>This switch prevents installation of systemd
|
---|
136 | services responsible for setting up the system for
|
---|
137 | the first time. They are not useful for LFS because
|
---|
138 | everything is done manually.</para>
|
---|
139 | </listitem>
|
---|
140 | </varlistentry>
|
---|
141 |
|
---|
142 | <varlistentry>
|
---|
143 | <term><parameter>--disable-ldconfig</parameter></term>
|
---|
144 | <listitem>
|
---|
145 | <para>This switch prevents installation of a systemd
|
---|
146 | unit that runs <command>ldconfig</command> at
|
---|
147 | boot, making the boot time longer. Remove it if the
|
---|
148 | described feature is desired, even though it's not
|
---|
149 | useful for source distributions such as LFS.</para>
|
---|
150 | </listitem>
|
---|
151 | </varlistentry>
|
---|
152 |
|
---|
153 | <varlistentry>
|
---|
154 | <term><parameter>--disable-sysusers</parameter></term>
|
---|
155 | <listitem>
|
---|
156 | <para>This switch prevents installation of systemd
|
---|
157 | services responsible for setting up the
|
---|
158 | <filename>/etc/group</filename> and
|
---|
159 | <filename>/etc/passwd</filename> files. Both files
|
---|
160 | were created early in this chapter.</para>
|
---|
161 | </listitem>
|
---|
162 | </varlistentry>
|
---|
163 |
|
---|
164 | <varlistentry>
|
---|
165 | <term><parameter>--with-dbus*</parameter></term>
|
---|
166 | <listitem>
|
---|
167 | <para>These switches ensure that D-Bus configuration files
|
---|
168 | get installed in the correct locations.</para>
|
---|
169 | </listitem>
|
---|
170 | </varlistentry>
|
---|
171 |
|
---|
172 | </variablelist>
|
---|
173 |
|
---|
174 | <para>Compile the package:</para>
|
---|
175 |
|
---|
176 | <screen><userinput remap="make">make LIBRARY_PATH=/tools/lib</userinput></screen>
|
---|
177 |
|
---|
178 | <para>If you are going to run the test suite, first prevent a few test
|
---|
179 | cases from running because they fail in a chroot environment:</para>
|
---|
180 |
|
---|
181 | <screen><userinput remap="test">sed -e "s:test/udev-test.pl::g" \
|
---|
182 | -e "s:test-bus-cleanup\$(EXEEXT) ::g" \
|
---|
183 | -e "s:test-cgroup-mask\$(EXEEXT) ::g" \
|
---|
184 | -e "s:test-condition-util\$(EXEEXT) ::g" \
|
---|
185 | -e "s:test-dhcp6-client\$(EXEEXT) ::g" \
|
---|
186 | -e "s:test-engine\$(EXEEXT) ::g" \
|
---|
187 | -e "s:test-journal-flush\$(EXEEXT) ::g" \
|
---|
188 | -e "s:test-path-util\$(EXEEXT) ::g" \
|
---|
189 | -e "s:test-sched-prio\$(EXEEXT) ::g" \
|
---|
190 | -e "s:test-strv\$(EXEEXT) ::g" \
|
---|
191 | -i Makefile</userinput></screen>
|
---|
192 |
|
---|
193 | <para>To test the results, issue:</para>
|
---|
194 |
|
---|
195 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
196 |
|
---|
197 | <para>Install the package:</para>
|
---|
198 |
|
---|
199 | <screen><userinput remap="install">make LD_LIBRARY_PATH=/tools/lib install</userinput></screen>
|
---|
200 |
|
---|
201 | <para>Move NSS libraries to <filename class="directory">/lib</filename>:</para>
|
---|
202 |
|
---|
203 | <screen><userinput remap="install">mv -v /usr/lib/libnss_{myhostname,mymachines,resolve}.so.2 /lib</userinput></screen>
|
---|
204 |
|
---|
205 | <para>Remove an unnecessary directory:</para>
|
---|
206 |
|
---|
207 | <screen><userinput remap="install">rm -rfv /usr/lib/rpm</userinput></screen>
|
---|
208 |
|
---|
209 | <para>Create the Sysvinit compatibility symlinks, so systemd is used
|
---|
210 | as the default init system:</para>
|
---|
211 |
|
---|
212 | <screen><userinput remap="install">for tool in runlevel reboot shutdown poweroff halt telinit; do
|
---|
213 | ln -sfv ../bin/systemctl /sbin/${tool}
|
---|
214 | done
|
---|
215 | ln -sfv ../lib/systemd/systemd /sbin/init</userinput></screen>
|
---|
216 |
|
---|
217 | <para>Remove a reference to a non-existent group:</para>
|
---|
218 |
|
---|
219 | <screen><userinput remap="install">sed -i "s:0775 root lock:0755 root root:g" /usr/lib/tmpfiles.d/legacy.conf</userinput></screen>
|
---|
220 |
|
---|
221 | <para>Create the <filename>/etc/machine-id</filename> file needed by
|
---|
222 | Journald:</para>
|
---|
223 |
|
---|
224 | <screen><userinput remap="install">systemd-machine-id-setup</userinput></screen>
|
---|
225 |
|
---|
226 | </sect2>
|
---|
227 |
|
---|
228 | <sect2 id="contents-systemd" role="content">
|
---|
229 | <title>Contents of systemd</title>
|
---|
230 |
|
---|
231 | <segmentedlist>
|
---|
232 | <segtitle>Installed programs</segtitle>
|
---|
233 | <segtitle>Installed libraries</segtitle>
|
---|
234 | <segtitle>Installed directories</segtitle>
|
---|
235 |
|
---|
236 | <seglistitem>
|
---|
237 | <seg>bootctl, busctl, coredumpctl, halt, hostnamectl, init, journalctl,
|
---|
238 | kernel-install, localectl, loginctl, machinectl, networkctl, poweroff,
|
---|
239 | reboot, runlevel, shutdown, systemctl, systemd-analyze,
|
---|
240 | systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop,
|
---|
241 | systemd-delta, systemd-detect-virt, systemd-escape, systemd-inhibit,
|
---|
242 | systemd-machine-id-setup, systemd-notify, systemd-nspawn, systemd-path,
|
---|
243 | systemd-run, systemd-stdio-bridge, systemd-tmpfiles,
|
---|
244 | systemd-tty-ask-password-agent, telinit, timedatectl, and udevadm</seg>
|
---|
245 | <seg>libnss_myhostname.so.2, libnss_mymachines.so.2, libnss_resolve.so.2,
|
---|
246 | libsystemd.so, libudev.so</seg>
|
---|
247 | <seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d,
|
---|
248 | /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev,
|
---|
249 | /etc/xdg/systemd, /lib/systemd, /lib/udev, /usr/include/systemd,
|
---|
250 | /usr/lib/binfmt.d, /usr/lib/kernel, /usr/lib/modules-load.d,
|
---|
251 | /usr/lib/sysctl.d, /usr/lib/systemd, /usr/lib/tmpfiles.d,
|
---|
252 | /usr/share/doc/systemd-&systemd-version;, /usr/share/factory,
|
---|
253 | /usr/share/systemd, /var/lib/systemd, /var/log/journal</seg>
|
---|
254 | </seglistitem>
|
---|
255 | </segmentedlist>
|
---|
256 |
|
---|
257 | <variablelist>
|
---|
258 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
259 | <?dbfo list-presentation="list"?>
|
---|
260 | <?dbhtml list-presentation="table"?>
|
---|
261 |
|
---|
262 | <varlistentry id="bootctl">
|
---|
263 | <term><command>bootctl</command></term>
|
---|
264 | <listitem>
|
---|
265 | <para>used to query the firmware and boot manager settings.</para>
|
---|
266 | <indexterm zone="ch-system-systemd bootctl">
|
---|
267 | <primary sortas="b-bootctl">bootctl</primary>
|
---|
268 | </indexterm>
|
---|
269 | </listitem>
|
---|
270 | </varlistentry>
|
---|
271 |
|
---|
272 | <varlistentry id="busctl">
|
---|
273 | <term><command>busctl</command></term>
|
---|
274 | <listitem>
|
---|
275 | <para>Used to introspect and monitor the D-Bus bus.</para>
|
---|
276 | <indexterm zone="ch-system-systemd busctl">
|
---|
277 | <primary sortas="b-busctl">busctl</primary>
|
---|
278 | </indexterm>
|
---|
279 | </listitem>
|
---|
280 | </varlistentry>
|
---|
281 |
|
---|
282 | <varlistentry id="coredumpctl">
|
---|
283 | <term><command>coredumpctl</command></term>
|
---|
284 | <listitem>
|
---|
285 | <para>Used to retrieve coredumps from the systemd Journal</para>
|
---|
286 | <indexterm zone="ch-system-systemd coredumpctl">
|
---|
287 | <primary sortas="b-coredumpctl">coredumpctl</primary>
|
---|
288 | </indexterm>
|
---|
289 | </listitem>
|
---|
290 | </varlistentry>
|
---|
291 |
|
---|
292 | <varlistentry id="halt">
|
---|
293 | <term><command>halt</command></term>
|
---|
294 | <listitem>
|
---|
295 | <para>Normally invokes <command>shutdown</command> with the
|
---|
296 | <parameter>-h</parameter> option, except when already in run-level 0,
|
---|
297 | then it tells the kernel to halt the system; it notes in the
|
---|
298 | file <filename>/var/log/wtmp</filename> that the system is being
|
---|
299 | brought down.</para>
|
---|
300 | <indexterm zone="ch-system-systemd halt">
|
---|
301 | <primary sortas="b-halt">halt</primary>
|
---|
302 | </indexterm>
|
---|
303 | </listitem>
|
---|
304 | </varlistentry>
|
---|
305 |
|
---|
306 | <varlistentry id="hostnamectl">
|
---|
307 | <term><command>hostnamectl</command></term>
|
---|
308 | <listitem>
|
---|
309 | <para>Used to query and change the system hostname and related
|
---|
310 | settings.</para>
|
---|
311 | <indexterm zone="ch-system-systemd hostnamectl">
|
---|
312 | <primary sortas="b-hostnamectl">hostnamectl</primary>
|
---|
313 | </indexterm>
|
---|
314 | </listitem>
|
---|
315 | </varlistentry>
|
---|
316 |
|
---|
317 | <varlistentry id="init">
|
---|
318 | <term><command>init</command></term>
|
---|
319 | <listitem>
|
---|
320 | <para>The first process to be started when the kernel has initialized
|
---|
321 | the hardware which takes over the boot process and starts all the
|
---|
322 | proceses it is instructed to.</para>
|
---|
323 | <indexterm zone="ch-system-systemd init">
|
---|
324 | <primary sortas="b-init">init</primary>
|
---|
325 | </indexterm>
|
---|
326 | </listitem>
|
---|
327 | </varlistentry>
|
---|
328 |
|
---|
329 | <varlistentry id="journalctl">
|
---|
330 | <term><command>journalctl</command></term>
|
---|
331 | <listitem>
|
---|
332 | <para>Used to query the contents of the systemd Journal.</para>
|
---|
333 | <indexterm zone="ch-system-systemd journalctl">
|
---|
334 | <primary sortas="b-journalctl">journalctl</primary>
|
---|
335 | </indexterm>
|
---|
336 | </listitem>
|
---|
337 | </varlistentry>
|
---|
338 |
|
---|
339 | <varlistentry id="kernel-install">
|
---|
340 | <term><command>kernel-install</command></term>
|
---|
341 | <listitem>
|
---|
342 | <para>Used to add and remove kernel and initramfs images to and
|
---|
343 | from /boot.</para>
|
---|
344 | <indexterm zone="ch-system-systemd kernel-install">
|
---|
345 | <primary sortas="b-kernel-install">kernel-install</primary>
|
---|
346 | </indexterm>
|
---|
347 | </listitem>
|
---|
348 | </varlistentry>
|
---|
349 |
|
---|
350 | <varlistentry id="localectl">
|
---|
351 | <term><command>localectl</command></term>
|
---|
352 | <listitem>
|
---|
353 | <para>Used to query and change the system locale and keyboard layout
|
---|
354 | settings.</para>
|
---|
355 | <indexterm zone="ch-system-systemd localectl">
|
---|
356 | <primary sortas="b-localectl">localectl</primary>
|
---|
357 | </indexterm>
|
---|
358 | </listitem>
|
---|
359 | </varlistentry>
|
---|
360 |
|
---|
361 | <varlistentry id="loginctl">
|
---|
362 | <term><command>loginctl</command></term>
|
---|
363 | <listitem>
|
---|
364 | <para>Used to introspect and control the state of the systemd Login
|
---|
365 | Manager.</para>
|
---|
366 | <indexterm zone="ch-system-systemd loginctl">
|
---|
367 | <primary sortas="b-loginctl">loginctl</primary>
|
---|
368 | </indexterm>
|
---|
369 | </listitem>
|
---|
370 | </varlistentry>
|
---|
371 |
|
---|
372 | <varlistentry id="machinectl">
|
---|
373 | <term><command>machinectl</command></term>
|
---|
374 | <listitem>
|
---|
375 | <para>Used to introspect and control the state of the systemd Virtual
|
---|
376 | Machine and Container Registration Manager</para>
|
---|
377 | <indexterm zone="ch-system-systemd machinectl">
|
---|
378 | <primary sortas="b-machinectl">machinectl</primary>
|
---|
379 | </indexterm>
|
---|
380 | </listitem>
|
---|
381 | </varlistentry>
|
---|
382 |
|
---|
383 | <varlistentry id="poweroff">
|
---|
384 | <term><command>poweroff</command></term>
|
---|
385 | <listitem>
|
---|
386 | <para>Tells the kernel to halt the system and switch off the computer
|
---|
387 | (see <command>halt</command>).</para>
|
---|
388 | <indexterm zone="ch-system-systemd poweroff">
|
---|
389 | <primary sortas="b-poweroff">poweroff</primary>
|
---|
390 | </indexterm>
|
---|
391 | </listitem>
|
---|
392 | </varlistentry>
|
---|
393 |
|
---|
394 | <varlistentry id="reboot">
|
---|
395 | <term><command>reboot</command></term>
|
---|
396 | <listitem>
|
---|
397 | <para>Tells the kernel to reboot the system (see
|
---|
398 | <command>halt</command>).</para>
|
---|
399 | <indexterm zone="ch-system-systemd reboot">
|
---|
400 | <primary sortas="b-reboot">reboot</primary>
|
---|
401 | </indexterm>
|
---|
402 | </listitem>
|
---|
403 | </varlistentry>
|
---|
404 |
|
---|
405 | <varlistentry id="runlevel">
|
---|
406 | <term><command>runlevel</command></term>
|
---|
407 | <listitem>
|
---|
408 | <para>Reports the previous and the current run-level, as noted in the
|
---|
409 | last run-level record in <filename>/var/run/utmp</filename>.</para>
|
---|
410 | <indexterm zone="ch-system-systemd runlevel">
|
---|
411 | <primary sortas="b-runlevel">runlevel</primary>
|
---|
412 | </indexterm>
|
---|
413 | </listitem>
|
---|
414 | </varlistentry>
|
---|
415 |
|
---|
416 | <varlistentry id="shutdown">
|
---|
417 | <term><command>shutdown</command></term>
|
---|
418 | <listitem>
|
---|
419 | <para>Brings the system down in a secure way, signaling all processes
|
---|
420 | and notifying all logged-in users.</para>
|
---|
421 | <indexterm zone="ch-system-systemd shutdown">
|
---|
422 | <primary sortas="b-shutdown">shutdown</primary>
|
---|
423 | </indexterm>
|
---|
424 | </listitem>
|
---|
425 | </varlistentry>
|
---|
426 |
|
---|
427 | <varlistentry id="systemctl">
|
---|
428 | <term><command>systemctl</command></term>
|
---|
429 | <listitem>
|
---|
430 | <para>Used to introspect and control the state of the systemd system and
|
---|
431 | service manager.</para>
|
---|
432 | <indexterm zone="ch-system-systemd systemctl">
|
---|
433 | <primary sortas="b-systemctl">systemctl</primary>
|
---|
434 | </indexterm>
|
---|
435 | </listitem>
|
---|
436 | </varlistentry>
|
---|
437 |
|
---|
438 | <varlistentry id="systemd-analyze">
|
---|
439 | <term><command>systemd-analyze</command></term>
|
---|
440 | <listitem>
|
---|
441 | <para>Used to determine system boot-up performance of the current boot.
|
---|
442 | </para>
|
---|
443 | <indexterm zone="ch-system-systemd systemd-analyze">
|
---|
444 | <primary sortas="b-systemd-analyze">systemd-analyze</primary>
|
---|
445 | </indexterm>
|
---|
446 | </listitem>
|
---|
447 | </varlistentry>
|
---|
448 |
|
---|
449 | <varlistentry id="systemd-ask-password">
|
---|
450 | <term><command>systemd-ask-password</command></term>
|
---|
451 | <listitem>
|
---|
452 | <para>Used to query a system password or passphrase from the user, using a
|
---|
453 | question message specified on the command line.</para>
|
---|
454 | <indexterm zone="ch-system-systemd systemd-ask-password">
|
---|
455 | <primary sortas="b-systemd-ask-password">systemd-ask-password</primary>
|
---|
456 | </indexterm>
|
---|
457 | </listitem>
|
---|
458 | </varlistentry>
|
---|
459 |
|
---|
460 | <varlistentry id="systemd-cat">
|
---|
461 | <term><command>systemd-cat</command></term>
|
---|
462 | <listitem>
|
---|
463 | <para>Used to connect STDOUT and STDERR of a process with the Journal.
|
---|
464 | </para>
|
---|
465 | <indexterm zone="ch-system-systemd systemd-cat">
|
---|
466 | <primary sortas="b-systemd-cat">systemd-cat</primary>
|
---|
467 | </indexterm>
|
---|
468 | </listitem>
|
---|
469 | </varlistentry>
|
---|
470 |
|
---|
471 | <varlistentry id="systemd-cgls">
|
---|
472 | <term><command>systemd-cgls</command></term>
|
---|
473 | <listitem>
|
---|
474 | <para>Recursively shows the contents of the selected Linux control group
|
---|
475 | hierarchy in a tree.</para>
|
---|
476 | <indexterm zone="ch-system-systemd systemd-cgls">
|
---|
477 | <primary sortas="b-systemd-cgls">systemd-cgls</primary>
|
---|
478 | </indexterm>
|
---|
479 | </listitem>
|
---|
480 | </varlistentry>
|
---|
481 |
|
---|
482 | <varlistentry id="systemd-cgtop">
|
---|
483 | <term><command>systemd-cgtop</command></term>
|
---|
484 | <listitem>
|
---|
485 | <para>Shows the top control groups of the local Linux control group hierarchy,
|
---|
486 | ordered by their CPU, memory and disk I/O load.</para>
|
---|
487 | <indexterm zone="ch-system-systemd systemd-cgtop">
|
---|
488 | <primary sortas="b-systemd-cgtop">systemd-cgtop</primary>
|
---|
489 | </indexterm>
|
---|
490 | </listitem>
|
---|
491 | </varlistentry>
|
---|
492 |
|
---|
493 | <varlistentry id="systemd-delta">
|
---|
494 | <term><command>systemd-delta</command></term>
|
---|
495 | <listitem>
|
---|
496 | <para>Used to identify and compare configuration files in
|
---|
497 | <filename class="directory">/etc</filename> that override default
|
---|
498 | counterparts in <filename class="directory">/usr</filename>.</para>
|
---|
499 | <indexterm zone="ch-system-systemd systemd-delta">
|
---|
500 | <primary sortas="b-systemd-delta">systemd-delta</primary>
|
---|
501 | </indexterm>
|
---|
502 | </listitem>
|
---|
503 | </varlistentry>
|
---|
504 |
|
---|
505 | <varlistentry id="systemd-detect-virt">
|
---|
506 | <term><command>systemd-detect-virt</command></term>
|
---|
507 | <listitem>
|
---|
508 | <para>Detects execution in a virtualized environment.</para>
|
---|
509 | <indexterm zone="ch-system-systemd systemd-detect-virt">
|
---|
510 | <primary sortas="b-systemd-detect-virt">systemd-detect-virt</primary>
|
---|
511 | </indexterm>
|
---|
512 | </listitem>
|
---|
513 | </varlistentry>
|
---|
514 |
|
---|
515 | <varlistentry id="systemd-escape">
|
---|
516 | <term><command>systemd-escape</command></term>
|
---|
517 | <listitem>
|
---|
518 | <para>Used to escape strings for inclusion in systemd unit names.</para>
|
---|
519 | <indexterm zone="ch-system-systemd systemd-escape">
|
---|
520 | <primary sortas="b-systemd-escape">systemd-escape</primary>
|
---|
521 | </indexterm>
|
---|
522 | </listitem>
|
---|
523 | </varlistentry>
|
---|
524 |
|
---|
525 | <varlistentry id="systemd-inhibit">
|
---|
526 | <term><command>systemd-inhibit</command></term>
|
---|
527 | <listitem>
|
---|
528 | <para>Used to execute a program with a shutdown, sleep or idle inhibitor lock
|
---|
529 | taken.</para>
|
---|
530 | <indexterm zone="ch-system-systemd systemd-inhibit">
|
---|
531 | <primary sortas="b-systemd-inhibit">systemd-inhibit</primary>
|
---|
532 | </indexterm>
|
---|
533 | </listitem>
|
---|
534 | </varlistentry>
|
---|
535 |
|
---|
536 | <varlistentry id="systemd-machine-id-setup">
|
---|
537 | <term><command>systemd-machine-id-setup</command></term>
|
---|
538 | <listitem>
|
---|
539 | <para>Used by system installer tools to initialize the machine ID stored in
|
---|
540 | <filename>/etc/machine-id</filename> at install time with a randomly
|
---|
541 | generated ID.</para>
|
---|
542 | <indexterm zone="ch-system-systemd systemd-machine-id-setup">
|
---|
543 | <primary sortas="b-systemd-machine-id-setup">systemd-machine-id-setup</primary>
|
---|
544 | </indexterm>
|
---|
545 | </listitem>
|
---|
546 | </varlistentry>
|
---|
547 |
|
---|
548 | <varlistentry id="systemd-notify">
|
---|
549 | <term><command>systemd-notify</command></term>
|
---|
550 | <listitem>
|
---|
551 | <para>Used by daemon scripts to notify the init system about status changes.
|
---|
552 | </para>
|
---|
553 | <indexterm zone="ch-system-systemd systemd-notify">
|
---|
554 | <primary sortas="b-systemd-notify">systemd-notify</primary>
|
---|
555 | </indexterm>
|
---|
556 | </listitem>
|
---|
557 | </varlistentry>
|
---|
558 |
|
---|
559 | <varlistentry id="systemd-nspawn">
|
---|
560 | <term><command>systemd-nspawn</command></term>
|
---|
561 | <listitem>
|
---|
562 | <para>Used to run a command or OS in a light-weight namespace container.</para>
|
---|
563 | <indexterm zone="ch-system-systemd systemd-nspawn">
|
---|
564 | <primary sortas="b-systemd-nspawn">systemd-nspawn</primary>
|
---|
565 | </indexterm>
|
---|
566 | </listitem>
|
---|
567 | </varlistentry>
|
---|
568 |
|
---|
569 | <varlistentry id="systemd-path">
|
---|
570 | <term><command>systemd-path</command></term>
|
---|
571 | <listitem>
|
---|
572 | <para>Used to query system and user paths.</para>
|
---|
573 | <indexterm zone="ch-system-systemd systemd-path">
|
---|
574 | <primary sortas="b-systemd-path">systemd-path</primary>
|
---|
575 | </indexterm>
|
---|
576 | </listitem>
|
---|
577 | </varlistentry>
|
---|
578 |
|
---|
579 | <varlistentry id="systemd-run">
|
---|
580 | <term><command>systemd-run</command></term>
|
---|
581 | <listitem>
|
---|
582 | <para>Used to create and start a transient .service or a .scope unit and
|
---|
583 | run the specified command in it.</para>
|
---|
584 | <indexterm zone="ch-system-systemd systemd-run">
|
---|
585 | <primary sortas="b-systemd-run">systemd-run</primary>
|
---|
586 | </indexterm>
|
---|
587 | </listitem>
|
---|
588 | </varlistentry>
|
---|
589 |
|
---|
590 | <!-- <varlistentry id="systemd-stdio-bridge">
|
---|
591 | <term><command>systemd-stdio-bridge</command></term>
|
---|
592 | <listitem>
|
---|
593 | <para>To be completed</para>
|
---|
594 | <indexterm zone="ch-system-systemd systemd-stdio-bridge">
|
---|
595 | <primary sortas="b-systemd-stdio-bridge">systemd-stdio-bridge</primary>
|
---|
596 | </indexterm>
|
---|
597 | </listitem>
|
---|
598 | </varlistentry> -->
|
---|
599 |
|
---|
600 | <varlistentry id="systemd-tmpfiles">
|
---|
601 | <term><command>systemd-tmpfiles</command></term>
|
---|
602 | <listitem>
|
---|
603 | <para>Creates, deletes and cleans up volatile and temporary files and directories,
|
---|
604 | based on the configuration file format and location specified in
|
---|
605 | <filename class="directory">tmpfiles.d</filename> directories.</para>
|
---|
606 | <indexterm zone="ch-system-systemd systemd-tmpfiles">
|
---|
607 | <primary sortas="b-systemd-tmpfiles">systemd-tmpfiles</primary>
|
---|
608 | </indexterm>
|
---|
609 | </listitem>
|
---|
610 | </varlistentry>
|
---|
611 |
|
---|
612 | <varlistentry id="systemd-tty-ask-password-agent">
|
---|
613 | <term><command>systemd-tty-ask-password-agent</command></term>
|
---|
614 | <listitem>
|
---|
615 | <para>Used to list or process pending systemd password requests</para>
|
---|
616 | <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent">
|
---|
617 | <primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary>
|
---|
618 | </indexterm>
|
---|
619 | </listitem>
|
---|
620 | </varlistentry>
|
---|
621 |
|
---|
622 | <varlistentry id="telinit">
|
---|
623 | <term><command>telinit</command></term>
|
---|
624 | <listitem>
|
---|
625 | <para>Tells <command>init</command> which run-level to change to.</para>
|
---|
626 | <indexterm zone="ch-system-systemd telinit">
|
---|
627 | <primary sortas="b-telinit">telinit</primary>
|
---|
628 | </indexterm>
|
---|
629 | </listitem>
|
---|
630 | </varlistentry>
|
---|
631 |
|
---|
632 | <varlistentry id="timedatectl">
|
---|
633 | <term><command>timedatectl</command></term>
|
---|
634 | <listitem>
|
---|
635 | <para>Used to query and change the system clock and its settings.
|
---|
636 | </para>
|
---|
637 | <indexterm zone="ch-system-systemd timedatectl">
|
---|
638 | <primary sortas="b-timedatectl">timedatectl</primary>
|
---|
639 | </indexterm>
|
---|
640 | </listitem>
|
---|
641 | </varlistentry>
|
---|
642 |
|
---|
643 | <varlistentry id="udevadm">
|
---|
644 | <term><command>udevadm</command></term>
|
---|
645 | <listitem>
|
---|
646 | <para>Generic Udev administration tool: controls the udevd daemon,
|
---|
647 | provides info from the Udev database, monitors uevents, waits for
|
---|
648 | uevents to finish, tests Udev configuration, and triggers uevents
|
---|
649 | for a given device.</para>
|
---|
650 | <indexterm zone="ch-system-systemd udevadm">
|
---|
651 | <primary sortas="b-udevadm">udevadm</primary>
|
---|
652 | </indexterm>
|
---|
653 | </listitem>
|
---|
654 | </varlistentry>
|
---|
655 |
|
---|
656 | <varlistentry id="libsystemd">
|
---|
657 | <term><filename class="libraryfile">libsystemd</filename></term>
|
---|
658 | <listitem>
|
---|
659 | <para>systemd utility library.</para>
|
---|
660 | <indexterm zone="ch-system-systemd libsystemd">
|
---|
661 | <primary sortas="c-libsystemd">libsystemd</primary>
|
---|
662 | </indexterm>
|
---|
663 | </listitem>
|
---|
664 | </varlistentry>
|
---|
665 |
|
---|
666 | <varlistentry id="libudev">
|
---|
667 | <term><filename class="libraryfile">libudev</filename></term>
|
---|
668 | <listitem>
|
---|
669 | <para>A library to access Udev device information.</para>
|
---|
670 | <indexterm zone="ch-system-systemd libudev">
|
---|
671 | <primary sortas="c-libudev">libudev</primary>
|
---|
672 | </indexterm>
|
---|
673 | </listitem>
|
---|
674 | </varlistentry>
|
---|
675 |
|
---|
676 | </variablelist>
|
---|
677 |
|
---|
678 | </sect2>
|
---|
679 |
|
---|
680 | </sect1>
|
---|