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-09-08 01:19:39 +01:00
|
|
|
running processes, which isn't the case. To avoid this confusion, you
|
2001-08-07 13:57:10 +01:00
|
|
|
change the init.c file so that the sentence reads "sending all
|
2001-09-08 01:19:39 +01:00
|
|
|
processes started by init the TERM signal" by running the following
|
|
|
|
commands. If you don't want to change it, skip it.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-10-27 23:21:44 +01:00
|
|
|
<para><screen><userinput>cp src/init.c src/init.c.backup &&
|
|
|
|
sed 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \
|
|
|
|
src/init.c > tmp~ &&
|
|
|
|
mv tmp~ src/init.c</userinput></screen></para>
|
2001-09-08 01:19:39 +01:00
|
|
|
|
|
|
|
<para>Install Sysvinit by running the following commands:</para>
|
|
|
|
|
2001-10-27 23:21:44 +01:00
|
|
|
<para><screen><userinput>make -C src &&
|
|
|
|
make -C src install</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|