From 33d5aa37b490f394ed00be60f50840f8a747e397 Mon Sep 17 00:00:00 2001 From: DJ Lucas Date: Fri, 20 May 2016 00:26:32 +0000 Subject: Added additional explanatory text explaing use of systemctl and journalctl commands. git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd@11072 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 10 +++++++ chapter07/network.xml | 11 ++++++-- chapter07/systemd-custom.xml | 66 ++++++++++++++++++++++++++++++++++---------- general.ent | 4 +-- 4 files changed, 71 insertions(+), 20 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 0496b3241..0d0f9cf84 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -35,6 +35,16 @@ --> + + 2016-05-20 + + + [dj] - Add additional explanatory text for sytemctl and + journalctl commands. + + + + 2016-05-19 diff --git a/chapter07/network.xml b/chapter07/network.xml index c1041bca6..86dcb3e53 100644 --- a/chapter07/network.xml +++ b/chapter07/network.xml @@ -63,11 +63,13 @@ Name=eth0 [Network] Address=192.168.0.2/24 Gateway=192.168.0.1 -DNS=192.168.0.1 +DNS=192.168.0.1 +Domains=<Your Domain Name> EOF Multiple DNS entries can be added if you have more than one DNS - server. + server. Do not include DNS or Domains entries if you intend to use a + static /etc/reslov.conf file. @@ -82,7 +84,10 @@ EOF Name=eth0 [Network] -DHCP=ipv4 +DHCP=ipv4 + +[DHCP] +UseDomains=true EOF diff --git a/chapter07/systemd-custom.xml b/chapter07/systemd-custom.xml index 31326b32d..0c8ca75b9 100644 --- a/chapter07/systemd-custom.xml +++ b/chapter07/systemd-custom.xml @@ -108,32 +108,68 @@ EOF Debugging the Boot Sequence - There are several commands that can be used to help debug the systemd - boot process. Here are some examples: + Rather than plain shell scripts used in SysVinit or BSD style init + systems, systemd uses a unified format for different type of startup + files (or units). The command systemctl is used to + enable, disable, controll state, and obtain status of unit files. Here + are some examples of frequently used commands: - systemctl list-units -t service [--all] - systemctl list-units -t target [--all] - systemctl show -p Wants multi-user.target - systemctl status sshd.service + + systemctl list-units -t <service> [--all]: + lists loaded unit files of type service. + + + systemctl list-units -t <target> [--all]: + lists loaded unit files of type target. + + + systemctl show -p Wants <multi-user.target>: + shows all units that depend on the multi-user target. Targets are + special unit files that are anogalous to runlevels under + SysVinit. + + + systemctl status <servicename.service>: + shows the status of the servicename service. The .service extension + can be omitted if there are no other unit files with the same name, + such as .socket files (which create a listening socket that provides + similar functionality to inetd/xinetd). + - diff --git a/general.ent b/general.ent index ab8bc961e..31d290ef3 100644 --- a/general.ent +++ b/general.ent @@ -1,6 +1,6 @@ - + - + -- cgit v1.2.3-54-g00ecf