bootscripts.xml 12 KB

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