source: chapter06/sysvinit.xml@ 4322222

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

Remove utmpdump from sysvinit because it is now installed
by util-linux.

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

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