source: chapter06/sysvinit.xml@ eb797aa

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.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 eb797aa was eb797aa, checked in by Bruce Dubbs <bdubbs@…>, 13 years ago

Supress sysvinit overwriting mountpoint from util-linux

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

  • Property mode set to 100644
File size: 9.9 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-system-sysvinit" role="wrap">
9 <?dbhtml filename="sysvinit.html"?>
10
11 <sect1info condition="script">
12 <productname>sysvinit</productname>
13 <productnumber>&sysvinit-version;</productnumber>
14 <address>&sysvinit-url;</address>
15 </sect1info>
16
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>
34 <seg>&sysvinit-ch6-sbu;</seg>
35 <seg>&sysvinit-ch6-du;</seg>
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
52 <quote>Sending processes configured via /etc/inittab the TERM signal</quote>
53 instead:</para>
54
55<screen><userinput remap="pre">sed -i 's@Sending processes@&amp; configured via /etc/inittab@g' \
56 src/init.c</userinput></screen>
57
58 <para>Maintained versions of the <command>wall</command> and
59 <command>mountpoint</command> programs were
60 installed earlier by Util-linux. Suppress the installation of Sysvinit's
61 versions of these programs and their man pages:</para>
62
63<screen><userinput remap="make">sed -i -e 's/utmpdump wall/utmpdump/' \
64 -e '/= mountpoint/d' \
65 -e 's/mountpoint.1 wall.1//' src/Makefile</userinput></screen>
66
67 <para>Compile the package:</para>
68
69<screen><userinput remap="make">make -C src</userinput></screen>
70
71 <para>This package does not come with a test suite.</para>
72
73 <para>Install the package:</para>
74
75<screen><userinput remap="install">make -C src install</userinput></screen>
76
77 </sect2>
78
79 <sect2 id="contents-sysvinit" role="content">
80 <title>Contents of Sysvinit</title>
81
82 <segmentedlist>
83 <segtitle>Installed programs</segtitle>
84
85 <seglistitem>
86 <seg>bootlogd, fstab-decode, halt, init, killall5, last,
87 lastb (link to last), mesg, mountpoint, pidof (link to killall5),
88 poweroff (link to halt),
89 reboot (link to halt), runlevel, shutdown, sulogin,
90 telinit (link to init), and utmpdump</seg>
91 </seglistitem>
92 </segmentedlist>
93
94 <variablelist>
95 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
96 <?dbfo list-presentation="list"?>
97 <?dbhtml list-presentation="table"?>
98
99 <varlistentry id="bootlogd">
100 <term><command>bootlogd</command></term>
101 <listitem>
102 <para>Logs boot messages to a log file</para>
103 <indexterm zone="ch-system-sysvinit bootlogd">
104 <primary sortas="b-bootlogd">bootlogd</primary>
105 </indexterm>
106 </listitem>
107 </varlistentry>
108
109 <varlistentry id="fstab-decode">
110 <term><command>fstab-decode</command></term>
111 <listitem>
112 <para>Run a command with fstab-encoded arguments</para>
113 <indexterm zone="ch-system-sysvinit fstab-decode">
114 <primary sortas="b-fstab-decode">fstab-decode</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry id="halt">
120 <term><command>halt</command></term>
121 <listitem>
122 <para>Normally invokes <command>shutdown</command> with the
123 <parameter>-h</parameter> option, except when already in run-level 0,
124 then it tells the kernel to halt the system; it notes in the
125 file <filename>/var/log/wtmp</filename> that the system is being
126 brought down</para>
127 <indexterm zone="ch-system-sysvinit halt">
128 <primary sortas="b-halt">halt</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="init">
134 <term><command>init</command></term>
135 <listitem>
136 <para>The first process to be started when the kernel has initialized
137 the hardware which takes over the boot process and starts all the
138 proceses it is instructed to</para>
139 <indexterm zone="ch-system-sysvinit init">
140 <primary sortas="b-init">init</primary>
141 </indexterm>
142 </listitem>
143 </varlistentry>
144
145 <varlistentry id="killall5">
146 <term><command>killall5</command></term>
147 <listitem>
148 <para>Sends a signal to all processes, except the processes in its own
149 session so it will not kill the shell running the script that called
150 it</para>
151 <indexterm zone="ch-system-sysvinit killall5">
152 <primary sortas="b-killall5">killall5</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 <varlistentry id="last">
158 <term><command>last</command></term>
159 <listitem>
160 <para>Shows which users last logged in (and out), searching back
161 through the <filename>/var/log/wtmp</filename> file; it also shows
162 system boots, shutdowns, and run-level changes</para>
163 <indexterm zone="ch-system-sysvinit last">
164 <primary sortas="b-last">last</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
168
169 <varlistentry id="lastb">
170 <term><command>lastb</command></term>
171 <listitem>
172 <para>Shows the failed login attempts, as logged in
173 <filename>/var/log/btmp</filename></para>
174 <indexterm zone="ch-system-sysvinit lastb">
175 <primary sortas="b-lastb">lastb</primary>
176 </indexterm>
177 </listitem>
178 </varlistentry>
179
180 <varlistentry id="mesg">
181 <term><command>mesg</command></term>
182 <listitem>
183 <para>Controls whether other users can send messages to the current
184 user's terminal</para>
185 <indexterm zone="ch-system-sysvinit mesg">
186 <primary sortas="b-mesg">mesg</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="pidof">
192 <term><command>pidof</command></term>
193 <listitem>
194 <para>Reports the PIDs of the given programs</para>
195 <indexterm zone="ch-system-sysvinit pidof">
196 <primary sortas="b-pidof">pidof</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 <varlistentry id="poweroff">
202 <term><command>poweroff</command></term>
203 <listitem>
204 <para>Tells the kernel to halt the system and switch off the computer
205 (see <command>halt</command>)</para>
206 <indexterm zone="ch-system-sysvinit poweroff">
207 <primary sortas="b-poweroff">poweroff</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 <varlistentry id="reboot">
213 <term><command>reboot</command></term>
214 <listitem>
215 <para>Tells the kernel to reboot the system (see
216 <command>halt</command>)</para>
217 <indexterm zone="ch-system-sysvinit reboot">
218 <primary sortas="b-reboot">reboot</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222
223 <varlistentry id="runlevel">
224 <term><command>runlevel</command></term>
225 <listitem>
226 <para>Reports the previous and the current run-level, as noted in the
227 last run-level record in <filename>/var/run/utmp</filename></para>
228 <indexterm zone="ch-system-sysvinit runlevel">
229 <primary sortas="b-runlevel">runlevel</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 <varlistentry id="shutdown">
235 <term><command>shutdown</command></term>
236 <listitem>
237 <para>Brings the system down in a secure way, signaling all processes
238 and notifying all logged-in users</para>
239 <indexterm zone="ch-system-sysvinit shutdown">
240 <primary sortas="b-shutdown">shutdown</primary>
241 </indexterm>
242 </listitem>
243 </varlistentry>
244
245 <varlistentry id="sulogin">
246 <term><command>sulogin</command></term>
247 <listitem>
248 <para>Allows <systemitem class="username">root</systemitem> to log in;
249 it is normally invoked by <command>init</command> when the system goes
250 into single user mode</para>
251 <indexterm zone="ch-system-sysvinit sulogin">
252 <primary sortas="b-sulogin">sulogin</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="telinit">
258 <term><command>telinit</command></term>
259 <listitem>
260 <para>Tells <command>init</command> which run-level to change to</para>
261 <indexterm zone="ch-system-sysvinit telinit">
262 <primary sortas="b-telinit">telinit</primary>
263 </indexterm>
264 </listitem>
265 </varlistentry>
266
267 <varlistentry id="utmpdump">
268 <term><command>utmpdump</command></term>
269 <listitem>
270 <para>Displays the content of the given login file in a more
271 user-friendly format</para>
272 <indexterm zone="ch-system-sysvinit utmpdump">
273 <primary sortas="b-utmpdump">utmpdump</primary>
274 </indexterm>
275 </listitem>
276 </varlistentry>
277
278 </variablelist>
279
280 </sect2>
281
282</sect1>
Note: See TracBrowser for help on using the repository browser.