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