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
|
2002-04-19 19:13:09 +01:00
|
|
|
KILL signal. This seems to imply that init sends this signal to all the
|
2002-04-21 14:01:52 +01:00
|
|
|
currently running processes, but this isn't the case. To avoid this
|
2002-04-19 19:13:09 +01:00
|
|
|
confusion, you can change the init.c file so that the sentence reads
|
|
|
|
"sending all 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/' \
|
2001-12-10 15:23:46 +00:00
|
|
|
src/init.c.backup > 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>
|
|
|
|
|