mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-20 14:07:39 +00:00
68f82496b0
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@970 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
24 lines
1.0 KiB
XML
24 lines
1.0 KiB
XML
<sect2>
|
|
<title>Installation of Sysvinit</title>
|
|
|
|
<para>When run levels are changed (for example when going to shutdown
|
|
the 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, we
|
|
change the init.c file so that the sentence reads "sending all
|
|
processes started by init the TERM signal".</para>
|
|
|
|
<para>Install Sysvinit by running the following commands:</para>
|
|
|
|
<para><screen><userinput>sed \</userinput>
|
|
<userinput> 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \</userinput>
|
|
<userinput> src/init.c > init.c.temp &&</userinput>
|
|
<userinput>mv init.c.temp src/init.c &&</userinput>
|
|
<userinput>make -C src &&</userinput>
|
|
<userinput>make -C src install</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|