فهرست منبع

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
Timothy Bauscher 23 سال پیش
والد
کامیت
b8aa29f873
5فایلهای تغییر یافته به همراه19 افزوده شده و 15 حذف شده
  1. 5 0
      chapter01/changelog.xml
  2. 1 1
      chapter06/chroot.xml
  3. 2 2
      chapter06/chrootcmd.xml
  4. 9 10
      chapter06/sysvinit-inst.xml
  5. 2 2
      index.xml

+ 5 - 0
chapter01/changelog.xml

@@ -46,6 +46,11 @@
 </itemizedlist>
 </para></listitem>
 
+<listitem><para>July 3rd, 2002 [timothy]: Chapter 06 - Sysvinit: Simplified
+the sed command and updated the installation description because init now
+prints "Sending processes" instead of "Sending all processes". Internal
+change: added &lt;screen&gt; tags to chrootcmd.xml.</para></listitem>
+
 <listitem><para>July 2nd, 2002 [markh]: Internal change - Made all
 patches use a &amp;package-patch-version; entity and removed all
 hardcoding of patch versions.</para></listitem>

+ 1 - 1
chapter06/chroot.xml

@@ -13,7 +13,7 @@ this point on there's no need to use the $LFS variable anymore, because
 everything a user does will be restricted to the LFS partition (since / is
 actually /mnt/lfs, but the shell doesn't know that).</para>
 
-<para><screen>&c6-chrootcmd;</screen></para>
+<para>&c6-chrootcmd;</para>
 
 <para>The -i option will clear all environment variables for as long as you
 are in the chroot'ed environment and only the HOME, TERM, PS1 and PATH

+ 2 - 2
chapter06/chrootcmd.xml

@@ -1,4 +1,4 @@
-<userinput>chroot $LFS /static/bin/env -i HOME=/root TERM=$TERM \
+<screen><userinput>chroot $LFS /static/bin/env -i HOME=/root TERM=$TERM \
 &nbsp;&nbsp;&nbsp;&nbsp;PS1='\u:\w\$ ' \
 &nbsp;&nbsp;&nbsp;&nbsp;PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \
-&nbsp;&nbsp;&nbsp;&nbsp;/static/bin/bash --login</userinput>
+&nbsp;&nbsp;&nbsp;&nbsp;/static/bin/bash --login</userinput></screen>

+ 9 - 10
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 &amp;&amp;
-sed 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \
+sed 's/Sending processes/Sending processes started by init/g' \
 &nbsp;&nbsp;&nbsp;&nbsp;src/init.c.backup &gt; src/init.c</userinput></screen></para>
 
 <para>Install Sysvinit by running the following commands:</para>

+ 2 - 2
index.xml

@@ -4,8 +4,8 @@
 
 <!ENTITY book SYSTEM "book/book.xml">
 
-<!ENTITY version "20020702">
-<!ENTITY releasedate "July 2nd, 2002">
+<!ENTITY version "20020703">
+<!ENTITY releasedate "July 3rd, 2002">
 
 <!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
 <!ENTITY http-root "http://ftp.linuxfromscratch.org">