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