bootscripts.xml 12 KB

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