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

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since cfb2026a was d89bf75, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Added systemd and started to changed the appropriate
configuration pages.

  • Property mode set to 100644
File size: 7.5 KB
RevLine 
[d89bf75]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="s1">By default, <command>systemd</command> contains a unit file
28 that mounts a tmpfs over /var/lock on boot as 775 with a gid of lock. CLFS
29 does not have a lock group. Change this to 777 with the following
30 command:</para>
31
32<screen os="s2"><userinput>sed -i "s/\(mode\)=775,gid=lock/\1=777/" \
33 units/var-lock.mount</userinput></screen>
34
35 <para os="a">Prepare systemd for compilation:</para>
36
37<screen os="b"><userinput>./configure --prefix=/usr \
38 --sysconfdir=/etc --localstatedir=/var \
39 --with-rootdir= --with-distro=other \
40 --with-syslog-service=rsyslog.service \
41 --with-sysvinit-path=/etc/init.d \
42 --with-sysvrcd-path=/etc/rc.d</userinput></screen>
43
44 <para os="c">Compile the package:</para>
45
46<screen os="d"><userinput>make</userinput></screen>
47
48 <para os="e">Install the package:</para>
49
50<screen os="f"><userinput>make install</userinput></screen>
51
52 </sect2>
53
54 <sect2 id="conf-systemd" role="configuration">
55 <title>Configuring systemd</title>
56
57 <indexterm zone="conf-systemd">
58 <primary sortas="a-systemd">systemd</primary>
59 <secondary>configuring</secondary></indexterm>
60
61 <indexterm zone="conf-systemd">
62 <primary sortas="e-/etc/os-release">/etc/os-release</primary>
63 </indexterm>
64
65 <para>Create a file to identify the operating system.
66 <command>systemd</command> will use this file on boot to put information
67 on the screen.</para>
68
69<screen><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
70# Begin /etc/os-release
71
72NAME=Cross-LFS
73ID=clfs
74
75PRETTY_NAME=Cross Linux From Scratch
76ANSI_COLOR=0;33
77
78VERSION=&version;
79VERSION_ID=&versionid;
80
81# End /etc/os-release
82EOF</userinput></screen>
83
84 </sect2>
85
86 <sect2 id="contents-systemd" role="content">
87 <title>Contents of systemd</title>
88
89 <segmentedlist>
90 <segtitle>Installed programs</segtitle>
91 <segtitle>Installed libraries</segtitle>
92 <segtitle>Installed directories</segtitle>
93
94 <seglistitem>
95 <seg>systemctl, systemd, systemd-ask-password, systemd-cgls,
96 systemd-notify, systemd-tty-ask-password-agent</seg>
97 <seg>pam_systemd</seg>
98 <seg>/lib/systemd, /etc/systemd, /etc/tmpfiles.d,
99 /usr/share/systemd</seg>
100 </seglistitem>
101 </segmentedlist>
102
103 <variablelist>
104 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
105 <?dbfo list-presentation="list"?>
106 <?dbhtml list-presentation="table"?>
107
108 <varlistentry id="systemctl">
109 <term><command>systemctl</command></term>
110 <listitem>
111 <para>Control the systemd system and service manager</para>
112 <indexterm zone="ch-system-systemd systemctl">
113 <primary sortas="b-systemctl">systemctl</primary>
114 </indexterm>
115 </listitem>
116 </varlistentry>
117
118 <varlistentry id="systemd">
119 <term><command>systemd</command></term>
120 <listitem>
121 <para>System and service manager for Linux</para>
122 <indexterm zone="ch-system-systemd systemd">
123 <primary sortas="b-systemd">systemd</primary>
124 </indexterm>
125 </listitem>
126 </varlistentry>
127
128 <varlistentry id="systemd-ask-password">
129 <term><command>systemd-ask-password</command></term>
130 <listitem>
131 <para>Queries the user for a system passphrase, via the
132 TTY or an UI agent.</para>
133 <indexterm zone="ch-system-systemd systemd-ask-password">
134 <primary sortas="b-systemd-ask-password">systemd-ask-password</primary>
135 </indexterm>
136 </listitem>
137 </varlistentry>
138
139 <varlistentry id="systemd-cgls">
140 <term><command>systemd-cgls</command></term>
141 <listitem>
142 <para>Recursively shows control group contents</para>
143 <indexterm zone="ch-system-systemd systemd-cgls">
144 <primary sortas="b-systemd-cgls">systemd-cgls</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="systemd-notify">
150 <term><command>systemd-notify</command></term>
151 <listitem>
152 <para>Notify init system about start-up completion and other daemon
153 status changes</para>
154 <indexterm zone="ch-system-systemd systemd-notify">
155 <primary sortas="b-systemd-notify">systemd-notify</primary>
156 </indexterm>
157 </listitem>
158 </varlistentry>
159
160 <varlistentry id="systemd-tty-ask-password-agent">
161 <term><command>systemd-tty-ask-password-agent</command></term>
162 <listitem>
163 <para>Process system password requests</para>
164 <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent">
165 <primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary>
166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 <varlistentry id="pam_systemd">
171 <term><filename class="libraryfile">pam_systemd</filename></term>
172 <listitem>
173 <para>Register user sessions in the systemd control group
174 hierarchy</para>
175 <indexterm zone="ch-system-systemd pam_systemd">
176 <primary sortas="c-pam_systemd">pam_systemd</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 <varlistentry id="lib-systemd">
182 <term><filename class="directory">/lib/systemd</filename></term>
183 <listitem>
184 <para>Location of system units and configurations</para>
185 <indexterm zone="ch-system-systemd lib-systemd">
186 <primary sortas="e-/lib/systemd">/lib/systemd</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="etc-systemd">
192 <term><filename class="directory">/etc/systemd</filename></term>
193 <listitem>
194 <para>Location of user units and configurations</para>
195 <indexterm zone="ch-system-systemd etc-systemd">
196 <primary sortas="e-/etc/systemd">/etc/systemd</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 <varlistentry id="etc-tmpfilesd">
202 <term><filename class="directory">/etc/tmpfiles.d</filename></term>
203 <listitem>
204 <para>Configuration for creation, deletion and cleaning of temporary
205 and volatile files</para>
206 <indexterm zone="ch-system-systemd etc-tmpfilesd">
207 <primary sortas="e-/etc/tmpfiles.d">/etc/tmpfiles.d</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 <varlistentry id="usr-share-systemd">
213 <term><filename class="directory">/usr/share/systemd</filename></term>
214 <listitem>
215 <para>Location of session unit files</para>
216 <indexterm zone="ch-system-systemd usr-share-systemd">
217 <primary sortas="e-/usr/share/systemd">/usr/share/systemd</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 </variablelist>
223
224 </sect2>
225
226</sect1>
Note: See TracBrowser for help on using the repository browser.