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