source: chapter07/bootscripts.xml@ f19e766

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since f19e766 was b06ca36, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Updated book sources to use DocBook-XML DTD 4.5

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7970 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 11.7 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
8<sect1 id="ch-scripts-bootscripts" role="wrap">
9 <?dbhtml filename="bootscripts.html"?>
10
11 <title>LFS-Bootscripts-&lfs-bootscripts-version;</title>
12
13 <indexterm zone="ch-scripts-bootscripts">
14 <primary sortas="a-Bootscripts">Bootscripts</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The LFS-Bootscripts package contains a set of scripts to start/stop the
21 LFS system at bootup/shutdown.</para>
22
23 <segmentedlist>
24 <segtitle>&buildtime;</segtitle>
25 <segtitle>&diskspace;</segtitle>
26
27 <seglistitem>
28 <seg>&lfs-bootscripts-ch7-sbu;</seg>
29 <seg>&lfs-bootscripts-ch7-du;</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 </sect2>
34
35 <sect2 role="installation">
36 <title>Installation of LFS-Bootscripts</title>
37
38 <para>Install the package:</para>
39
40<screen><userinput>make install</userinput></screen>
41
42 </sect2>
43
44 <sect2 id="contents-bootscripts" role="content">
45 <title>Contents of LFS-Bootscripts</title>
46
47 <segmentedlist>
48 <segtitle>Installed scripts</segtitle>
49
50 <seglistitem>
51 <seg>checkfs, cleanfs, console, functions, halt, ifdown, ifup,
52 localnet, modules, mountfs, mountkernfs, network, rc, reboot,
53 sendsignals, setclock, static, swap, sysctl, sysklogd, template,
54 udev, and udev_retry</seg>
55 </seglistitem>
56 </segmentedlist>
57
58 <variablelist>
59 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
60 <?dbfo list-presentation="list"?>
61 <?dbhtml list-presentation="table"?>
62
63 <varlistentry id="checkfs-bootscripts">
64 <term><command>checkfs</command></term>
65 <listitem>
66 <para>Checks the integrity of the file systems before they are mounted
67 (with the exception of journal and network based file systems)</para>
68 <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts">
69 <primary sortas="d-checkfs">checkfs</primary>
70 </indexterm>
71 </listitem>
72 </varlistentry>
73
74 <varlistentry id="cleanfs-bootscripts">
75 <term><command>cleanfs</command></term>
76 <listitem>
77 <para>Removes files that should not be preserved between reboots, such
78 as those in <filename class="directory">/var/run/</filename> and
79 <filename class="directory">/var/lock/</filename>; it re-creates
80 <filename>/var/run/utmp</filename> and removes the possibly present
81 <filename>/etc/nologin</filename>, <filename>/fastboot</filename>, and
82 <filename>/forcefsck</filename> files</para>
83 <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts">
84 <primary sortas="d-cleanfs">cleanfs</primary>
85 </indexterm>
86 </listitem>
87 </varlistentry>
88
89 <varlistentry id="console-bootscripts">
90 <term><command>console</command></term>
91 <listitem>
92 <para>Loads the correct keymap table for the desired keyboard layout;
93 it also sets the screen font</para>
94 <indexterm zone="ch-scripts-bootscripts console-bootscripts">
95 <primary sortas="d-console">console</primary>
96 </indexterm>
97 </listitem>
98 </varlistentry>
99
100 <varlistentry id="functions-bootscripts">
101 <term><command>functions</command></term>
102 <listitem>
103 <para>Contains common functions, such as error and status checking,
104 that are used by several bootscripts</para>
105 <indexterm zone="ch-scripts-bootscripts functions-bootscripts">
106 <primary sortas="d-functions">functions</primary>
107 </indexterm>
108 </listitem>
109 </varlistentry>
110
111 <varlistentry id="halt-bootscripts">
112 <term><command>halt</command></term>
113 <listitem>
114 <para>Halts the system</para>
115 <indexterm zone="ch-scripts-bootscripts halt-bootscripts">
116 <primary sortas="d-halt">halt</primary>
117 </indexterm>
118 </listitem>
119 </varlistentry>
120
121 <varlistentry id="ifdown-bootscripts">
122 <term><command>ifdown</command></term>
123 <listitem>
124 <para>Assists the network script with stopping network devices</para>
125 <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
126 <primary sortas="d-ifdown">ifdown</primary>
127 </indexterm>
128 </listitem>
129 </varlistentry>
130
131 <varlistentry id="ifup-bootscripts">
132 <term><command>ifup</command></term>
133 <listitem>
134 <para>Assists the network script with starting network devices</para>
135 <indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
136 <primary sortas="d-ifup">ifup</primary>
137 </indexterm>
138 </listitem>
139 </varlistentry>
140
141 <varlistentry id="localnet-bootscripts">
142 <term><command>localnet</command></term>
143 <listitem>
144 <para>Sets up the system's hostname and local loopback device</para>
145 <indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
146 <primary sortas="d-localnet">localnet</primary>
147 </indexterm>
148 </listitem>
149 </varlistentry>
150
151 <varlistentry id="modules-bootscripts">
152 <term><command>modules</command></term>
153 <listitem>
154 <para>Loads kernel modules listed in
155 <filename>/etc/sysconfig/modules</filename>, using arguments
156 that are also given there</para>
157 <indexterm zone="ch-scripts-bootscripts modules-bootscripts">
158 <primary sortas="d-modules">modules</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="mountfs-bootscripts">
164 <term><command>mountfs</command></term>
165 <listitem>
166 <para>Mounts all file systems, except ones that are marked
167 <emphasis>noauto</emphasis> or are network based</para>
168 <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
169 <primary sortas="d-mountfs">mountfs</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
174 <varlistentry id="mountkernfs-bootscripts">
175 <term><command>mountkernfs</command></term>
176 <listitem>
177 <para>Mounts virtual kernel file systems, such as <systemitem
178 class="filesystem">proc</systemitem></para>
179 <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts">
180 <primary sortas="d-mountkernfs">mountkernfs</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184
185 <varlistentry id="network-bootscripts">
186 <term><command>network</command></term>
187 <listitem>
188 <para>Sets up network interfaces, such as network cards, and sets up
189 the default gateway (where applicable)</para>
190 <indexterm zone="ch-scripts-bootscripts network-bootscripts">
191 <primary sortas="d-network">network</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="rc-bootscripts">
197 <term><command>rc</command></term>
198 <listitem>
199 <para>The master run-level control script; it is responsible for
200 running all the other bootscripts one-by-one, in a sequence determined
201 by the name of the symbolic links being processed</para>
202 <indexterm zone="ch-scripts-bootscripts rc-bootscripts">
203 <primary sortas="d-rc">rc</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="reboot-bootscripts">
209 <term><command>reboot</command></term>
210 <listitem>
211 <para>Reboots the system</para>
212 <indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
213 <primary sortas="d-reboot">reboot</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <varlistentry id="sendsignals-bootscripts">
219 <term><command>sendsignals</command></term>
220 <listitem>
221 <para>Makes sure every process is terminated before the system reboots
222 or halts</para>
223 <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
224 <primary sortas="d-sendsignals">sendsignals</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="setclock-bootscripts">
230 <term><command>setclock</command></term>
231 <listitem>
232 <para>Resets the kernel clock to local time in case the hardware clock
233 is not set to UTC time</para>
234 <indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
235 <primary sortas="d-setclock">setclock</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="static-bootscripts">
241 <term><command>static</command></term>
242 <listitem>
243 <para>Provides the functionality needed to assign a static Internet
244 Protocol (IP) address to a network interface</para>
245 <indexterm zone="ch-scripts-bootscripts static-bootscripts">
246 <primary sortas="d-static">static</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="swap-bootscripts">
252 <term><command>swap</command></term>
253 <listitem>
254 <para>Enables and disables swap files and partitions</para>
255 <indexterm zone="ch-scripts-bootscripts swap-bootscripts">
256 <primary sortas="d-swap">swap</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="sysctl-bootscripts">
262 <term><command>sysctl</command></term>
263 <listitem>
264 <para>Loads system configuration values from
265 <filename>/etc/sysctl.conf</filename>, if that file exists,
266 into the running kernel</para>
267 <indexterm zone="ch-scripts-bootscripts sysctl-bootscripts">
268 <primary sortas="d-sysctl">sysctl</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry id="sysklogd-bootscripts">
274 <term><command>sysklogd</command></term>
275 <listitem>
276 <para>Starts and stops the system and kernel log daemons</para>
277 <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
278 <primary sortas="d-sysklogd">sysklogd</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282
283 <varlistentry id="template-bootscripts">
284 <term><command>template</command></term>
285 <listitem>
286 <para>A template to create custom bootscripts for other
287 daemons</para>
288 <indexterm zone="ch-scripts-bootscripts template-bootscripts">
289 <primary sortas="d-template">template</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="udev-bootscripts">
295 <term><command>udev</command></term>
296 <listitem>
297 <para>Prepares the <filename class="directory">/dev</filename>
298 directory and starts Udev</para>
299 <indexterm zone="ch-scripts-bootscripts udev-bootscripts">
300 <primary sortas="d-udev">udev</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 <varlistentry id="udev-retry-bootscripts">
306 <term><command>udev_retry</command></term>
307 <listitem>
308 <para>Retries failed udev uevents, and copies generated rules
309 files from <filename class="directory">/dev/.udev</filename> to
310 <filename class="directory">/etc/udev/rules.d</filename> if required</para>
311 <indexterm zone="ch-scripts-bootscripts udev-retry-bootscripts">
312 <primary sortas="d-udev-retry">udev_retry</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 </variablelist>
318
319 </sect2>
320
321</sect1>
Note: See TracBrowser for help on using the repository browser.