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