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