aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/sysvinit-inst.xml
blob: c8c581e956ea8b0c70ebcf073f6d8d1b2796c719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<sect2>
<title>Installation of Sysvinit</title>

<para>
When you change run levels (for example when you are going to shutdown
your system) the init program is going to send the TERM and KILL signals
to all the processes that init started. But init prints a message to the 
screen saying "sending all processes the TERM signal" and the same for the 
KILL signal. This implies that init sends this signal to all the currently 
running processes, which isn't the case. To avoid this confusion you can 
apply the sysvinit patch found on the LFS FTP site to sysvinit that changes 
the sentence in the shutdown.c file and have it print "sending all 
processes started by init the TERM signal".
</para>

<para>
Apply the patch by running the following command:
</para>

<blockquote><literallayout>
	<userinput>patch -Np1 -i ../sysvinit-2.78.patch</userinput>
</literallayout></blockquote>

<para>
Install Sysvinit by running the following commands:
</para>

<blockquote><literallayout>

	<userinput>cd src &amp;&amp;</userinput>
	<userinput>make &amp;&amp;</userinput>
	<userinput>make install</userinput>

</literallayout></blockquote>

</sect2>