bootscripts.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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. <sect1info condition="script">
  10. <productname>lfs-bootscripts</productname>
  11. <productnumber>&lfs-bootscripts-version;</productnumber>
  12. <address>&lfs-bootscripts-url;</address>
  13. </sect1info>
  14. <title>LFS-Bootscripts-&lfs-bootscripts-version;</title>
  15. <indexterm zone="ch-scripts-bootscripts">
  16. <primary sortas="a-Bootscripts">Bootscripts</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The LFS-Bootscripts package contains a set of scripts to start/stop the
  21. LFS system at bootup/shutdown.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&lfs-bootscripts-ch7-sbu;</seg>
  27. <seg>&lfs-bootscripts-ch7-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of LFS-Bootscripts</title>
  33. <para>Install the package:</para>
  34. <screen><userinput remap="install">make install</userinput></screen>
  35. </sect2>
  36. <sect2 id="contents-bootscripts" role="content">
  37. <title>Contents of LFS-Bootscripts</title>
  38. <segmentedlist>
  39. <segtitle>Installed scripts</segtitle>
  40. <seglistitem>
  41. <seg>checkfs, cleanfs, console, consolelog, functions, halt, ifdown,
  42. ifup, localnet, modules, mountfs, mountkernfs, network, rc, reboot,
  43. sendsignals, setclock, static, swap, sysctl, sysklogd, template,
  44. udev, and udev_retry</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="consolelog-bootscripts">
  86. <term><command>consolelog</command></term>
  87. <listitem>
  88. <para>Sets the kernel log level to control messages reaching the
  89. console.</para>
  90. <indexterm zone="ch-scripts-bootscripts consolelog-bootscripts">
  91. <primary sortas="d-consolelog">consolelog</primary>
  92. </indexterm>
  93. </listitem>
  94. </varlistentry>
  95. <varlistentry id="functions-bootscripts">
  96. <term><command>functions</command></term>
  97. <listitem>
  98. <para>Contains common functions, such as error and status checking,
  99. that are used by several bootscripts</para>
  100. <indexterm zone="ch-scripts-bootscripts functions-bootscripts">
  101. <primary sortas="d-functions">functions</primary>
  102. </indexterm>
  103. </listitem>
  104. </varlistentry>
  105. <varlistentry id="halt-bootscripts">
  106. <term><command>halt</command></term>
  107. <listitem>
  108. <para>Halts the system</para>
  109. <indexterm zone="ch-scripts-bootscripts halt-bootscripts">
  110. <primary sortas="d-halt">halt</primary>
  111. </indexterm>
  112. </listitem>
  113. </varlistentry>
  114. <varlistentry id="ifdown-bootscripts">
  115. <term><command>ifdown</command></term>
  116. <listitem>
  117. <para>Assists the network script with stopping network devices</para>
  118. <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
  119. <primary sortas="d-ifdown">ifdown</primary>
  120. </indexterm>
  121. </listitem>
  122. </varlistentry>
  123. <varlistentry id="ifup-bootscripts">
  124. <term><command>ifup</command></term>
  125. <listitem>
  126. <para>Assists the network script with starting network devices</para>
  127. <indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
  128. <primary sortas="d-ifup">ifup</primary>
  129. </indexterm>
  130. </listitem>
  131. </varlistentry>
  132. <varlistentry id="localnet-bootscripts">
  133. <term><command>localnet</command></term>
  134. <listitem>
  135. <para>Sets up the system's hostname and local loopback device</para>
  136. <indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
  137. <primary sortas="d-localnet">localnet</primary>
  138. </indexterm>
  139. </listitem>
  140. </varlistentry>
  141. <varlistentry id="modules-bootscripts">
  142. <term><command>modules</command></term>
  143. <listitem>
  144. <para>Loads kernel modules listed in
  145. <filename>/etc/sysconfig/modules</filename>, using arguments
  146. that are also given there</para>
  147. <indexterm zone="ch-scripts-bootscripts modules-bootscripts">
  148. <primary sortas="d-modules">modules</primary>
  149. </indexterm>
  150. </listitem>
  151. </varlistentry>
  152. <varlistentry id="mountfs-bootscripts">
  153. <term><command>mountfs</command></term>
  154. <listitem>
  155. <para>Mounts all file systems, except ones that are marked
  156. <emphasis>noauto</emphasis> or are network based</para>
  157. <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
  158. <primary sortas="d-mountfs">mountfs</primary>
  159. </indexterm>
  160. </listitem>
  161. </varlistentry>
  162. <varlistentry id="mountkernfs-bootscripts">
  163. <term><command>mountkernfs</command></term>
  164. <listitem>
  165. <para>Mounts virtual kernel file systems, such as <systemitem
  166. class="filesystem">proc</systemitem></para>
  167. <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts">
  168. <primary sortas="d-mountkernfs">mountkernfs</primary>
  169. </indexterm>
  170. </listitem>
  171. </varlistentry>
  172. <varlistentry id="network-bootscripts">
  173. <term><command>network</command></term>
  174. <listitem>
  175. <para>Sets up network interfaces, such as network cards, and sets up
  176. the default gateway (where applicable)</para>
  177. <indexterm zone="ch-scripts-bootscripts network-bootscripts">
  178. <primary sortas="d-network">network</primary>
  179. </indexterm>
  180. </listitem>
  181. </varlistentry>
  182. <varlistentry id="rc-bootscripts">
  183. <term><command>rc</command></term>
  184. <listitem>
  185. <para>The master run-level control script; it is responsible for
  186. running all the other bootscripts one-by-one, in a sequence determined
  187. by the name of the symbolic links being processed</para>
  188. <indexterm zone="ch-scripts-bootscripts rc-bootscripts">
  189. <primary sortas="d-rc">rc</primary>
  190. </indexterm>
  191. </listitem>
  192. </varlistentry>
  193. <varlistentry id="reboot-bootscripts">
  194. <term><command>reboot</command></term>
  195. <listitem>
  196. <para>Reboots the system</para>
  197. <indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
  198. <primary sortas="d-reboot">reboot</primary>
  199. </indexterm>
  200. </listitem>
  201. </varlistentry>
  202. <varlistentry id="sendsignals-bootscripts">
  203. <term><command>sendsignals</command></term>
  204. <listitem>
  205. <para>Makes sure every process is terminated before the system reboots
  206. or halts</para>
  207. <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
  208. <primary sortas="d-sendsignals">sendsignals</primary>
  209. </indexterm>
  210. </listitem>
  211. </varlistentry>
  212. <varlistentry id="setclock-bootscripts">
  213. <term><command>setclock</command></term>
  214. <listitem>
  215. <para>Resets the kernel clock to local time in case the hardware clock
  216. is not set to UTC time</para>
  217. <indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
  218. <primary sortas="d-setclock">setclock</primary>
  219. </indexterm>
  220. </listitem>
  221. </varlistentry>
  222. <varlistentry id="static-bootscripts">
  223. <term><command>static</command></term>
  224. <listitem>
  225. <para>Provides the functionality needed to assign a static Internet
  226. Protocol (IP) address to a network interface</para>
  227. <indexterm zone="ch-scripts-bootscripts static-bootscripts">
  228. <primary sortas="d-static">static</primary>
  229. </indexterm>
  230. </listitem>
  231. </varlistentry>
  232. <varlistentry id="swap-bootscripts">
  233. <term><command>swap</command></term>
  234. <listitem>
  235. <para>Enables and disables swap files and partitions</para>
  236. <indexterm zone="ch-scripts-bootscripts swap-bootscripts">
  237. <primary sortas="d-swap">swap</primary>
  238. </indexterm>
  239. </listitem>
  240. </varlistentry>
  241. <varlistentry id="sysctl-bootscripts">
  242. <term><command>sysctl</command></term>
  243. <listitem>
  244. <para>Loads system configuration values from
  245. <filename>/etc/sysctl.conf</filename>, if that file exists,
  246. into the running kernel</para>
  247. <indexterm zone="ch-scripts-bootscripts sysctl-bootscripts">
  248. <primary sortas="d-sysctl">sysctl</primary>
  249. </indexterm>
  250. </listitem>
  251. </varlistentry>
  252. <varlistentry id="sysklogd-bootscripts">
  253. <term><command>sysklogd</command></term>
  254. <listitem>
  255. <para>Starts and stops the system and kernel log daemons</para>
  256. <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
  257. <primary sortas="d-sysklogd">sysklogd</primary>
  258. </indexterm>
  259. </listitem>
  260. </varlistentry>
  261. <varlistentry id="template-bootscripts">
  262. <term><command>template</command></term>
  263. <listitem>
  264. <para>A template to create custom bootscripts for other
  265. daemons</para>
  266. <indexterm zone="ch-scripts-bootscripts template-bootscripts">
  267. <primary sortas="d-template">template</primary>
  268. </indexterm>
  269. </listitem>
  270. </varlistentry>
  271. <varlistentry id="udev-bootscripts">
  272. <term><command>udev</command></term>
  273. <listitem>
  274. <para>Prepares the <filename class="directory">/dev</filename>
  275. directory and starts Udev</para>
  276. <indexterm zone="ch-scripts-bootscripts udev-bootscripts">
  277. <primary sortas="d-udev">udev</primary>
  278. </indexterm>
  279. </listitem>
  280. </varlistentry>
  281. <varlistentry id="udev-retry-bootscripts">
  282. <term><command>udev_retry</command></term>
  283. <listitem>
  284. <para>Retries failed udev uevents, and copies generated rules
  285. files from <filename class="directory">/dev/.udev</filename> to
  286. <filename class="directory">/etc/udev/rules.d</filename> if required</para>
  287. <indexterm zone="ch-scripts-bootscripts udev-retry-bootscripts">
  288. <primary sortas="d-udev-retry">udev_retry</primary>
  289. </indexterm>
  290. </listitem>
  291. </varlistentry>
  292. </variablelist>
  293. </sect2>
  294. </sect1>