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