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