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