bootscripts.xml 12 KB

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