source: chapter06/sysvinit.xml@ 0ba6d53

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 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 0ba6d53 was 9f5aaf7, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Add whitespace for better readability of instructions

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

  • Property mode set to 100644
File size: 9.8 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[ddd5542]7
[81fd230]8<sect1 id="ch-system-sysvinit" role="wrap">
[ddd5542]9 <?dbhtml filename="sysvinit.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>sysvinit</productname>
13 <productnumber>&sysvinit-version;</productnumber>
14 <address>&sysvinit-url;</address>
15 </sect1info>
16
[ddd5542]17 <title>Sysvinit-&sysvinit-version;</title>
18
19 <indexterm zone="ch-system-sysvinit">
20 <primary sortas="a-Sysvinit">Sysvinit</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Sysvinit package contains programs for controlling the startup,
27 running, and shutdown of the system.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
[e4a5635]34 <seg>&sysvinit-ch6-sbu;</seg>
35 <seg>&sysvinit-ch6-du;</seg>
[ddd5542]36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Sysvinit</title>
43
44 <para>When run-levels are changed (for example, when halting the
45 system), <command>init</command> sends termination signals to those
46 processes that <command>init</command> itself started and that should
47 not be running in the new run-level. While doing this,
48 <command>init</command> outputs messages like <quote>Sending processes
49 the TERM signal</quote> which seem to imply that it is sending these
50 signals to all currently running processes. To avoid this
51 misinterpretation, modify the source so that these messages read like
[12a2975c]52 <quote>Sending processes configured via /etc/inittab the TERM signal</quote>
[ddd5542]53 instead:</para>
[73aedd1d]54
[9f5aaf7]55<screen><userinput remap="pre">sed -i 's@Sending processes@&amp; configured via /etc/inittab@g' src/init.c</userinput></screen>
[73aedd1d]56
[eb797aa]57 <para>Maintained versions of the <command>wall</command> and
58 <command>mountpoint</command> programs were
[e1428f3]59 installed earlier by Util-linux. Suppress the installation of Sysvinit's
[eb797aa]60 versions of these programs and their man pages:</para>
[e38671e]61
62<screen><userinput remap="make">sed -i -e 's/utmpdump wall/utmpdump/' \
[eb797aa]63 -e '/= mountpoint/d' \
64 -e 's/mountpoint.1 wall.1//' src/Makefile</userinput></screen>
[e38671e]65
[ddd5542]66 <para>Compile the package:</para>
[73aedd1d]67
[0445a3d]68<screen><userinput remap="make">make -C src</userinput></screen>
[73aedd1d]69
[ddd5542]70 <para>This package does not come with a test suite.</para>
[0be3d41]71
[ddd5542]72 <para>Install the package:</para>
[73aedd1d]73
[0445a3d]74<screen><userinput remap="install">make -C src install</userinput></screen>
[73aedd1d]75
[ddd5542]76 </sect2>
[5888299]77
[ddd5542]78 <sect2 id="contents-sysvinit" role="content">
79 <title>Contents of Sysvinit</title>
80
81 <segmentedlist>
82 <segtitle>Installed programs</segtitle>
83
84 <seglistitem>
[b188c43]85 <seg>bootlogd, fstab-decode, halt, init, killall5, last,
[3119ddc]86 lastb (link to last), mesg, pidof (link to killall5),
87 poweroff (link to halt), reboot (link to halt), runlevel, shutdown,
88 sulogin, telinit (link to init), and utmpdump</seg>
[ddd5542]89 </seglistitem>
90 </segmentedlist>
91
92 <variablelist>
93 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
94 <?dbfo list-presentation="list"?>
95 <?dbhtml list-presentation="table"?>
96
[8bc46a5]97 <varlistentry id="bootlogd">
98 <term><command>bootlogd</command></term>
99 <listitem>
100 <para>Logs boot messages to a log file</para>
101 <indexterm zone="ch-system-sysvinit bootlogd">
102 <primary sortas="b-bootlogd">bootlogd</primary>
103 </indexterm>
104 </listitem>
105 </varlistentry>
106
[b188c43]107 <varlistentry id="fstab-decode">
108 <term><command>fstab-decode</command></term>
109 <listitem>
110 <para>Run a command with fstab-encoded arguments</para>
111 <indexterm zone="ch-system-sysvinit fstab-decode">
112 <primary sortas="b-fstab-decode">fstab-decode</primary>
113 </indexterm>
114 </listitem>
115 </varlistentry>
116
[ddd5542]117 <varlistentry id="halt">
118 <term><command>halt</command></term>
119 <listitem>
120 <para>Normally invokes <command>shutdown</command> with the
121 <parameter>-h</parameter> option, except when already in run-level 0,
122 then it tells the kernel to halt the system; it notes in the
123 file <filename>/var/log/wtmp</filename> that the system is being
124 brought down</para>
125 <indexterm zone="ch-system-sysvinit halt">
126 <primary sortas="b-halt">halt</primary>
127 </indexterm>
128 </listitem>
129 </varlistentry>
130
131 <varlistentry id="init">
132 <term><command>init</command></term>
133 <listitem>
134 <para>The first process to be started when the kernel has initialized
135 the hardware which takes over the boot process and starts all the
136 proceses it is instructed to</para>
137 <indexterm zone="ch-system-sysvinit init">
138 <primary sortas="b-init">init</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="killall5">
144 <term><command>killall5</command></term>
145 <listitem>
146 <para>Sends a signal to all processes, except the processes in its own
147 session so it will not kill the shell running the script that called
148 it</para>
149 <indexterm zone="ch-system-sysvinit killall5">
150 <primary sortas="b-killall5">killall5</primary>
151 </indexterm>
152 </listitem>
153 </varlistentry>
154
155 <varlistentry id="last">
156 <term><command>last</command></term>
157 <listitem>
158 <para>Shows which users last logged in (and out), searching back
159 through the <filename>/var/log/wtmp</filename> file; it also shows
160 system boots, shutdowns, and run-level changes</para>
161 <indexterm zone="ch-system-sysvinit last">
162 <primary sortas="b-last">last</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 <varlistentry id="lastb">
168 <term><command>lastb</command></term>
169 <listitem>
170 <para>Shows the failed login attempts, as logged in
171 <filename>/var/log/btmp</filename></para>
172 <indexterm zone="ch-system-sysvinit lastb">
173 <primary sortas="b-lastb">lastb</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="mesg">
179 <term><command>mesg</command></term>
180 <listitem>
181 <para>Controls whether other users can send messages to the current
182 user's terminal</para>
183 <indexterm zone="ch-system-sysvinit mesg">
184 <primary sortas="b-mesg">mesg</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
189 <varlistentry id="pidof">
190 <term><command>pidof</command></term>
191 <listitem>
192 <para>Reports the PIDs of the given programs</para>
193 <indexterm zone="ch-system-sysvinit pidof">
194 <primary sortas="b-pidof">pidof</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="poweroff">
200 <term><command>poweroff</command></term>
201 <listitem>
202 <para>Tells the kernel to halt the system and switch off the computer
203 (see <command>halt</command>)</para>
204 <indexterm zone="ch-system-sysvinit poweroff">
205 <primary sortas="b-poweroff">poweroff</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 <varlistentry id="reboot">
211 <term><command>reboot</command></term>
212 <listitem>
213 <para>Tells the kernel to reboot the system (see
214 <command>halt</command>)</para>
215 <indexterm zone="ch-system-sysvinit reboot">
216 <primary sortas="b-reboot">reboot</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="runlevel">
222 <term><command>runlevel</command></term>
223 <listitem>
224 <para>Reports the previous and the current run-level, as noted in the
225 last run-level record in <filename>/var/run/utmp</filename></para>
226 <indexterm zone="ch-system-sysvinit runlevel">
227 <primary sortas="b-runlevel">runlevel</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="shutdown">
233 <term><command>shutdown</command></term>
234 <listitem>
235 <para>Brings the system down in a secure way, signaling all processes
236 and notifying all logged-in users</para>
237 <indexterm zone="ch-system-sysvinit shutdown">
238 <primary sortas="b-shutdown">shutdown</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="sulogin">
244 <term><command>sulogin</command></term>
245 <listitem>
246 <para>Allows <systemitem class="username">root</systemitem> to log in;
247 it is normally invoked by <command>init</command> when the system goes
248 into single user mode</para>
249 <indexterm zone="ch-system-sysvinit sulogin">
250 <primary sortas="b-sulogin">sulogin</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 <varlistentry id="telinit">
256 <term><command>telinit</command></term>
257 <listitem>
258 <para>Tells <command>init</command> which run-level to change to</para>
259 <indexterm zone="ch-system-sysvinit telinit">
260 <primary sortas="b-telinit">telinit</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="utmpdump">
266 <term><command>utmpdump</command></term>
267 <listitem>
268 <para>Displays the content of the given login file in a more
269 user-friendly format</para>
270 <indexterm zone="ch-system-sysvinit utmpdump">
271 <primary sortas="b-utmpdump">utmpdump</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 </variablelist>
277
278 </sect2>
[81fd230]279
[ddd5542]280</sect1>
Note: See TracBrowser for help on using the repository browser.