source: BOOK/final-system/common/systemd.xml@ 3493188a

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 3493188a was 3bff4bed, checked in by William Harrington <kb0iic@…>, 11 years ago

Add --with-kbd-loadkeys=/bin/loadkeys --with-kbd-setfont=/bin/setfont as our CLFS kbd build will install them to /bin. Systemd will default to /usr/bin.

  • Property mode set to 100644
File size: 8.1 KB
Line 
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<sect1 id="ch-system-systemd" role="wrap">
8 <?dbhtml filename="systemd.html"?>
9
10 <title>Systemd-&systemd-version;</title>
11
12 <indexterm zone="ch-system-systemd">
13 <primary sortas="a-systemd">Systemd</primary>
14 </indexterm>
15
16 <sect2 role="package">
17 <title/>
18
19 <para>The Systemd package is a system and service manager for Linux
20 operating systems.</para>
21
22 </sect2>
23
24 <sect2 role="installation">
25 <title>Installation of systemd</title>
26
27 <para os="a">Prepare Systemd for compilation:</para>
28
29<screen os="b"><userinput>./configure --prefix=/usr \
30 --sysconfdir=/etc --localstatedir=/var \
31 --libexecdir=/usr/lib --docdir=/usr/share/doc/systemd-&systemd-version; \
32 --with-rootprefix="" --with-rootlibdir=/lib \
33 --enable-split-usr --disable-gudev --with-kbd-loadkeys=/bin/loadkeys \
34 --with-kbd-setfont=/bin/setfont</userinput></screen>
35
36 <para os="c">Compile the package:</para>
37
38<screen os="d"><userinput>make</userinput></screen>
39
40 <para os="e">Install the package:</para>
41
42<screen os="f"><userinput>make install</userinput></screen>
43
44 <para os="g">Install man pages and documentation files that are not
45 installed by default:</para>
46
47<screen os="h"><userinput>for section in 1 3 5 7 8
48do
49 install -v -m644 man/*.${section} /usr/share/man/man${section}
50done
51install -v -m644 man/*.html /usr/share/doc/systemd-&systemd-version;</userinput></screen>
52
53 <para os="i">Create symlinks for backwards-compatibility with Sysvinit:</para>
54
55<screen os="j"><userinput>for tool in runlevel reboot shutdown poweroff halt telinit; do
56 ln -sfv ../bin/systemctl /sbin/$tool
57done
58ln -sfv ../lib/systemd/systemd /sbin/init</userinput></screen>
59
60 <para os="k">Modify a configuration file which references a group that
61 doesn't exist:</para>
62
63<screen os="l"><userinput>sed -i "s@root lock@root root@g" /usr/lib/tmpfiles.d/legacy.conf</userinput></screen>
64
65 </sect2>
66
67 <sect2 id="conf-systemd" role="configuration">
68 <title>Configuring Systemd</title>
69
70 <indexterm zone="conf-systemd">
71 <primary sortas="a-systemd">systemd</primary>
72 <secondary>configuring</secondary></indexterm>
73
74 <indexterm zone="conf-systemd">
75 <primary sortas="e-/etc/os-release">/etc/os-release</primary>
76 </indexterm>
77
78 <para>Create <filename>/etc/machine-id</filename> which is needed
79 by Journald:</para>
80
81<screen><userinput>systemd-machine-id-setup</userinput></screen>
82
83 <para>Create a file to identify the operating system.
84 <command>systemd</command> will use this file on boot to put information
85 on the screen.</para>
86
87<screen><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
88# Begin /etc/os-release
89
90NAME=Cross-LFS
91ID=clfs
92
93PRETTY_NAME=Cross Linux From Scratch
94ANSI_COLOR=0;33
95
96VERSION=&version;
97VERSION_ID=&versionid;
98
99# End /etc/os-release
100EOF</userinput></screen>
101
102 </sect2>
103
104 <sect2 id="contents-systemd" role="content">
105 <title>Contents of Systemd</title>
106
107 <segmentedlist>
108 <segtitle>Installed programs</segtitle>
109 <segtitle>Installed libraries</segtitle>
110 <segtitle>Installed directories</segtitle>
111
112 <seglistitem>
113 <seg>systemctl, systemd, systemd-ask-password, systemd-cgls,
114 systemd-notify, systemd-tty-ask-password-agent</seg>
115 <seg>pam_systemd</seg>
116 <seg>/lib/systemd, /etc/systemd, /etc/tmpfiles.d,
117 /usr/share/systemd</seg>
118 </seglistitem>
119 </segmentedlist>
120
121 <variablelist>
122 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
123 <?dbfo list-presentation="list"?>
124 <?dbhtml list-presentation="table"?>
125
126 <varlistentry id="systemctl">
127 <term><command>systemctl</command></term>
128 <listitem>
129 <para>Control the Systemd system and service manager</para>
130 <indexterm zone="ch-system-systemd systemctl">
131 <primary sortas="b-systemctl">systemctl</primary>
132 </indexterm>
133 </listitem>
134 </varlistentry>
135
136 <varlistentry id="systemd">
137 <term><command>systemd</command></term>
138 <listitem>
139 <para>System and service manager for Linux</para>
140 <indexterm zone="ch-system-systemd systemd">
141 <primary sortas="b-systemd">systemd</primary>
142 </indexterm>
143 </listitem>
144 </varlistentry>
145
146 <varlistentry id="systemd-ask-password">
147 <term><command>systemd-ask-password</command></term>
148 <listitem>
149 <para>Queries the user for a system passphrase, via the
150 TTY or an UI agent.</para>
151 <indexterm zone="ch-system-systemd systemd-ask-password">
152 <primary sortas="b-systemd-ask-password">systemd-ask-password</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 <varlistentry id="systemd-cgls">
158 <term><command>systemd-cgls</command></term>
159 <listitem>
160 <para>Recursively shows control group contents</para>
161 <indexterm zone="ch-system-systemd systemd-cgls">
162 <primary sortas="b-systemd-cgls">systemd-cgls</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 <varlistentry id="systemd-notify">
168 <term><command>systemd-notify</command></term>
169 <listitem>
170 <para>Notify init system about start-up completion and other daemon
171 status changes</para>
172 <indexterm zone="ch-system-systemd systemd-notify">
173 <primary sortas="b-systemd-notify">systemd-notify</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="systemd-tty-ask-password-agent">
179 <term><command>systemd-tty-ask-password-agent</command></term>
180 <listitem>
181 <para>Process system password requests</para>
182 <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent">
183 <primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="pam_systemd">
189 <term><filename class="libraryfile">pam_systemd</filename></term>
190 <listitem>
191 <para>Register user sessions in the Systemd control group
192 hierarchy</para>
193 <indexterm zone="ch-system-systemd pam_systemd">
194 <primary sortas="c-pam_systemd">pam_systemd</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="lib-systemd">
200 <term><filename class="directory">/lib/systemd</filename></term>
201 <listitem>
202 <para>Location of system units and configurations</para>
203 <indexterm zone="ch-system-systemd lib-systemd">
204 <primary sortas="e-/lib/systemd">/lib/systemd</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="etc-systemd">
210 <term><filename class="directory">/etc/systemd</filename></term>
211 <listitem>
212 <para>Location of user units and configurations</para>
213 <indexterm zone="ch-system-systemd etc-systemd">
214 <primary sortas="e-/etc/systemd">/etc/systemd</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="etc-tmpfilesd">
220 <term><filename class="directory">/etc/tmpfiles.d</filename></term>
221 <listitem>
222 <para>Configuration for creation, deletion and cleaning of temporary
223 and volatile files</para>
224 <indexterm zone="ch-system-systemd etc-tmpfilesd">
225 <primary sortas="e-/etc/tmpfiles.d">/etc/tmpfiles.d</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry id="usr-share-systemd">
231 <term><filename class="directory">/usr/share/systemd</filename></term>
232 <listitem>
233 <para>Location of session unit files</para>
234 <indexterm zone="ch-system-systemd usr-share-systemd">
235 <primary sortas="e-/usr/share/systemd">/usr/share/systemd</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 </variablelist>
241
242 </sect2>
243
244</sect1>
Note: See TracBrowser for help on using the repository browser.