scripts.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. <!ENTITY checkfs SYSTEM "checkfs.script">
  6. <!ENTITY cleanfs SYSTEM "cleanfs.script">
  7. <!ENTITY console SYSTEM "console.script">
  8. <!ENTITY halt SYSTEM "halt.script">
  9. <!ENTITY initfunctions SYSTEM "init-functions.script">
  10. <!ENTITY localnet SYSTEM "localnet.script">
  11. <!ENTITY modules SYSTEM "modules.script">
  12. <!ENTITY mountfs SYSTEM "mountfs.script">
  13. <!ENTITY mountvirtfs SYSTEM "mountvirtfs.script">
  14. <!ENTITY network SYSTEM "network.script">
  15. <!ENTITY rc SYSTEM "rc.script">
  16. <!ENTITY reboot SYSTEM "reboot.script">
  17. <!ENTITY sendsignals SYSTEM "sendsignals.script">
  18. <!ENTITY setclock SYSTEM "setclock.script">
  19. <!ENTITY swap SYSTEM "swap.script">
  20. <!ENTITY sysctl SYSTEM "sysctl.script">
  21. <!ENTITY sysklogd SYSTEM "sysklogd.script">
  22. <!ENTITY template SYSTEM "template.script">
  23. <!ENTITY udev SYSTEM "udev.script">
  24. <!ENTITY udev_retry SYSTEM "udev_retry.script">
  25. <!ENTITY createfiles SYSTEM "createfiles.script">
  26. <!ENTITY modules_sys SYSTEM "modules-sysinit.script">
  27. <!ENTITY cfg_udev_retry SYSTEM "config-udev-retry.script">
  28. <!ENTITY ifup SYSTEM "ifup.script">
  29. <!ENTITY ifdown SYSTEM "ifdown.script">
  30. <!ENTITY ipv4_static SYSTEM "ipv4-static.script">
  31. <!ENTITY ipv4_static_route SYSTEM "ipv4-static-route.script">
  32. %general-entities;
  33. ]>
  34. <appendix id="scripts" xreflabel="Appendix D" revision="sysv">
  35. <?dbhtml dir="scripts"?>
  36. <?dbhtml filename="scripts.html"?>
  37. <title>启动和系统配置脚本,版本 &lfs-bootscripts-version;</title>
  38. <para>本附录中的脚本按照它们通常位于的目录排序列出。
  39. 顺序是 <filename
  40. class='directory'>/etc/rc.d/init.d</filename>,<filename
  41. class='directory'>/etc/sysconfig</filename>,<filename
  42. class='directory'>/etc/sysconfig/network-devices</filename>,以及 <filename
  43. class='directory'>/etc/sysconfig/network-devices/services</filename>。
  44. 在每个目录中,脚本按正常情况下它们被调用的顺序排列。</para>
  45. <sect1 id="rc" role="wrap">
  46. <title>/etc/rc.d/init.d/rc</title>
  47. <para><systemitem>rc</systemitem> 脚本是
  48. <application>init</application> 调用的第一个脚本,它开始引导过程。
  49. </para>
  50. <screen>&rc;</screen>
  51. </sect1>
  52. <sect1 id="init-functions" role="wrap">
  53. <title>/lib/lsb/init-functions</title>
  54. <screen>&initfunctions;</screen>
  55. </sect1>
  56. <sect1 id="mountvirtfs" role="wrap">
  57. <title>/etc/rc.d/init.d/mountvirtfs</title>
  58. <screen>&mountvirtfs;</screen>
  59. </sect1>
  60. <sect1 id="modules" role="wrap">
  61. <title>/etc/rc.d/init.d/modules</title>
  62. <screen>&modules;</screen>
  63. </sect1>
  64. <sect1 id="udev" role="wrap">
  65. <title>/etc/rc.d/init.d/udev</title>
  66. <screen>&udev;</screen>
  67. </sect1>
  68. <sect1 id="swap" role="wrap">
  69. <title>/etc/rc.d/init.d/swap</title>
  70. <screen>&swap;</screen>
  71. </sect1>
  72. <sect1 id="setclock" role="wrap">
  73. <title>/etc/rc.d/init.d/setclock</title>
  74. <screen>&setclock;</screen>
  75. </sect1>
  76. <sect1 id="checkfs" role="wrap">
  77. <title>/etc/rc.d/init.d/checkfs</title>
  78. <screen>&checkfs;</screen>
  79. </sect1>
  80. <sect1 id="mountfs" role="wrap">
  81. <title>/etc/rc.d/init.d/mountfs</title>
  82. <screen>&mountfs;</screen>
  83. </sect1>
  84. <sect1 id="udev_retry" role="wrap">
  85. <title>/etc/rc.d/init.d/udev_retry</title>
  86. <screen>&udev_retry;</screen>
  87. </sect1>
  88. <sect1 id="cleanfs" role="wrap">
  89. <title>/etc/rc.d/init.d/cleanfs</title>
  90. <screen>&cleanfs;</screen>
  91. </sect1>
  92. <sect1 id="console" role="wrap">
  93. <title>/etc/rc.d/init.d/console</title>
  94. <screen>&console;</screen>
  95. </sect1>
  96. <sect1 id="localnet" role="wrap">
  97. <title>/etc/rc.d/init.d/localnet</title>
  98. <screen>&localnet;</screen>
  99. </sect1>
  100. <sect1 id="sysctlscript" role="wrap">
  101. <title>/etc/rc.d/init.d/sysctl</title>
  102. <screen>&sysctl;</screen>
  103. </sect1>
  104. <sect1 id="sysklogd" role="wrap">
  105. <title>/etc/rc.d/init.d/sysklogd</title>
  106. <screen>&sysklogd;</screen>
  107. </sect1>
  108. <sect1 id="network" role="wrap">
  109. <title>/etc/rc.d/init.d/network</title>
  110. <screen>&network;</screen>
  111. </sect1>
  112. <sect1 id="sendsignals" role="wrap">
  113. <title>/etc/rc.d/init.d/sendsignals</title>
  114. <screen>&sendsignals;</screen>
  115. </sect1>
  116. <sect1 id="rebootscript" role="wrap">
  117. <title>/etc/rc.d/init.d/reboot</title>
  118. <screen>&reboot;</screen>
  119. </sect1>
  120. <sect1 id="haltscript" role="wrap">
  121. <title>/etc/rc.d/init.d/halt</title>
  122. <screen>&halt;</screen>
  123. </sect1>
  124. <sect1 id="template" role="wrap">
  125. <title>/etc/rc.d/init.d/template</title>
  126. <screen>&template;</screen>
  127. </sect1>
  128. <sect1 id="modulessys" role="wrap">
  129. <title>/etc/sysconfig/modules</title>
  130. <screen>&modules_sys;</screen>
  131. </sect1>
  132. <sect1 id="createfiles" role="wrap">
  133. <title>/etc/sysconfig/createfiles</title>
  134. <screen>&createfiles;</screen>
  135. </sect1>
  136. <sect1 id="config-udev-retry" role="wrap">
  137. <title>/etc/sysconfig/udev-retry</title>
  138. <screen>&cfg_udev_retry;</screen>
  139. </sect1>
  140. <sect1 id="ifup" role="wrap">
  141. <title>/sbin/ifup</title>
  142. <screen>&ifup;</screen>
  143. </sect1>
  144. <sect1 id="ifdown" role="wrap">
  145. <title>/sbin/ifdown</title>
  146. <screen>&ifdown;</screen>
  147. </sect1>
  148. <sect1 id="ipv4static" role="wrap">
  149. <title>/lib/services/ipv4-static</title>
  150. <screen>&ipv4_static;</screen>
  151. </sect1>
  152. <sect1 id="ipv4route" role="wrap">
  153. <title>/lib/services/ipv4-static-route</title>
  154. <screen>&ipv4_static_route;</screen>
  155. </sect1>
  156. </appendix>