From e4d8c0cda6f4bdb67f6133cefcb53956b0331a5a Mon Sep 17 00:00:00 2001 From: Krejzi Date: Fri, 15 Feb 2013 20:47:10 +0000 Subject: [PATCH] Slightly modify Systemd page. git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10157 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/systemd.xml | 298 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 261 insertions(+), 37 deletions(-) diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml index 73d4f9d21..e011b8244 100644 --- a/chapter06/systemd.xml +++ b/chapter06/systemd.xml @@ -46,44 +46,117 @@ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib \ + --docdir=/usr/share/doc/systemd-&systemd-version; \ --with-rootprefix= \ --with-rootlibdir=/lib \ --with-kbd-loadkeys=/bin/loadkeys \ --with-kbd-setfont=/bin/setfont \ --enable-split-usr \ - --disable-static \ --disable-gudev \ --without-python + + The meaning of the configure option: + + + --with-root* + + These switches ensure that core programs and + shared libraries are installed in the subdirectories + of the root partition. + + + + + --with-kbd-* + + These switches tell Systemd where to find + Kbd programs. + + + + + --enable-split-usr + + This switch ensures that Systemd will work on + systems where /bin, /lib and /sbin directories are not + symlinks to their /usr counterparts. + + + + + --disable-gudev --without-python + + These switches disable optional features because + LFS does not provide their dependencies. + + + + + + Compile the package: make - To test the results, issue: - -make check + The package comes with a testsuite, but it doesn't work in + chroot. It needs to be run from a system booted using Systemd. Install the package: make install + Create the /etc/machine-id file needed by + Journald: + +systemd-machine-id-setup + + Create the Sysvinit compatibility symlinks, so Systemd is used + as the default init system: + +for tool in runlevel reboot shutdown poweroff halt telinit; do + ln -sfv ../bin/systemctl /sbin/$tool +done +ln -sfv ../lib/systemd/systemd /sbin/init + + By default, Journald logs to a tmpfs which means that logs + are not persistent through reboots. To make it log to a disk, + create the + /var/log/journal directory: + +mkdir -pv /var/log/journal + + Remove reference to a non-existent group: + +sed -i "s@0775 root lock@0755 root root@g" /usr/lib/tmpfiles.d/legacy.conf + - - Contents of Udev + + Contents of Systemd Installed programs + Installed libraries + Installed directories - hostnamectl, journalctl, localectl, loginctl, systemctl, - systemd-analyze, systemd-ask-password, systemd-cat, - systemd-cgls, systemd-cgtop, systemd-coredumpctl, - systemctl-delta, systemd-detect-virt, systemd-inhibit, - systemd-machine-id-setup, systemd-notify, systemd-nspawn, - systemd-stdio-bridge, systemd-tmpfiles, - systemd-tty-ask-password-agent, timedatectl, udevadm - + halt, hostnamectl, init, journalctl, localectl, loginctl, + poweroff, reboot, runlevel, shutdown, systemctl, systemd-analyze, + systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop, + systemd-coredumpctl, systemd-delta, systemd-detect-virt, + systemd-inhibit, systemd-machine-id-setup, systemd-notify, + systemd-nspawn, systemd-stdio-bridge, systemd-tmpfiles, + systemd-tty-ask-password-agent, telinit, timedatectl and + udevadm + libnss_myhostname.so.2, libsystemd-daemon.so, libsystemd-id128.so, + libsystemd-journal.so, libsystemd-login.so and libudev.so + /etc/binfmt.d, /etc/init.d, /etc/modules-load.d, /etc/rpm, + /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev, + /etc/xdg/systemd, /lib/systemd, /lib/udev, /usr/include/systemd, + /usr/lib/binfmt.d, /usr/lib/modules-load.d, /usr/lib/sysctl.d, + /usr/lib/systemd, /usr/lib/tmpfiles.d, /usr/share/doc/systemd-&systemd-version;, + /usr/share/systemd, /var/lib/systemd and /var/log/journald @@ -92,20 +165,47 @@ + + halt + + Normally invokes shutdown with the + -h option, except when already in run-level 0, + then it tells the kernel to halt the system; it notes in the + file /var/log/wtmp that the system is being + brought down. + + halt + + + + hostnamectl - To be completed + used to query and change the system hostname and related + settings. hostnamectl + + init + + The first process to be started when the kernel has initialized + the hardware which takes over the boot process and starts all the + proceses it is instructed to. + + init + + + + journalctl - To be completed + used to query the contents of the Systemd Journal. journalctl @@ -115,7 +215,8 @@ localectl - To be completed + used to query and change the system locale and keyboard layout + settings. localectl @@ -125,17 +226,63 @@ loginctl - To be completed + used to introspect and control the state of the Systemd Login + Manager. loginctl + + poweroff + + Tells the kernel to halt the system and switch off the computer + (see halt). + + poweroff + + + + + + reboot + + Tells the kernel to reboot the system (see + halt). + + reboot + + + + + + runlevel + + Reports the previous and the current run-level, as noted in the + last run-level record in /var/run/utmp. + + runlevel + + + + + + shutdown + + Brings the system down in a secure way, signaling all processes + and notifying all logged-in users. + + shutdown + + + + systemctl - To be completed + used to introspect and control the state of the Systemd system and + service manager. systemctl @@ -145,7 +292,8 @@ systemd-analyze - To be completed + used to determine system boot-up performance of the current boot. + systemd-analyze @@ -155,7 +303,8 @@ systemd-ask-password - To be completed + used to query a system password or passphrase from the user, using a + question message specified on the command line. systemd-ask-password @@ -165,7 +314,8 @@ systemd-cat - To be completed + used to connect STDOUT and STDERR of a process with the Journal. + systemd-cat @@ -175,7 +325,8 @@ systemd-cgls - To be completed + recursively shows the contents of the selected Linux control group + hierarchy in a tree. systemd-cgls @@ -185,7 +336,8 @@ systemd-cgtop - To be completed + shows the top control groups of the local Linux control group hierarchy, + ordered by their CPU, memory and disk I/O load. systemd-cgtop @@ -195,7 +347,7 @@ systemd-coredumpctl - To be completed + used to retrieve coredumps from the Systemd Journal systemd-coredumpctl @@ -205,7 +357,9 @@ systemd-delta - To be completed + used to identify and compare configuration files in + /etc that override default + counterparts in /usr. systemd-delta @@ -215,7 +369,7 @@ systemd-detect-virt - To be completed + detects execution in a virtualized environment. systemd-detect-virt @@ -225,7 +379,8 @@ systemd-inhibit - To be completed + used to execute a program with a shutdown, sleep or idle inhibitor lock + taken. systemd-inhibit @@ -235,7 +390,9 @@ systemd-machine-id-setup - To be completed + used by system installer tools to initialize the machine ID stored in + /etc/machine-id at install time with a randomly + generated ID. systemd-machine-id-setup @@ -245,7 +402,8 @@ systemd-notify - To be completed + used by daemon scripts to notify the init system about status changes. + systemd-notify @@ -255,14 +413,14 @@ systemd-nspawn - To be completed + used to run a command or OS in a light-weight namespace container. systemd-nspawn - + systemd-tmpfiles - To be completed + creates, deletes and cleans up volatile and temporary files and directories, + based on the configuration file format and location specified in + tmpfiles.d directories. systemd-tmpfiles @@ -285,17 +445,28 @@ systemd-tty-ask-password-agent - To be completed + used to list or process pending Systemd password requests systemd-tty-ask-password-agent + + telinit + + Tells init which run-level to change to. + + telinit + + + + timedatectl - To be completed + used to query and change the system clock and its settings. + timedatectl @@ -305,13 +476,66 @@ udevadm - To be completed + Generic Udev administration tool: controls the udevd daemon, + provides info from the Udev database, monitors uevents, waits for + uevents to finish, tests Udev configuration, and triggers uevents + for a given device. udevadm + + libsystemd-daemon + + Systemd Daemon utility library. + + libsystemd-daemon + + + + + + libsystemd-id128 + + Systemd 128 Bit ID utility library. + + libsystemd-id128 + + + + + + libsystemd-journal + + Systemd Journal utility library. + + libsystemd-journal + + + + + + libsystemd-login + + Systemd Login utility library. + + libsystemd-login + + + + + + libudev + + A library to access Udev device information. + + libudev + + + +