mtab a real file now
[linux_from_scratch.git] / BOOK / chapter06 / sysvinit-inst.xml
blobf617a5d9c9fea1252056a69a2adfb444dae32259
1 <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
3 <sect2>
4 <title>Installation of Sysvinit</title>
6 <para>When run levels are changed (for example, when halting the system),
7 init sends the TERM and KILL signals to the processes which it started.
8 init prints "Sending processes the TERM signal" to the screen. This seems
9 to imply that init is sending these signals to all the currently running
10 processes. To avoid this confusion, the init.c file can be modified, so
11 that the sentence reads "Sending processes started by init the TERM signal".</para>
13 <para>Edit the halt message:</para>
15 <para><screen><userinput>cp src/init.c{,.backup} &amp;&amp;
16 sed 's/Sending processes/Sending processes started by init/g' \
17 &nbsp;&nbsp;&nbsp;&nbsp;src/init.c.backup &gt; src/init.c</userinput></screen></para>
19 <para>Compile Sysvinit:</para>
21 <para><screen><userinput>make -C src</userinput></screen></para>
23 <para>Finish installing the package:</para>
25 <para><screen><userinput>make -C src install</userinput></screen></para>
27 </sect2>