bootscripts.xml 10 KB

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