bootscripts.xml 11 KB

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