[e280697] | 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 | <!ENTITY systemd-download-http "http://www.freedesktop.org/software/systemd/systemd-&systemd-version;.tar.xz">
|
---|
| 8 | <!ENTITY systemd-download-ftp " ">
|
---|
| 9 | <!ENTITY systemd-md5sum "eac4f9fc5bd18a0efc3fc20858baacf3">
|
---|
| 10 | <!ENTITY systemd-size "2.7 MB">
|
---|
| 11 | <!ENTITY systemd-buildsize "97 MB">
|
---|
| 12 | <!ENTITY systemd-time "0.4 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="systemd" xreflabel="systemd">
|
---|
| 16 | <?dbhtml filename="systemd.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Systemd-&systemd-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="systemd">
|
---|
| 26 | <primary sortas="a-systemd">systemd</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Systemd</title>
|
---|
| 31 |
|
---|
[60b5b0b] | 32 | <para>This part contains instructions on how to build systemd package with
|
---|
| 33 | more features and why some features are required.
|
---|
| 34 | </para>
|
---|
[e280697] | 35 |
|
---|
| 36 | <!-- &lfs75_checked; -->
|
---|
| 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
[60b5b0b] | 39 | <warning>
|
---|
| 40 | <para>
|
---|
| 41 | It is important that you use the _same_ version of systemd as it was used in LFS build.
|
---|
| 42 | </para>
|
---|
| 43 | </warning>
|
---|
| 44 |
|
---|
[e280697] | 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download (HTTP): <ulink url="&systemd-download-http;"/></para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download (FTP): <ulink url="&systemd-download-ftp;"/></para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download MD5 sum: &systemd-md5sum;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Download size: &systemd-size;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Estimated disk space required: &systemd-buildsize;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Estimated build time: &systemd-time;</para>
|
---|
| 63 | </listitem>
|
---|
| 64 | </itemizedlist>
|
---|
| 65 |
|
---|
| 66 | <bridgehead renderas="sect3">Systemd Dependencies</bridgehead>
|
---|
| 67 |
|
---|
| 68 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 69 | <para role="required">
|
---|
| 70 | <xref linkend="glib2"/>,
|
---|
| 71 | <xref linkend="gobject-introspection"/>,
|
---|
[60b5b0b] | 72 | <xref linkend="linux-pam"/>
|
---|
[e280697] | 73 | </para>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect4">Optional Dependencies</bridgehead>
|
---|
| 76 | <para role="optional">
|
---|
[60b5b0b] | 77 | <xref linkend="libgcrypt"/> (see note below), and
|
---|
[e280697] | 78 | <xref linkend="gtk-doc"/> (to rebuild the documentation)
|
---|
| 79 | </para>
|
---|
| 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Optional Runtime Dependencies</bridgehead>
|
---|
| 82 | <para role="optional">
|
---|
| 83 | <xref linkend="pciutils"/> and
|
---|
| 84 | <xref linkend="usbutils"/>
|
---|
| 85 | </para>
|
---|
| 86 |
|
---|
[60b5b0b] | 87 | <note>
|
---|
| 88 | <para>
|
---|
| 89 | Having the first two packages at build time results in:
|
---|
| 90 |
|
---|
| 91 | libgudev-1.0.so in /usr/lib, /usr/include/gudev-1.0 directory, GUdev-1.0.
|
---|
| 92 | {typelib,gir} GObject-Introspection bindings in /usr/lib/girepository-1.0
|
---|
| 93 | and /usr/share/gir-1.0 respectively.
|
---|
| 94 |
|
---|
| 95 | Since GLib2 has a dependency on Python, systemd Python bindings were also installed in:
|
---|
| 96 |
|
---|
| 97 | /usr/lib/python2.7/site-packages/systemd
|
---|
| 98 |
|
---|
| 99 | Having the Linux-PAM package at build time results in:
|
---|
| 100 |
|
---|
| 101 | pam_systemd.so in /lib/security, a PAM module used to register logins/logouts with systemd-logind component.
|
---|
| 102 |
|
---|
| 103 | This is required by anything that now requires ConsoleKit (desktops, mostly), as well as some other software.
|
---|
| 104 | </para>
|
---|
| 105 | </note>
|
---|
| 106 |
|
---|
[e280697] | 107 | <para condition="html" role="usernotes">User Notes:
|
---|
| 108 | <ulink url="&blfs-wiki;/systemd"/></para>
|
---|
| 109 |
|
---|
| 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2 role="installation">
|
---|
| 113 | <title>Installation of systemd</title>
|
---|
| 114 |
|
---|
| 115 | <para>fix a build error when using Util-Linux built in
|
---|
| 116 | LFS-Systemd</para>
|
---|
| 117 |
|
---|
| 118 | <screen><userinput>sed -i "s:blkid/::" $(grep -rl "blkid/blkid.h")</userinput></screen>
|
---|
| 119 |
|
---|
| 120 | <para>Apply a patch so that compat <command>pkg-config</command> files get
|
---|
| 121 | installed without installing compat libs which are useless on LFS:</para>
|
---|
| 122 |
|
---|
| 123 | <screen><userinput>patch -Np1 -i ../systemd-&systemd-version;-compat-1.patch</userinput></screen>
|
---|
| 124 |
|
---|
| 125 | <para>Prepare systemd for compilation:</para>
|
---|
| 126 |
|
---|
| 127 | <screen><userinput>
|
---|
| 128 | ./configure --prefix=/usr \
|
---|
| 129 | --sysconfdir=/etc \
|
---|
| 130 | --localstatedir=/var \
|
---|
| 131 | --with-rootprefix= \
|
---|
| 132 | --with-rootlibdir=/lib \
|
---|
| 133 | --enable-split-usr \
|
---|
| 134 | --docdir=/usr/share/doc/systemd-&systemd-version;</userinput></screen>
|
---|
| 135 |
|
---|
| 136 | <variablelist>
|
---|
| 137 | <title>The meaning of the configure options:</title>
|
---|
| 138 |
|
---|
| 139 | <varlistentry>
|
---|
| 140 | <term><parameter>--with-root*</parameter></term>
|
---|
| 141 | <listitem>
|
---|
| 142 | <para>These switches ensure that core programs and
|
---|
| 143 | shared libraries are installed in the subdirectories
|
---|
| 144 | of the root partition.</para>
|
---|
| 145 | </listitem>
|
---|
| 146 | </varlistentry>
|
---|
| 147 |
|
---|
| 148 | <varlistentry>
|
---|
| 149 | <term><parameter>--enable-split-usr</parameter></term>
|
---|
| 150 | <listitem>
|
---|
| 151 | <para>This switch ensures that systemd will work on
|
---|
| 152 | systems where /bin, /lib and /sbin directories are not
|
---|
| 153 | symlinks to their /usr counterparts.</para>
|
---|
| 154 | </listitem>
|
---|
| 155 | </varlistentry>
|
---|
| 156 |
|
---|
| 157 | </variablelist>
|
---|
| 158 |
|
---|
| 159 | <para>Compile the package:</para>
|
---|
| 160 |
|
---|
| 161 | <screen><userinput>make</userinput></screen>
|
---|
| 162 |
|
---|
| 163 | <para>First prevent few broken test cases from running:</para>
|
---|
| 164 |
|
---|
| 165 | <screen><userinput>sed -e "s:test/udev-test.pl::g"
|
---|
| 166 | -i Makefile</userinput></screen>
|
---|
| 167 |
|
---|
| 168 | <para>To test the results, issue:</para>
|
---|
| 169 |
|
---|
| 170 | <screen><userinput>make -k check</userinput></screen>
|
---|
[60b5b0b] | 171 | <note>
|
---|
[e280697] | 172 | <para>For full test coverage, the test suite should be run
|
---|
[60b5b0b] | 173 | from a system booted using systemd.
|
---|
| 174 | </para>
|
---|
| 175 | </note>
|
---|
| 176 | <warning>
|
---|
[e280697] | 177 | <para>Installing the package will override all systemd components installed in LFS,
|
---|
[60b5b0b] | 178 | so it is advised that the re-installation is done in a rescue mode with no programs except basic
|
---|
| 179 | systemd ones running. To enter rescue mode with systemd, issue this as the <systemitem class="username">root</systemitem>
|
---|
| 180 | from a VT console:
|
---|
| 181 | </para>
|
---|
| 182 | </warning>
|
---|
[e280697] | 183 | <screen role="root"><userinput>systemctl start rescue.target</userinput></screen>
|
---|
| 184 |
|
---|
| 185 | <para>Install the package as the <systemitem class="username">root</systemitem>
|
---|
| 186 | user:</para>
|
---|
| 187 |
|
---|
| 188 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 189 |
|
---|
| 190 | <para>Move NSS myhostname library to<filename
|
---|
| 191 | class="directory">/lib</filename>:</para>
|
---|
| 192 |
|
---|
| 193 | <screen><userinput>mv -v /usr/lib/libnss_myhostname.so.2 /lib</userinput></screen>
|
---|
| 194 |
|
---|
| 195 | <para>Remove an unnecessary directory:</para>
|
---|
| 196 |
|
---|
| 197 | <screen><userinput>rm -rfv /usr/lib/rpm</userinput></screen>
|
---|
| 198 |
|
---|
| 199 | <para>Remove a reference to a non-existent group:</para>
|
---|
| 200 |
|
---|
| 201 | <screen><userinput>sed -i "s:0775 root lock:0755 root root:g" /usr/lib/tmpfiles.d/legacy.conf</userinput></screen>
|
---|
| 202 |
|
---|
[60b5b0b] | 203 | <warning>
|
---|
[e280697] | 204 | <para>WARNING do NOT run the systemd-machine-id-setup command again,
|
---|
| 205 | UUID was generated once and as its name says,
|
---|
| 206 | it should be unique. Generating a new one might result in broken logs from
|
---|
| 207 | journald and who knows what else.
|
---|
| 208 | </para>
|
---|
[60b5b0b] | 209 | </warning>
|
---|
| 210 |
|
---|
| 211 | <note>
|
---|
| 212 | <para>If libgcrypt was present at build time, make sure you move both libgpg-error and
|
---|
| 213 | libgcrypt versioned libraries to /lib so that they are
|
---|
| 214 | available in case of separate /usr by
|
---|
| 215 | issuing the following commands as the <systemitem class="username">root</systemitem>
|
---|
| 216 | user:
|
---|
| 217 |
|
---|
| 218 | <screen role="root"><userinput>mv -v /usr/lib/libgcrypt.so.* /usr/lib/libgpg-error.so.* /lib
|
---|
| 219 | ln -sfv ../../lib/$(readlink /usr/lib/libgcrypt.so) /usr/lib/libgcrypt.so
|
---|
| 220 | ln -sfv ../../lib/$(readlink /usr/lib/libgpg-error.so) /usr/lib/libgpg-error.so</userinput></screen></para></note>
|
---|
[e280697] | 221 |
|
---|
| 222 | <para>If the pam_systemd.so PAM module was built, the system-sesion
|
---|
| 223 | PAM file needs to be modified and a new file needs to be created in order
|
---|
| 224 | for systemd-logind to work correctly. Create the configuration file by
|
---|
| 225 | issuing the following commands as the <systemitem class="username">root</systemitem>
|
---|
| 226 | user:
|
---|
| 227 | </para>
|
---|
| 228 |
|
---|
| 229 | <screen role="root"><userinput>
|
---|
| 230 |
|
---|
| 231 | cat > /etc/pam.d/system-session << "EOF"
|
---|
| 232 | # Begin Systemd addition
|
---|
| 233 |
|
---|
| 234 | session optional pam_loginuid.so
|
---|
| 235 | session optional pam_systemd.so
|
---|
| 236 | # End Systemd addition
|
---|
| 237 | EOF &&
|
---|
| 238 |
|
---|
| 239 | cat > /etc/pam.d/systemd-user << "EOF"
|
---|
| 240 | # Begin /etc/pam.d/systemd-user
|
---|
| 241 |
|
---|
| 242 | account required pam_access.so
|
---|
| 243 | account include system-account
|
---|
| 244 |
|
---|
| 245 | session required pam_env.so
|
---|
| 246 | session required pam_limits.so
|
---|
| 247 | session include system-session
|
---|
| 248 |
|
---|
| 249 | auth required pam_deny.so
|
---|
| 250 | password required pam_deny.so
|
---|
| 251 |
|
---|
| 252 | # End /etc/pam.d/systemd-user
|
---|
| 253 | EOF</userinput></screen>
|
---|
| 254 |
|
---|
| 255 | <para>At this point it would be a nice idea to reboot, or rather restart the
|
---|
| 256 | systemd components in case of new dependencies as the <systemitem class="username">root</systemitem>
|
---|
| 257 | user:</para>
|
---|
| 258 |
|
---|
| 259 | <screen role="root"><userinput>systemctl daemon-reexec
|
---|
| 260 | systemctl restart systemd-logind systemd-journald systemd-udevd</userinput></screen>
|
---|
| 261 |
|
---|
| 262 | </sect2>
|
---|
| 263 |
|
---|
| 264 | <sect2 role="content">
|
---|
| 265 | <title>Contents</title>
|
---|
| 266 |
|
---|
| 267 | <segmentedlist>
|
---|
| 268 | <segtitle>Installed programs</segtitle>
|
---|
| 269 | <segtitle>Installed libraries</segtitle>
|
---|
| 270 | <segtitle>Installed directories</segtitle>
|
---|
| 271 |
|
---|
| 272 | <seglistitem>
|
---|
| 273 | <seg>bootctl, busctl, halt, hostnamectl, init, journalctl, kernel-install,
|
---|
| 274 | localectl, loginctl, machinectl, poweroff, reboot, runlevel, shutdown,
|
---|
| 275 | systemctl, systemd-analyze, systemd-ask-password, systemd-cat, systemd-cgls,
|
---|
| 276 | systemd-cgtop, systemd-coredumpctl, systemd-delta, systemd-detect-virt,
|
---|
| 277 | systemd-inhibit, systemd-machine-id-setup, systemd-notify, systemd-nspawn,
|
---|
| 278 | systemd-run, systemd-stdio-bridge, systemd-tmpfiles, systemd-tty-ask-password-agent,
|
---|
| 279 | telinit, timedatectl, and udevadm</seg>
|
---|
| 280 |
|
---|
| 281 | <seg>libnss_myhostname.so.2, libsystemd.so, libudev.so</seg>
|
---|
| 282 | <seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d,
|
---|
| 283 | /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev,
|
---|
| 284 | /etc/xdg/systemd, /lib/systemd, /lib/udev, /usr/include/systemd,
|
---|
| 285 | /usr/lib/binfmt.d, /usr/lib/kernel, /usr/lib/modules-load.d,
|
---|
| 286 | /usr/lib/sysctl.d, /usr/lib/systemd, /usr/lib/tmpfiles.d,
|
---|
| 287 | /usr/share/doc/systemd-&systemd-version;, /usr/share/systemd,
|
---|
| 288 | /var/lib/systemd, /var/log/journal</seg>
|
---|
| 289 | </seglistitem>
|
---|
| 290 | </segmentedlist>
|
---|
| 291 |
|
---|
| 292 | <variablelist>
|
---|
| 293 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 294 | <?dbfo list-presentation="list"?>
|
---|
| 295 | <?dbhtml list-presentation="table"?>
|
---|
| 296 |
|
---|
| 297 | <varlistentry id="bootctl">
|
---|
| 298 | <term><command>bootctl</command></term>
|
---|
| 299 | <listitem>
|
---|
| 300 | <para>used to query the firmware and boot manager settings.</para>
|
---|
| 301 | <indexterm zone="systemd bootctl">
|
---|
| 302 | <primary sortas="b-bootctl">bootctl</primary>
|
---|
| 303 | </indexterm>
|
---|
| 304 | </listitem>
|
---|
| 305 | </varlistentry>
|
---|
| 306 |
|
---|
| 307 | <varlistentry id="busctl">
|
---|
| 308 | <term><command>busctl</command></term>
|
---|
| 309 | <listitem>
|
---|
| 310 | <para>Used to introspect and monitor the D-Bus bus.</para>
|
---|
| 311 | <indexterm zone="systemd busctl">
|
---|
| 312 | <primary sortas="b-busctl">busctl</primary>
|
---|
| 313 | </indexterm>
|
---|
| 314 | </listitem>
|
---|
| 315 | </varlistentry>
|
---|
| 316 |
|
---|
| 317 | <varlistentry id="halt">
|
---|
| 318 | <term><command>halt</command></term>
|
---|
| 319 | <listitem>
|
---|
| 320 | <para>Normally invokes <command>shutdown</command> with the
|
---|
| 321 | <parameter>-h</parameter> option, except when already in run-level 0,
|
---|
| 322 | then it tells the kernel to halt the system; it notes in the
|
---|
| 323 | file <filename>/var/log/wtmp</filename> that the system is being
|
---|
| 324 | brought down.</para>
|
---|
| 325 | <indexterm zone="systemd halt">
|
---|
| 326 | <primary sortas="b-halt">halt</primary>
|
---|
| 327 | </indexterm>
|
---|
| 328 | </listitem>
|
---|
| 329 | </varlistentry>
|
---|
| 330 |
|
---|
| 331 | <varlistentry id="hostnamectl">
|
---|
| 332 | <term><command>hostnamectl</command></term>
|
---|
| 333 | <listitem>
|
---|
| 334 | <para>Used to query and change the system hostname and related
|
---|
| 335 | settings.</para>
|
---|
| 336 | <indexterm zone="systemd hostnamectl">
|
---|
| 337 | <primary sortas="b-hostnamectl">hostnamectl</primary>
|
---|
| 338 | </indexterm>
|
---|
| 339 | </listitem>
|
---|
| 340 | </varlistentry>
|
---|
| 341 |
|
---|
| 342 | <varlistentry id="init">
|
---|
| 343 | <term><command>init</command></term>
|
---|
| 344 | <listitem>
|
---|
| 345 | <para>The first process to be started when the kernel has initialized
|
---|
| 346 | the hardware which takes over the boot process and starts all the
|
---|
| 347 | proceses it is instructed to.</para>
|
---|
| 348 | <indexterm zone="systemd init">
|
---|
| 349 | <primary sortas="b-init">init</primary>
|
---|
| 350 | </indexterm>
|
---|
| 351 | </listitem>
|
---|
| 352 | </varlistentry>
|
---|
| 353 |
|
---|
| 354 | <varlistentry id="journalctl">
|
---|
| 355 | <term><command>journalctl</command></term>
|
---|
| 356 | <listitem>
|
---|
| 357 | <para>Used to query the contents of the systemd Journal.</para>
|
---|
| 358 | <indexterm zone="systemd journalctl">
|
---|
| 359 | <primary sortas="b-journalctl">journalctl</primary>
|
---|
| 360 | </indexterm>
|
---|
| 361 | </listitem>
|
---|
| 362 | </varlistentry>
|
---|
| 363 |
|
---|
| 364 | <varlistentry id="kernel-install">
|
---|
| 365 | <term><command>kernel-install</command></term>
|
---|
| 366 | <listitem>
|
---|
| 367 | <para>Used to add and remove kernel and initramfs images to and
|
---|
| 368 | from /boot.</para>
|
---|
| 369 | <indexterm zone="systemd kernel-install">
|
---|
| 370 | <primary sortas="b-kernel-install">kernel-install</primary>
|
---|
| 371 | </indexterm>
|
---|
| 372 | </listitem>
|
---|
| 373 | </varlistentry>
|
---|
| 374 |
|
---|
| 375 | <varlistentry id="localectl">
|
---|
| 376 | <term><command>localectl</command></term>
|
---|
| 377 | <listitem>
|
---|
| 378 | <para>Used to query and change the system locale and keyboard layout
|
---|
| 379 | settings.</para>
|
---|
| 380 | <indexterm zone="systemd localectl">
|
---|
| 381 | <primary sortas="b-localectl">localectl</primary>
|
---|
| 382 | </indexterm>
|
---|
| 383 | </listitem>
|
---|
| 384 | </varlistentry>
|
---|
| 385 |
|
---|
| 386 | <varlistentry id="loginctl">
|
---|
| 387 | <term><command>loginctl</command></term>
|
---|
| 388 | <listitem>
|
---|
| 389 | <para>Used to introspect and control the state of the systemd Login
|
---|
| 390 | Manager.</para>
|
---|
| 391 | <indexterm zone="systemd loginctl">
|
---|
| 392 | <primary sortas="b-loginctl">loginctl</primary>
|
---|
| 393 | </indexterm>
|
---|
| 394 | </listitem>
|
---|
| 395 | </varlistentry>
|
---|
| 396 |
|
---|
| 397 | <varlistentry id="machinectl">
|
---|
| 398 | <term><command>machinectl</command></term>
|
---|
| 399 | <listitem>
|
---|
| 400 | <para>Used to introspect and control the state of the systemd Virtual
|
---|
| 401 | Machine and Container Registration Manager</para>
|
---|
| 402 | <indexterm zone="systemd machinectl">
|
---|
| 403 | <primary sortas="b-machinectl">machinectl</primary>
|
---|
| 404 | </indexterm>
|
---|
| 405 | </listitem>
|
---|
| 406 | </varlistentry>
|
---|
| 407 |
|
---|
| 408 | <varlistentry id="poweroff">
|
---|
| 409 | <term><command>poweroff</command></term>
|
---|
| 410 | <listitem>
|
---|
| 411 | <para>Tells the kernel to halt the system and switch off the computer
|
---|
| 412 | (see <command>halt</command>).</para>
|
---|
| 413 | <indexterm zone="systemd poweroff">
|
---|
| 414 | <primary sortas="b-poweroff">poweroff</primary>
|
---|
| 415 | </indexterm>
|
---|
| 416 | </listitem>
|
---|
| 417 | </varlistentry>
|
---|
| 418 |
|
---|
| 419 | <varlistentry id="reboot">
|
---|
| 420 | <term><command>reboot</command></term>
|
---|
| 421 | <listitem>
|
---|
| 422 | <para>Tells the kernel to reboot the system (see
|
---|
| 423 | <command>halt</command>).</para>
|
---|
| 424 | <indexterm zone="systemd reboot">
|
---|
| 425 | <primary sortas="b-reboot">reboot</primary>
|
---|
| 426 | </indexterm>
|
---|
| 427 | </listitem>
|
---|
| 428 | </varlistentry>
|
---|
| 429 |
|
---|
| 430 | <varlistentry id="runlevel">
|
---|
| 431 | <term><command>runlevel</command></term>
|
---|
| 432 | <listitem>
|
---|
| 433 | <para>Reports the previous and the current run-level, as noted in the
|
---|
| 434 | last run-level record in <filename>/var/run/utmp</filename>.</para>
|
---|
| 435 | <indexterm zone="systemd runlevel">
|
---|
| 436 | <primary sortas="b-runlevel">runlevel</primary>
|
---|
| 437 | </indexterm>
|
---|
| 438 | </listitem>
|
---|
| 439 | </varlistentry>
|
---|
| 440 |
|
---|
| 441 | <varlistentry id="shutdown">
|
---|
| 442 | <term><command>shutdown</command></term>
|
---|
| 443 | <listitem>
|
---|
| 444 | <para>Brings the system down in a secure way, signaling all processes
|
---|
| 445 | and notifying all logged-in users.</para>
|
---|
| 446 | <indexterm zone="systemd shutdown">
|
---|
| 447 | <primary sortas="b-shutdown">shutdown</primary>
|
---|
| 448 | </indexterm>
|
---|
| 449 | </listitem>
|
---|
| 450 | </varlistentry>
|
---|
| 451 |
|
---|
| 452 | <varlistentry id="systemctl">
|
---|
| 453 | <term><command>systemctl</command></term>
|
---|
| 454 | <listitem>
|
---|
| 455 | <para>Used to introspect and control the state of the systemd system and
|
---|
| 456 | service manager.</para>
|
---|
| 457 | <indexterm zone="systemd systemctl">
|
---|
| 458 | <primary sortas="b-systemctl">systemctl</primary>
|
---|
| 459 | </indexterm>
|
---|
| 460 | </listitem>
|
---|
| 461 | </varlistentry>
|
---|
| 462 |
|
---|
| 463 | <varlistentry id="systemd-analyze">
|
---|
| 464 | <term><command>systemd-analyze</command></term>
|
---|
| 465 | <listitem>
|
---|
| 466 | <para>Used to determine system boot-up performance of the current boot.
|
---|
| 467 | </para>
|
---|
| 468 | <indexterm zone="systemd systemd-analyze">
|
---|
| 469 | <primary sortas="b-systemd-analyze">systemd-analyze</primary>
|
---|
| 470 | </indexterm>
|
---|
| 471 | </listitem>
|
---|
| 472 | </varlistentry>
|
---|
| 473 |
|
---|
| 474 | <varlistentry id="systemd-ask-password">
|
---|
| 475 | <term><command>systemd-ask-password</command></term>
|
---|
| 476 | <listitem>
|
---|
| 477 | <para>Used to query a system password or passphrase from the user, using a
|
---|
| 478 | question message specified on the command line.</para>
|
---|
| 479 | <indexterm zone="systemd systemd-ask-password">
|
---|
| 480 | <primary sortas="b-systemd-ask-password">systemd-ask-password</primary>
|
---|
| 481 | </indexterm>
|
---|
| 482 | </listitem>
|
---|
| 483 | </varlistentry>
|
---|
| 484 |
|
---|
| 485 | <varlistentry id="systemd-cat">
|
---|
| 486 | <term><command>systemd-cat</command></term>
|
---|
| 487 | <listitem>
|
---|
| 488 | <para>Used to connect STDOUT and STDERR of a process with the Journal.
|
---|
| 489 | </para>
|
---|
| 490 | <indexterm zone="systemd systemd-cat">
|
---|
| 491 | <primary sortas="b-systemd-cat">systemd-cat</primary>
|
---|
| 492 | </indexterm>
|
---|
| 493 | </listitem>
|
---|
| 494 | </varlistentry>
|
---|
| 495 |
|
---|
| 496 | <varlistentry id="systemd-cgls">
|
---|
| 497 | <term><command>systemd-cgls</command></term>
|
---|
| 498 | <listitem>
|
---|
| 499 | <para>Recursively shows the contents of the selected Linux control group
|
---|
| 500 | hierarchy in a tree.</para>
|
---|
| 501 | <indexterm zone="systemd systemd-cgls">
|
---|
| 502 | <primary sortas="b-systemd-cgls">systemd-cgls</primary>
|
---|
| 503 | </indexterm>
|
---|
| 504 | </listitem>
|
---|
| 505 | </varlistentry>
|
---|
| 506 |
|
---|
| 507 | <varlistentry id="systemd-cgtop">
|
---|
| 508 | <term><command>systemd-cgtop</command></term>
|
---|
| 509 | <listitem>
|
---|
| 510 | <para>Shows the top control groups of the local Linux control group hierarchy,
|
---|
| 511 | ordered by their CPU, memory and disk I/O load.</para>
|
---|
| 512 | <indexterm zone="systemd systemd-cgtop">
|
---|
| 513 | <primary sortas="b-systemd-cgtop">systemd-cgtop</primary>
|
---|
| 514 | </indexterm>
|
---|
| 515 | </listitem>
|
---|
| 516 | </varlistentry>
|
---|
| 517 |
|
---|
| 518 | <varlistentry id="systemd-coredumpctl">
|
---|
| 519 | <term><command>systemd-coredumpctl</command></term>
|
---|
| 520 | <listitem>
|
---|
| 521 | <para>Used to retrieve coredumps from the systemd Journal</para>
|
---|
| 522 | <indexterm zone="systemd systemd-coredumpctl">
|
---|
| 523 | <primary sortas="b-systemd-coredumpctl">systemd-coredumpctl</primary>
|
---|
| 524 | </indexterm>
|
---|
| 525 | </listitem>
|
---|
| 526 | </varlistentry>
|
---|
| 527 |
|
---|
| 528 | <varlistentry id="systemd-delta">
|
---|
| 529 | <term><command>systemd-delta</command></term>
|
---|
| 530 | <listitem>
|
---|
| 531 | <para>Used to identify and compare configuration files in
|
---|
| 532 | <filename class="directory">/etc</filename> that override default
|
---|
| 533 | counterparts in <filename class="directory">/usr</filename>.</para>
|
---|
| 534 | <indexterm zone="systemd systemd-delta">
|
---|
| 535 | <primary sortas="b-systemd-delta">systemd-delta</primary>
|
---|
| 536 | </indexterm>
|
---|
| 537 | </listitem>
|
---|
| 538 | </varlistentry>
|
---|
| 539 |
|
---|
| 540 | <varlistentry id="systemd-detect-virt">
|
---|
| 541 | <term><command>systemd-detect-virt</command></term>
|
---|
| 542 | <listitem>
|
---|
| 543 | <para>Detects execution in a virtualized environment.</para>
|
---|
| 544 | <indexterm zone="systemd systemd-detect-virt">
|
---|
| 545 | <primary sortas="b-systemd-detect-virt">systemd-detect-virt</primary>
|
---|
| 546 | </indexterm>
|
---|
| 547 | </listitem>
|
---|
| 548 | </varlistentry>
|
---|
| 549 |
|
---|
| 550 | <varlistentry id="systemd-inhibit">
|
---|
| 551 | <term><command>systemd-inhibit</command></term>
|
---|
| 552 | <listitem>
|
---|
| 553 | <para>Used to execute a program with a shutdown, sleep or idle inhibitor lock
|
---|
| 554 | taken.</para>
|
---|
| 555 | <indexterm zone="systemd systemd-inhibit">
|
---|
| 556 | <primary sortas="b-systemd-inhibit">systemd-inhibit</primary>
|
---|
| 557 | </indexterm>
|
---|
| 558 | </listitem>
|
---|
| 559 | </varlistentry>
|
---|
| 560 |
|
---|
| 561 | <varlistentry id="systemd-machine-id-setup">
|
---|
| 562 | <term><command>systemd-machine-id-setup</command></term>
|
---|
| 563 | <listitem>
|
---|
| 564 | <para>Used by system installer tools to initialize the machine ID stored in
|
---|
| 565 | <filename>/etc/machine-id</filename> at install time with a randomly
|
---|
| 566 | generated ID.</para>
|
---|
| 567 | <indexterm zone="systemd systemd-machine-id-setup">
|
---|
| 568 | <primary sortas="b-systemd-machine-id-setup">systemd-machine-id-setup</primary>
|
---|
| 569 | </indexterm>
|
---|
| 570 | </listitem>
|
---|
| 571 | </varlistentry>
|
---|
| 572 |
|
---|
| 573 | <varlistentry id="systemd-notify">
|
---|
| 574 | <term><command>systemd-notify</command></term>
|
---|
| 575 | <listitem>
|
---|
| 576 | <para>Used by daemon scripts to notify the init system about status changes.
|
---|
| 577 | </para>
|
---|
| 578 | <indexterm zone="systemd systemd-notify">
|
---|
| 579 | <primary sortas="b-systemd-notify">systemd-notify</primary>
|
---|
| 580 | </indexterm>
|
---|
| 581 | </listitem>
|
---|
| 582 | </varlistentry>
|
---|
| 583 |
|
---|
| 584 | <varlistentry id="systemd-nspawn">
|
---|
| 585 | <term><command>systemd-nspawn</command></term>
|
---|
| 586 | <listitem>
|
---|
| 587 | <para>Used to run a command or OS in a light-weight namespace container.</para>
|
---|
| 588 | <indexterm zone="systemd systemd-nspawn">
|
---|
| 589 | <primary sortas="b-systemd-nspawn">systemd-nspawn</primary>
|
---|
| 590 | </indexterm>
|
---|
| 591 | </listitem>
|
---|
| 592 | </varlistentry>
|
---|
| 593 |
|
---|
| 594 | <varlistentry id="systemd-run">
|
---|
| 595 | <term><command>systemd-run</command></term>
|
---|
| 596 | <listitem>
|
---|
| 597 | <para>Used to create and start a transient .service or a .scope unit and
|
---|
| 598 | run the specified command in it.</para>
|
---|
| 599 | <indexterm zone="systemd systemd-run">
|
---|
| 600 | <primary sortas="b-systemd-run">systemd-run</primary>
|
---|
| 601 | </indexterm>
|
---|
| 602 | </listitem>
|
---|
| 603 | </varlistentry>
|
---|
| 604 |
|
---|
| 605 | <!-- <varlistentry id="systemd-stdio-bridge">
|
---|
| 606 | <term><command>systemd-stdio-bridge</command></term>
|
---|
| 607 | <listitem>
|
---|
| 608 | <para>To be completed</para>
|
---|
| 609 | <indexterm zone="ch-system-systemd systemd-stdio-bridge">
|
---|
| 610 | <primary sortas="b-systemd-stdio-bridge">systemd-stdio-bridge</primary>
|
---|
| 611 | </indexterm>
|
---|
| 612 | </listitem>
|
---|
| 613 | </varlistentry> -->
|
---|
| 614 |
|
---|
| 615 | <varlistentry id="systemd-tmpfiles">
|
---|
| 616 | <term><command>systemd-tmpfiles</command></term>
|
---|
| 617 | <listitem>
|
---|
| 618 | <para>Creates, deletes and cleans up volatile and temporary files and directories,
|
---|
| 619 | based on the configuration file format and location specified in
|
---|
| 620 | <filename class="directory">tmpfiles.d</filename> directories.</para>
|
---|
| 621 | <indexterm zone="systemd systemd-tmpfiles">
|
---|
| 622 | <primary sortas="b-systemd-tmpfiles">systemd-tmpfiles</primary>
|
---|
| 623 | </indexterm>
|
---|
| 624 | </listitem>
|
---|
| 625 | </varlistentry>
|
---|
| 626 |
|
---|
| 627 | <varlistentry id="systemd-tty-ask-password-agent">
|
---|
| 628 | <term><command>systemd-tty-ask-password-agent</command></term>
|
---|
| 629 | <listitem>
|
---|
| 630 | <para>Used to list or process pending systemd password requests</para>
|
---|
| 631 | <indexterm zone="systemd systemd-tty-ask-password-agent">
|
---|
| 632 | <primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary>
|
---|
| 633 | </indexterm>
|
---|
| 634 | </listitem>
|
---|
| 635 | </varlistentry>
|
---|
| 636 |
|
---|
| 637 | <varlistentry id="telinit">
|
---|
| 638 | <term><command>telinit</command></term>
|
---|
| 639 | <listitem>
|
---|
| 640 | <para>Tells <command>init</command> which run-level to change to.</para>
|
---|
| 641 | <indexterm zone="systemd telinit">
|
---|
| 642 | <primary sortas="b-telinit">telinit</primary>
|
---|
| 643 | </indexterm>
|
---|
| 644 | </listitem>
|
---|
| 645 | </varlistentry>
|
---|
| 646 |
|
---|
| 647 | <varlistentry id="timedatectl">
|
---|
| 648 | <term><command>timedatectl</command></term>
|
---|
| 649 | <listitem>
|
---|
| 650 | <para>Used to query and change the system clock and its settings.
|
---|
| 651 | </para>
|
---|
| 652 | <indexterm zone="systemd timedatectl">
|
---|
| 653 | <primary sortas="b-timedatectl">timedatectl</primary>
|
---|
| 654 | </indexterm>
|
---|
| 655 | </listitem>
|
---|
| 656 | </varlistentry>
|
---|
| 657 |
|
---|
| 658 | <varlistentry id="udevadm">
|
---|
| 659 | <term><command>udevadm</command></term>
|
---|
| 660 | <listitem>
|
---|
| 661 | <para>Generic Udev administration tool: controls the udevd daemon,
|
---|
| 662 | provides info from the Udev database, monitors uevents, waits for
|
---|
| 663 | uevents to finish, tests Udev configuration, and triggers uevents
|
---|
| 664 | for a given device.</para>
|
---|
| 665 | <indexterm zone="systemd udevadm">
|
---|
| 666 | <primary sortas="b-udevadm">udevadm</primary>
|
---|
| 667 | </indexterm>
|
---|
| 668 | </listitem>
|
---|
| 669 | </varlistentry>
|
---|
| 670 |
|
---|
| 671 | <varlistentry id="libsystemd">
|
---|
| 672 | <term><filename class="libraryfile">libsystemd</filename></term>
|
---|
| 673 | <listitem>
|
---|
| 674 | <para>systemd utility library.</para>
|
---|
| 675 | <indexterm zone="systemd libsystemd">
|
---|
| 676 | <primary sortas="c-libsystemd">libsystemd</primary>
|
---|
| 677 | </indexterm>
|
---|
| 678 | </listitem>
|
---|
| 679 | </varlistentry>
|
---|
| 680 |
|
---|
| 681 | <varlistentry id="libudev">
|
---|
| 682 | <term><filename class="libraryfile">libudev</filename></term>
|
---|
| 683 | <listitem>
|
---|
| 684 | <para>A library to access Udev device information.</para>
|
---|
| 685 | <indexterm zone="systemd libudev">
|
---|
| 686 | <primary sortas="c-libudev">libudev</primary>
|
---|
| 687 | </indexterm>
|
---|
| 688 | </listitem>
|
---|
| 689 | </varlistentry>
|
---|
| 690 |
|
---|
| 691 | </variablelist>
|
---|
| 692 |
|
---|
| 693 | </sect2>
|
---|
| 694 |
|
---|
| 695 | </sect1>
|
---|