diff options
author | Timothy Bauscher <timothy@linuxfromscratch.org> | 2002-07-03 18:32:30 +0000 |
---|---|---|
committer | Timothy Bauscher <timothy@linuxfromscratch.org> | 2002-07-03 18:32:30 +0000 |
commit | b8aa29f87306222a081d423ba1f1c188b90ee550 (patch) | |
tree | 6012583e2a2b2bce622da28afb84f91c2662b46a /chapter06/sysvinit-inst.xml | |
parent | 64d74d812caafd2aad181812d6fc2699885cd850 (diff) |
Sysvinit: Simplified the sed command, updated installation description. Added screen tags to chrootcmd.xml.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2026 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/sysvinit-inst.xml')
-rw-r--r-- | chapter06/sysvinit-inst.xml | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/chapter06/sysvinit-inst.xml b/chapter06/sysvinit-inst.xml index c2f274a0f..65d15bd35 100644 --- a/chapter06/sysvinit-inst.xml +++ b/chapter06/sysvinit-inst.xml @@ -1,18 +1,17 @@ <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>When run levels are changed (for example, when halting the system) +init sends the TERM and KILL signals to the processes which it started. +init prints "Sending processes the TERM signal" to the screen. This seems +to imply that init is sending these signals to all the currently running +processes. To avoid this confusion, the init.c file can be modified, so +that the sentence reads "Sending 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/' \ +sed 's/Sending processes/Sending processes started by init/g' \ src/init.c.backup > src/init.c</userinput></screen></para> <para>Install Sysvinit by running the following commands:</para> |