bootscripts.xml 8.6 KB

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