bootscripts.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-scripts-bootscripts" role="wrap">
  8. <?dbhtml filename="bootscripts.html"?>
  9. <title>LFS-Bootscripts-&lfs-bootscripts-version;</title>
  10. <indexterm zone="ch-scripts-bootscripts">
  11. <primary sortas="a-Bootscripts">Bootscripts</primary>
  12. </indexterm>
  13. <sect2 role="package">
  14. <title/>
  15. <para>The LFS-Bootscripts package contains a set of scripts to start/stop the
  16. LFS system at bootup/shutdown.</para>
  17. <segmentedlist>
  18. <segtitle>&buildtime;</segtitle>
  19. <segtitle>&diskspace;</segtitle>
  20. <seglistitem>
  21. <seg>&lfs-bootscripts-ch7-sbu;</seg>
  22. <seg>&lfs-bootscripts-ch7-du;</seg>
  23. </seglistitem>
  24. </segmentedlist>
  25. </sect2>
  26. <sect2 role="installation">
  27. <title>Installation of LFS-Bootscripts</title>
  28. <para>Install the package:</para>
  29. <screen><userinput>make install</userinput></screen>
  30. </sect2>
  31. <sect2 id="contents-bootscripts" role="content">
  32. <title>Contents of LFS-Bootscripts</title>
  33. <segmentedlist>
  34. <segtitle>Installed scripts</segtitle>
  35. <seglistitem>
  36. <seg>checkfs, cleanfs, console, functions, halt, ifdown, ifup,
  37. localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals,
  38. setclock, static, swap, sysklogd, template, and udev</seg>
  39. </seglistitem>
  40. </segmentedlist>
  41. <variablelist>
  42. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  43. <?dbfo list-presentation="list"?>
  44. <?dbhtml list-presentation="table"?>
  45. <varlistentry id="checkfs-bootscripts">
  46. <term><command>checkfs</command></term>
  47. <listitem>
  48. <para>Checks the integrity of the file systems before they are mounted
  49. (with the exception of journal and network based file systems)</para>
  50. <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts">
  51. <primary sortas="d-checkfs">checkfs</primary>
  52. </indexterm>
  53. </listitem>
  54. </varlistentry>
  55. <varlistentry id="cleanfs-bootscripts">
  56. <term><command>cleanfs</command></term>
  57. <listitem>
  58. <para>Removes files that should not be preserved between reboots, such
  59. as those in <filename class="directory">/var/run/</filename> and
  60. <filename class="directory">/var/lock/</filename>; it re-creates
  61. <filename>/var/run/utmp</filename> and removes the possibly present
  62. <filename>/etc/nologin</filename>, <filename>/fastboot</filename>, and
  63. <filename>/forcefsck</filename> files</para>
  64. <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts">
  65. <primary sortas="d-cleanfs">cleanfs</primary>
  66. </indexterm>
  67. </listitem>
  68. </varlistentry>
  69. <varlistentry id="console-bootscripts">
  70. <term><command>console</command></term>
  71. <listitem>
  72. <para>Loads the correct keymap table for the desired keyboard layout;
  73. it also sets the screen font</para>
  74. <indexterm zone="ch-scripts-bootscripts console-bootscripts">
  75. <primary sortas="d-console">console</primary>
  76. </indexterm>
  77. </listitem>
  78. </varlistentry>
  79. <varlistentry id="functions-bootscripts">
  80. <term><command>functions</command></term>
  81. <listitem>
  82. <para>Contains common functions, such as error and status checking,
  83. that are used by several bootscripts</para>
  84. <indexterm zone="ch-scripts-bootscripts functions-bootscripts">
  85. <primary sortas="d-functions">functions</primary>
  86. </indexterm>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry id="halt-bootscripts">
  90. <term><command>halt</command></term>
  91. <listitem>
  92. <para>Halts the system</para>
  93. <indexterm zone="ch-scripts-bootscripts halt-bootscripts">
  94. <primary sortas="d-halt">halt</primary>
  95. </indexterm>
  96. </listitem>
  97. </varlistentry>
  98. <varlistentry id="ifdown-bootscripts">
  99. <term><command>ifdown</command></term>
  100. <listitem>
  101. <para>Assists the network script with stopping network devices</para>
  102. <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
  103. <primary sortas="d-ifdown">ifdown</primary>
  104. </indexterm>
  105. </listitem>
  106. </varlistentry>
  107. <varlistentry id="ifup-bootscripts">
  108. <term><command>ifup</command></term>
  109. <listitem>
  110. <para>Assists the network script with starting network devices</para>
  111. <indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
  112. <primary sortas="d-ifup">ifup</primary>
  113. </indexterm>
  114. </listitem>
  115. </varlistentry>
  116. <varlistentry id="localnet-bootscripts">
  117. <term><command>localnet</command></term>
  118. <listitem>
  119. <para>Sets up the system's hostname and local loopback device</para>
  120. <indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
  121. <primary sortas="d-localnet">localnet</primary>
  122. </indexterm>
  123. </listitem>
  124. </varlistentry>
  125. <varlistentry id="mountfs-bootscripts">
  126. <term><command>mountfs</command></term>
  127. <listitem>
  128. <para>Mounts all file systems, except ones that are marked
  129. <emphasis>noauto</emphasis> or are network based</para>
  130. <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
  131. <primary sortas="d-mountfs">mountfs</primary>
  132. </indexterm>
  133. </listitem>
  134. </varlistentry>
  135. <varlistentry id="mountkernfs-bootscripts">
  136. <term><command>mountkernfs</command></term>
  137. <listitem>
  138. <para>Mounts virtual kernel file systems, such as <systemitem
  139. class="filesystem">proc</systemitem></para>
  140. <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts">
  141. <primary sortas="d-mountkernfs">mountkernfs</primary>
  142. </indexterm>
  143. </listitem>
  144. </varlistentry>
  145. <varlistentry id="network-bootscripts">
  146. <term><command>network</command></term>
  147. <listitem>
  148. <para>Sets up network interfaces, such as network cards, and sets up
  149. the default gateway (where applicable)</para>
  150. <indexterm zone="ch-scripts-bootscripts network-bootscripts">
  151. <primary sortas="d-network">network</primary>
  152. </indexterm>
  153. </listitem>
  154. </varlistentry>
  155. <varlistentry id="rc-bootscripts">
  156. <term><command>rc</command></term>
  157. <listitem>
  158. <para>The master run-level control script; it is responsible for
  159. running all the other bootscripts one-by-one, in a sequence determined
  160. by the name of the symbolic links being processed</para>
  161. <indexterm zone="ch-scripts-bootscripts rc-bootscripts">
  162. <primary sortas="d-rc">rc</primary>
  163. </indexterm>
  164. </listitem>
  165. </varlistentry>
  166. <varlistentry id="reboot-bootscripts">
  167. <term><command>reboot</command></term>
  168. <listitem>
  169. <para>Reboots the system</para>
  170. <indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
  171. <primary sortas="d-reboot">reboot</primary>
  172. </indexterm>
  173. </listitem>
  174. </varlistentry>
  175. <varlistentry id="sendsignals-bootscripts">
  176. <term><command>sendsignals</command></term>
  177. <listitem>
  178. <para>Makes sure every process is terminated before the system reboots
  179. or halts</para>
  180. <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
  181. <primary sortas="d-sendsignals">sendsignals</primary>
  182. </indexterm>
  183. </listitem>
  184. </varlistentry>
  185. <varlistentry id="setclock-bootscripts">
  186. <term><command>setclock</command></term>
  187. <listitem>
  188. <para>Resets the kernel clock to local time in case the hardware clock
  189. is not set to UTC time</para>
  190. <indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
  191. <primary sortas="d-setclock">setclock</primary>
  192. </indexterm>
  193. </listitem>
  194. </varlistentry>
  195. <varlistentry id="static-bootscripts">
  196. <term><command>static</command></term>
  197. <listitem>
  198. <para>Provides the functionality needed to assign a static Internet
  199. Protocol (IP) address to a network interface</para>
  200. <indexterm zone="ch-scripts-bootscripts static-bootscripts">
  201. <primary sortas="d-static">static</primary>
  202. </indexterm>
  203. </listitem>
  204. </varlistentry>
  205. <varlistentry id="swap-bootscripts">
  206. <term><command>swap</command></term>
  207. <listitem>
  208. <para>Enables and disables swap files and partitions</para>
  209. <indexterm zone="ch-scripts-bootscripts swap-bootscripts">
  210. <primary sortas="d-swap">swap</primary>
  211. </indexterm>
  212. </listitem>
  213. </varlistentry>
  214. <varlistentry id="sysklogd-bootscripts">
  215. <term><command>sysklogd</command></term>
  216. <listitem>
  217. <para>Starts and stops the system and kernel log daemons</para>
  218. <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
  219. <primary sortas="d-sysklogd">sysklogd</primary>
  220. </indexterm>
  221. </listitem>
  222. </varlistentry>
  223. <varlistentry id="template-bootscripts">
  224. <term><command>template</command></term>
  225. <listitem>
  226. <para>A template to create custom bootscripts for other
  227. daemons</para>
  228. <indexterm zone="ch-scripts-bootscripts template-bootscripts">
  229. <primary sortas="d-template">template</primary>
  230. </indexterm>
  231. </listitem>
  232. </varlistentry>
  233. <varlistentry id="udev-bootscripts">
  234. <term><command>udev</command></term>
  235. <listitem>
  236. <para>Prepares the <filename class="directory">/dev</filename>
  237. directory and starts Udev</para>
  238. <indexterm zone="ch-scripts-bootscripts udev-bootscripts">
  239. <primary sortas="d-udev">udev</primary>
  240. </indexterm>
  241. </listitem>
  242. </varlistentry>
  243. </variablelist>
  244. </sect2>
  245. </sect1>