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

clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since d150ded was d150ded, checked in by Chris Staub <chris@…>, 10 years ago

Updates systemd instructions

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