seperated init.c's modification commands

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1208 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Gerard Beekmans 2001-09-08 00:19:39 +00:00
parent e6313784d6
commit 897a8391c2
2 changed files with 12 additions and 6 deletions

View File

@ -15,6 +15,10 @@
</para></listitem> </para></listitem>
<listitem><para>September 7th, 2001 [gerard]: Chapter 6 - Sysvinit:
Seperated the commands to change the status msg in init.c from the main
commands.</para></listitem>
<listitem><para>September 7th, 2001 [gerard]: Chapter 6 - Bash: Added <listitem><para>September 7th, 2001 [gerard]: Chapter 6 - Bash: Added
--login to the exec /bin/bash command.</para></listitem> --login to the exec /bin/bash command.</para></listitem>

View File

@ -6,17 +6,19 @@ 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 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 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 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 running processes, which isn't the case. To avoid this confusion, you
change the init.c file so that the sentence reads "sending all change the init.c file so that the sentence reads "sending all
processes started by init the TERM signal".</para> processes started by init the TERM signal" by running the following
commands. If you don't want to change it, skip it.</para>
<para>Install Sysvinit by running the following commands:</para>
<para><screen><userinput>cp src/init.c src/init.c.backup &amp;&amp;</userinput> <para><screen><userinput>cp src/init.c src/init.c.backup &amp;&amp;</userinput>
<userinput>sed 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \</userinput> <userinput>sed 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;src/init.c &gt; tmp~ &amp;&amp;</userinput> <userinput>&nbsp;&nbsp;&nbsp;src/init.c &gt; tmp~ &amp;&amp;</userinput>
<userinput>mv tmp~ src/init.c &amp;&amp;</userinput> <userinput>mv tmp~ src/init.c</userinput></screen></para>
<userinput>make -C src &amp;&amp;</userinput>
<para>Install Sysvinit by running the following commands:</para>
<para><screen><userinput>make -C src &amp;&amp;</userinput>
<userinput>make -C src install</userinput></screen></para> <userinput>make -C src install</userinput></screen></para>
</sect2> </sect2>