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