bootscripts.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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, hotplug, 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="hotplug-bootscripts">
  105. <term><command>hotplug</command></term>
  106. <listitem>
  107. <para>Loads modules for system devices</para>
  108. <indexterm zone="ch-scripts-bootscripts hotplug-bootscripts">
  109. <primary sortas="d-hotplug">hotplug</primary>
  110. </indexterm>
  111. </listitem>
  112. </varlistentry>
  113. <varlistentry id="ifdown-bootscripts">
  114. <term><command>ifdown</command></term>
  115. <listitem>
  116. <para>Assists the network script with stopping network devices</para>
  117. <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
  118. <primary sortas="d-ifdown">ifdown</primary>
  119. </indexterm>
  120. </listitem>
  121. </varlistentry>
  122. <varlistentry id="ifup-bootscripts">
  123. <term><command>ifup</command></term>
  124. <listitem>
  125. <para>Assists the network script with starting network devices</para>
  126. <indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
  127. <primary sortas="d-ifup">ifup</primary>
  128. </indexterm>
  129. </listitem>
  130. </varlistentry>
  131. <varlistentry id="localnet-bootscripts">
  132. <term><command>localnet</command></term>
  133. <listitem>
  134. <para>Sets up the system's hostname and local loopback device</para>
  135. <indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
  136. <primary sortas="d-localnet">localnet</primary>
  137. </indexterm>
  138. </listitem>
  139. </varlistentry>
  140. <varlistentry id="mountfs-bootscripts">
  141. <term><command>mountfs</command></term>
  142. <listitem>
  143. <para>Mounts all file systems, except ones that are marked
  144. <emphasis>noauto</emphasis> or are network based</para>
  145. <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
  146. <primary sortas="d-mountfs">mountfs</primary>
  147. </indexterm>
  148. </listitem>
  149. </varlistentry>
  150. <varlistentry id="mountkernfs-bootscripts">
  151. <term><command>mountkernfs</command></term>
  152. <listitem>
  153. <para>Mounts virtual kernel file systems, such as <systemitem
  154. class="filesystem">proc</systemitem></para>
  155. <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts">
  156. <primary sortas="d-mountkernfs">mountkernfs</primary>
  157. </indexterm>
  158. </listitem>
  159. </varlistentry>
  160. <varlistentry id="network-bootscripts">
  161. <term><command>network</command></term>
  162. <listitem>
  163. <para>Sets up network interfaces, such as network cards, and sets up
  164. the default gateway (where applicable)</para>
  165. <indexterm zone="ch-scripts-bootscripts network-bootscripts">
  166. <primary sortas="d-network">network</primary>
  167. </indexterm>
  168. </listitem>
  169. </varlistentry>
  170. <varlistentry id="rc-bootscripts">
  171. <term><command>rc</command></term>
  172. <listitem>
  173. <para>The master run-level control script; it is responsible for
  174. running all the other bootscripts one-by-one, in a sequence determined
  175. by the name of the symbolic links being processed</para>
  176. <indexterm zone="ch-scripts-bootscripts rc-bootscripts">
  177. <primary sortas="d-rc">rc</primary>
  178. </indexterm>
  179. </listitem>
  180. </varlistentry>
  181. <varlistentry id="reboot-bootscripts">
  182. <term><command>reboot</command></term>
  183. <listitem>
  184. <para>Reboots the system</para>
  185. <indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
  186. <primary sortas="d-reboot">reboot</primary>
  187. </indexterm>
  188. </listitem>
  189. </varlistentry>
  190. <varlistentry id="sendsignals-bootscripts">
  191. <term><command>sendsignals</command></term>
  192. <listitem>
  193. <para>Makes sure every process is terminated before the system reboots
  194. or halts</para>
  195. <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
  196. <primary sortas="d-sendsignals">sendsignals</primary>
  197. </indexterm>
  198. </listitem>
  199. </varlistentry>
  200. <varlistentry id="setclock-bootscripts">
  201. <term><command>setclock</command></term>
  202. <listitem>
  203. <para>Resets the kernel clock to local time in case the hardware clock
  204. is not set to UTC time</para>
  205. <indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
  206. <primary sortas="d-setclock">setclock</primary>
  207. </indexterm>
  208. </listitem>
  209. </varlistentry>
  210. <varlistentry id="static-bootscripts">
  211. <term><command>static</command></term>
  212. <listitem>
  213. <para>Provides the functionality needed to assign a static Internet
  214. Protocol (IP) address to a network interface</para>
  215. <indexterm zone="ch-scripts-bootscripts static-bootscripts">
  216. <primary sortas="d-static">static</primary>
  217. </indexterm>
  218. </listitem>
  219. </varlistentry>
  220. <varlistentry id="swap-bootscripts">
  221. <term><command>swap</command></term>
  222. <listitem>
  223. <para>Enables and disables swap files and partitions</para>
  224. <indexterm zone="ch-scripts-bootscripts swap-bootscripts">
  225. <primary sortas="d-swap">swap</primary>
  226. </indexterm>
  227. </listitem>
  228. </varlistentry>
  229. <varlistentry id="sysklogd-bootscripts">
  230. <term><command>sysklogd</command></term>
  231. <listitem>
  232. <para>Starts and stops the system and kernel log daemons</para>
  233. <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
  234. <primary sortas="d-sysklogd">sysklogd</primary>
  235. </indexterm>
  236. </listitem>
  237. </varlistentry>
  238. <varlistentry id="template-bootscripts">
  239. <term><command>template</command></term>
  240. <listitem>
  241. <para>A template to create custom bootscripts for other
  242. daemons</para>
  243. <indexterm zone="ch-scripts-bootscripts template-bootscripts">
  244. <primary sortas="d-template">template</primary>
  245. </indexterm>
  246. </listitem>
  247. </varlistentry>
  248. <varlistentry id="udev-bootscripts">
  249. <term><command>udev</command></term>
  250. <listitem>
  251. <para>Prepares the <filename class="directory">/dev</filename>
  252. directory and starts Udev</para>
  253. <indexterm zone="ch-scripts-bootscripts udev-bootscripts">
  254. <primary sortas="d-udev">udev</primary>
  255. </indexterm>
  256. </listitem>
  257. </varlistentry>
  258. </variablelist>
  259. </sect2>
  260. </sect1>