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