mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-24 06:09:21 +01:00
Bug 123: change patch to sed
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@920 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
316a346d2c
commit
d28075a0fe
@ -6,18 +6,16 @@ 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 a user can
|
running processes, which isn't the case. To avoid this confusion, we
|
||||||
apply the sysvinit patch found on the LFS FTP site to sysvinit that changes
|
change the init.c file so that the sentence reads "sending all
|
||||||
the sentence in the shutdown.c file and have it print "sending all
|
|
||||||
processes started by init the TERM signal".</para>
|
processes started by init the TERM signal".</para>
|
||||||
|
|
||||||
<para>Apply the patch by running the following command:</para>
|
|
||||||
|
|
||||||
<para><screen><userinput>patch -Np1 -i ../sysvinit-&sysvinit-version;.patch</userinput></screen></para>
|
|
||||||
|
|
||||||
<para>Install Sysvinit by running the following commands:</para>
|
<para>Install Sysvinit by running the following commands:</para>
|
||||||
|
|
||||||
<para><screen><userinput>make -C src &&</userinput>
|
<para><screen><userinput>mv src/init.c init.c.temp &&</userinput>
|
||||||
|
<userinput>sed 's/\(.*\)\(Sending processes\)\(.*\) \</userinput>
|
||||||
|
<userinput> /\1\2 started by init\3/' init.c.temp > src/init.c &&</userinput>
|
||||||
|
<userinput>make -C src &&</userinput>
|
||||||
<userinput>make -C src install</userinput></screen></para>
|
<userinput>make -C src install</userinput></screen></para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
Loading…
Reference in New Issue
Block a user