2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Sysvinit</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>When run levels are changed (for example when going to shutdown
|
2001-03-19 16:02:50 +00:00
|
|
|
the system) the init program is going to send the TERM and KILL signals
|
2001-01-24 00:31:17 +00:00
|
|
|
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
|
2001-03-19 16:02:50 +00:00
|
|
|
running processes, which isn't the case. To avoid this confusion a user can
|
2001-01-24 00:31:17 +00:00
|
|
|
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
|
2001-07-22 20:45:10 +01:00
|
|
|
processes started by init the TERM signal".</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Apply the patch by running the following command:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-08-01 01:09:22 +01:00
|
|
|
<para><screen><userinput>patch -Np1 -i ../sysvinit-&sysvinit-version;.patch</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Install Sysvinit by running the following commands:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><screen><userinput>make -C src &&</userinput>
|
|
|
|
<userinput>make -C src install</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|