blob: c2f274a0f09f391e3c73d2d4b1c3f667654e762e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<sect2>
<title>Installation of Sysvinit</title>
<para>When run levels are changed (for example when going to shutdown
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
screen saying "sending all processes the TERM signal" and the same for the
KILL signal. This seems to imply that init sends this signal to all the
currently running processes, but this isn't the case. To avoid this
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>
<para><screen><userinput>cp src/init.c src/init.c.backup &&
sed 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \
src/init.c.backup > src/init.c</userinput></screen></para>
<para>Install Sysvinit by running the following commands:</para>
<para><screen><userinput>make -C src &&
make -C src install</userinput></screen></para>
</sect2>
|