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