diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 1dba73f77..f8c79ef06 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -15,6 +15,10 @@ +September 7th, 2001 [gerard]: Chapter 6 - Sysvinit: +Seperated the commands to change the status msg in init.c from the main +commands. + September 7th, 2001 [gerard]: Chapter 6 - Bash: Added --login to the exec /bin/bash command. diff --git a/chapter06/sysvinit-inst.xml b/chapter06/sysvinit-inst.xml index 078ad2357..fde648bf3 100644 --- a/chapter06/sysvinit-inst.xml +++ b/chapter06/sysvinit-inst.xml @@ -6,17 +6,19 @@ 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 implies that init sends this signal to all the currently -running processes, which isn't the case. To avoid this confusion, we +running processes, which isn't the case. To avoid this confusion, you change the init.c file so that the sentence reads "sending all -processes started by init the TERM signal". - -Install Sysvinit by running the following commands: +processes started by init the TERM signal" by running the following +commands. If you don't want to change it, skip it. 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 && -make -C src && +mv tmp~ src/init.c + +Install Sysvinit by running the following commands: + +make -C src && make -C src install