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