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