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