Changeset 46a2e9c for chapter07/bootscripts.xml
- Timestamp:
- 01/06/2006 02:59:05 AM (19 years ago)
- Children:
- e1ca33a
- Parents:
- 1714f1a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/bootscripts.xml
r1714f1a r46a2e9c 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-scripts-bootscripts" role="wrap"> 7 <title>LFS-Bootscripts-&lfs-bootscripts-version;</title> 8 <?dbhtml filename="bootscripts.html"?> 9 10 <indexterm zone="ch-scripts-bootscripts"><primary sortas="a-Bootscripts">Bootscripts</primary></indexterm> 11 12 <sect2 role="package"><title/> 13 <para>The LFS-Bootscripts package contains a set of scripts to start/stop the 14 LFS system at bootup/shutdown.</para> 15 16 <segmentedlist> 17 <segtitle>&buildtime;</segtitle> 18 <segtitle>&diskspace;</segtitle> 19 <seglistitem><seg>0.1 SBU</seg><seg>516 KB</seg></seglistitem> 20 </segmentedlist> 21 22 <segmentedlist> 23 <segtitle>&dependencies;</segtitle> 24 <seglistitem><seg>Bash, Coreutils, and Make</seg></seglistitem> 25 </segmentedlist> 26 </sect2> 27 28 <sect2 role="installation"> 29 <title>Installation of LFS-Bootscripts</title> 30 31 <para>Install the package:</para> 9 <?dbhtml filename="bootscripts.html"?> 10 11 <title>LFS-Bootscripts-&lfs-bootscripts-version;</title> 12 13 <indexterm zone="ch-scripts-bootscripts"> 14 <primary sortas="a-Bootscripts">Bootscripts</primary> 15 </indexterm> 16 17 <sect2 role="package"> 18 <title/> 19 20 <para>The LFS-Bootscripts package contains a set of scripts to start/stop the 21 LFS system at bootup/shutdown.</para> 22 23 <segmentedlist> 24 <segtitle>&buildtime;</segtitle> 25 <segtitle>&diskspace;</segtitle> 26 27 <seglistitem> 28 <seg>0.1 SBU</seg> 29 <seg>516 KB</seg> 30 </seglistitem> 31 </segmentedlist> 32 33 <segmentedlist> 34 <segtitle>&dependencies;</segtitle> 35 36 <seglistitem> 37 <seg>Bash and Coreutils</seg> 38 </seglistitem> 39 </segmentedlist> 40 41 </sect2> 42 43 <sect2 role="installation"> 44 <title>Installation of LFS-Bootscripts</title> 45 46 <para>Install the package:</para> 32 47 33 48 <screen><userinput>make install</userinput></screen> 34 49 35 </sect2> 36 37 <sect2 id="contents-bootscripts" role="content"><title>Contents of LFS-Bootscripts</title> 38 39 <segmentedlist> 40 <segtitle>Installed scripts</segtitle> 41 <seglistitem><seg>checkfs, cleanfs, console, functions, halt, hotplug, ifdown, ifup, 42 localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals, setclock, static, 43 swap, sysklogd, template, and udev</seg></seglistitem> 44 </segmentedlist> 45 46 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead> 47 <?dbfo list-presentation="list"?> 48 <?dbhtml list-presentation="table"?> 49 50 <varlistentry id="checkfs-bootscripts"> 51 <term><command>checkfs</command></term> 52 <listitem> 53 <para>Checks the integrity of the file systems before they are mounted (with the 54 exception of journal and network based file systems)</para> 55 <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts"><primary sortas="d-checkfs">checkfs</primary></indexterm> 56 </listitem> 57 </varlistentry> 58 59 <varlistentry id="cleanfs-bootscripts"> 60 <term><command>cleanfs</command></term> 61 <listitem> 62 <para>Removes files that should not be 63 preserved between reboots, such as those in <filename class="directory">/var/run/</filename> and 64 <filename class="directory">/var/lock/</filename>; it re-creates <filename>/var/run/utmp</filename> 65 and removes the possibly present <filename>/etc/nologin</filename>, 66 <filename>/fastboot</filename>, and <filename>/forcefsck</filename> files</para> 67 <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts"><primary sortas="d-cleanfs">cleanfs</primary></indexterm> 68 </listitem> 69 </varlistentry> 70 71 <varlistentry id="console-bootscripts"> 72 <term><command>console</command></term> 73 <listitem> 74 <para>Loads the correct keymap table for the desired keyboard layout; it also 75 sets the screen font</para> 76 <indexterm zone="ch-scripts-bootscripts console-bootscripts"><primary sortas="d-console">console</primary></indexterm> 77 </listitem> 78 </varlistentry> 79 80 <varlistentry id="functions-bootscripts"> 81 <term><command>functions</command></term> 82 <listitem> 83 <para>Contains common functions, such as error and status checking, that are 84 used by several bootscripts</para> 85 <indexterm zone="ch-scripts-bootscripts functions-bootscripts"><primary sortas="d-functions">functions</primary></indexterm> 86 </listitem> 87 </varlistentry> 88 89 <varlistentry id="halt-bootscripts"> 90 <term><command>halt</command></term> 91 <listitem> 92 <para>Halts the system</para> 93 <indexterm zone="ch-scripts-bootscripts halt-bootscripts"><primary sortas="d-halt">halt</primary></indexterm> 94 </listitem> 95 </varlistentry> 96 97 <varlistentry id="hotplug-bootscripts"> 98 <term><command>hotplug</command></term> 99 <listitem> 100 <para>Loads modules for system devices</para> 101 <indexterm zone="ch-scripts-bootscripts hotplug-bootscripts"><primary sortas="d-hotplug">hotplug</primary></indexterm> 102 </listitem> 103 </varlistentry> 104 105 <varlistentry id="ifdown-bootscripts"> 106 <term><command>ifdown</command></term> 107 <listitem> 108 <para>Assists the network script with stopping network devices</para> 109 <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts"><primary sortas="d-ifdown">ifdown</primary></indexterm> 110 </listitem> 111 </varlistentry> 112 113 <varlistentry id="ifup-bootscripts"> 114 <term><command>ifup</command></term> 115 <listitem> 116 <para>Assists the network script with starting network devices</para> 117 <indexterm zone="ch-scripts-bootscripts ifup-bootscripts"><primary sortas="d-ifup">ifup</primary></indexterm> 118 </listitem> 119 </varlistentry> 120 121 <varlistentry id="localnet-bootscripts"> 122 <term><command>localnet</command></term> 123 <listitem> 124 <para>Sets up the system's hostname and local loopback device</para> 125 <indexterm zone="ch-scripts-bootscripts localnet-bootscripts"><primary sortas="d-localnet">localnet</primary></indexterm> 126 </listitem> 127 </varlistentry> 128 129 <varlistentry id="mountfs-bootscripts"> 130 <term><command>mountfs</command></term> 131 <listitem> 132 <para>Mounts all file systems, except ones that are marked 133 <emphasis>noauto</emphasis> or are network based</para> 134 <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts"><primary sortas="d-mountfs">mountfs</primary></indexterm> 135 </listitem> 136 </varlistentry> 137 138 <varlistentry id="mountkernfs-bootscripts"> 139 <term><command>mountkernfs</command></term> 140 <listitem> 141 <para>Mounts virtual kernel file systems, such as <systemitem 142 class="filesystem">proc</systemitem></para> 143 <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts"><primary sortas="d-mountkernfs">mountkernfs</primary></indexterm> 144 </listitem> 145 </varlistentry> 146 147 <varlistentry id="network-bootscripts"> 148 <term><command>network</command></term> 149 <listitem> 150 <para>Sets up network interfaces, such as network cards, and sets up 151 the default gateway (where applicable)</para> 152 <indexterm zone="ch-scripts-bootscripts network-bootscripts"><primary sortas="d-network">network</primary></indexterm> 153 </listitem> 154 </varlistentry> 155 156 <varlistentry id="rc-bootscripts"> 157 <term><command>rc</command></term> 158 <listitem> 159 <para>The master run-level control script; it is responsible for running all the 160 other bootscripts one-by-one, in a sequence determined by the name of the 161 symbolic links being processed</para> 162 <indexterm zone="ch-scripts-bootscripts rc-bootscripts"><primary sortas="d-rc">rc</primary></indexterm> 163 </listitem> 164 </varlistentry> 165 166 <varlistentry id="reboot-bootscripts"> 167 <term><command>reboot</command></term> 168 <listitem> 169 <para>Reboots the system</para> 170 <indexterm zone="ch-scripts-bootscripts reboot-bootscripts"><primary sortas="d-reboot">reboot</primary></indexterm> 171 </listitem> 172 </varlistentry> 173 174 <varlistentry id="sendsignals-bootscripts"> 175 <term><command>sendsignals</command></term> 176 <listitem> 177 <para>Makes sure every process is terminated before the system reboots 178 or halts</para> 179 <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts"><primary sortas="d-sendsignals">sendsignals</primary></indexterm> 180 </listitem> 181 </varlistentry> 182 183 <varlistentry id="setclock-bootscripts"> 184 <term><command>setclock</command></term> 185 <listitem> 186 <para>Resets the kernel clock to local time in case the hardware clock 187 is not set to UTC time</para> 188 <indexterm zone="ch-scripts-bootscripts setclock-bootscripts"><primary sortas="d-setclock">setclock</primary></indexterm> 189 </listitem> 190 </varlistentry> 191 192 <varlistentry id="static-bootscripts"> 193 <term><command>static</command></term> 194 <listitem> 195 <para>Provides the functionality needed to assign a static Internet 196 Protocol (IP) address to a network interface</para> 197 <indexterm zone="ch-scripts-bootscripts static-bootscripts"><primary sortas="d-static">static</primary></indexterm> 198 </listitem> 199 </varlistentry> 200 201 <varlistentry id="swap-bootscripts"> 202 <term><command>swap</command></term> 203 <listitem> 204 <para>Enables and disables swap files and partitions</para> 205 <indexterm zone="ch-scripts-bootscripts swap-bootscripts"><primary sortas="d-swap">swap</primary></indexterm> 206 </listitem> 207 </varlistentry> 208 209 <varlistentry id="sysklogd-bootscripts"> 210 <term><command>sysklogd</command></term> 211 <listitem> 212 <para>Starts and stops the system and kernel log daemons</para> 213 <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts"><primary sortas="d-sysklogd">sysklogd</primary></indexterm> 214 </listitem> 215 </varlistentry> 216 217 <varlistentry id="template-bootscripts"> 218 <term><command>template</command></term> 219 <listitem> 220 <para>A template to create custom bootscripts for other 221 daemons</para> 222 <indexterm zone="ch-scripts-bootscripts template-bootscripts"><primary sortas="d-template">template</primary></indexterm> 223 </listitem> 224 </varlistentry> 225 226 <varlistentry id="udev-bootscripts"> 227 <term><command>udev</command></term> 228 <listitem> 229 <para>Prepares the <filename class="directory">/dev</filename> directory and 230 starts Udev</para> 231 <indexterm zone="ch-scripts-bootscripts udev-bootscripts"><primary sortas="d-udev">udev</primary></indexterm> 232 </listitem> 233 </varlistentry> 234 </variablelist> 235 236 </sect2> 50 </sect2> 51 52 <sect2 id="contents-bootscripts" role="content"> 53 <title>Contents of LFS-Bootscripts</title> 54 55 <segmentedlist> 56 <segtitle>Installed scripts</segtitle> 57 58 <seglistitem> 59 <seg>checkfs, cleanfs, console, functions, halt, hotplug, ifdown, ifup, 60 localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals, 61 setclock, static, swap, sysklogd, template, and udev</seg> 62 </seglistitem> 63 </segmentedlist> 64 65 <variablelist> 66 <bridgehead renderas="sect3">Short Descriptions</bridgehead> 67 <?dbfo list-presentation="list"?> 68 <?dbhtml list-presentation="table"?> 69 70 <varlistentry id="checkfs-bootscripts"> 71 <term><command>checkfs</command></term> 72 <listitem> 73 <para>Checks the integrity of the file systems before they are mounted 74 (with the exception of journal and network based file systems)</para> 75 <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts"> 76 <primary sortas="d-checkfs">checkfs</primary> 77 </indexterm> 78 </listitem> 79 </varlistentry> 80 81 <varlistentry id="cleanfs-bootscripts"> 82 <term><command>cleanfs</command></term> 83 <listitem> 84 <para>Removes files that should not be preserved between reboots, such 85 as those in <filename class="directory">/var/run/</filename> and 86 <filename class="directory">/var/lock/</filename>; it re-creates 87 <filename>/var/run/utmp</filename> and removes the possibly present 88 <filename>/etc/nologin</filename>, <filename>/fastboot</filename>, and 89 <filename>/forcefsck</filename> files</para> 90 <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts"> 91 <primary sortas="d-cleanfs">cleanfs</primary> 92 </indexterm> 93 </listitem> 94 </varlistentry> 95 96 <varlistentry id="console-bootscripts"> 97 <term><command>console</command></term> 98 <listitem> 99 <para>Loads the correct keymap table for the desired keyboard layout; 100 it also sets the screen font</para> 101 <indexterm zone="ch-scripts-bootscripts console-bootscripts"> 102 <primary sortas="d-console">console</primary> 103 </indexterm> 104 </listitem> 105 </varlistentry> 106 107 <varlistentry id="functions-bootscripts"> 108 <term><command>functions</command></term> 109 <listitem> 110 <para>Contains common functions, such as error and status checking, 111 that are used by several bootscripts</para> 112 <indexterm zone="ch-scripts-bootscripts functions-bootscripts"> 113 <primary sortas="d-functions">functions</primary> 114 </indexterm> 115 </listitem> 116 </varlistentry> 117 118 <varlistentry id="halt-bootscripts"> 119 <term><command>halt</command></term> 120 <listitem> 121 <para>Halts the system</para> 122 <indexterm zone="ch-scripts-bootscripts halt-bootscripts"> 123 <primary sortas="d-halt">halt</primary> 124 </indexterm> 125 </listitem> 126 </varlistentry> 127 128 <varlistentry id="hotplug-bootscripts"> 129 <term><command>hotplug</command></term> 130 <listitem> 131 <para>Loads modules for system devices</para> 132 <indexterm zone="ch-scripts-bootscripts hotplug-bootscripts"> 133 <primary sortas="d-hotplug">hotplug</primary> 134 </indexterm> 135 </listitem> 136 </varlistentry> 137 138 <varlistentry id="ifdown-bootscripts"> 139 <term><command>ifdown</command></term> 140 <listitem> 141 <para>Assists the network script with stopping network devices</para> 142 <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts"> 143 <primary sortas="d-ifdown">ifdown</primary> 144 </indexterm> 145 </listitem> 146 </varlistentry> 147 148 <varlistentry id="ifup-bootscripts"> 149 <term><command>ifup</command></term> 150 <listitem> 151 <para>Assists the network script with starting network devices</para> 152 <indexterm zone="ch-scripts-bootscripts ifup-bootscripts"> 153 <primary sortas="d-ifup">ifup</primary> 154 </indexterm> 155 </listitem> 156 </varlistentry> 157 158 <varlistentry id="localnet-bootscripts"> 159 <term><command>localnet</command></term> 160 <listitem> 161 <para>Sets up the system's hostname and local loopback device</para> 162 <indexterm zone="ch-scripts-bootscripts localnet-bootscripts"> 163 <primary sortas="d-localnet">localnet</primary> 164 </indexterm> 165 </listitem> 166 </varlistentry> 167 168 <varlistentry id="mountfs-bootscripts"> 169 <term><command>mountfs</command></term> 170 <listitem> 171 <para>Mounts all file systems, except ones that are marked 172 <emphasis>noauto</emphasis> or are network based</para> 173 <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts"> 174 <primary sortas="d-mountfs">mountfs</primary> 175 </indexterm> 176 </listitem> 177 </varlistentry> 178 179 <varlistentry id="mountkernfs-bootscripts"> 180 <term><command>mountkernfs</command></term> 181 <listitem> 182 <para>Mounts virtual kernel file systems, such as <systemitem 183 class="filesystem">proc</systemitem></para> 184 <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts"> 185 <primary sortas="d-mountkernfs">mountkernfs</primary> 186 </indexterm> 187 </listitem> 188 </varlistentry> 189 190 <varlistentry id="network-bootscripts"> 191 <term><command>network</command></term> 192 <listitem> 193 <para>Sets up network interfaces, such as network cards, and sets up 194 the default gateway (where applicable)</para> 195 <indexterm zone="ch-scripts-bootscripts network-bootscripts"> 196 <primary sortas="d-network">network</primary> 197 </indexterm> 198 </listitem> 199 </varlistentry> 200 201 <varlistentry id="rc-bootscripts"> 202 <term><command>rc</command></term> 203 <listitem> 204 <para>The master run-level control script; it is responsible for 205 running all the other bootscripts one-by-one, in a sequence determined 206 by the name of the symbolic links being processed</para> 207 <indexterm zone="ch-scripts-bootscripts rc-bootscripts"> 208 <primary sortas="d-rc">rc</primary> 209 </indexterm> 210 </listitem> 211 </varlistentry> 212 213 <varlistentry id="reboot-bootscripts"> 214 <term><command>reboot</command></term> 215 <listitem> 216 <para>Reboots the system</para> 217 <indexterm zone="ch-scripts-bootscripts reboot-bootscripts"> 218 <primary sortas="d-reboot">reboot</primary> 219 </indexterm> 220 </listitem> 221 </varlistentry> 222 223 <varlistentry id="sendsignals-bootscripts"> 224 <term><command>sendsignals</command></term> 225 <listitem> 226 <para>Makes sure every process is terminated before the system reboots 227 or halts</para> 228 <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts"> 229 <primary sortas="d-sendsignals">sendsignals</primary> 230 </indexterm> 231 </listitem> 232 </varlistentry> 233 234 <varlistentry id="setclock-bootscripts"> 235 <term><command>setclock</command></term> 236 <listitem> 237 <para>Resets the kernel clock to local time in case the hardware clock 238 is not set to UTC time</para> 239 <indexterm zone="ch-scripts-bootscripts setclock-bootscripts"> 240 <primary sortas="d-setclock">setclock</primary> 241 </indexterm> 242 </listitem> 243 </varlistentry> 244 245 <varlistentry id="static-bootscripts"> 246 <term><command>static</command></term> 247 <listitem> 248 <para>Provides the functionality needed to assign a static Internet 249 Protocol (IP) address to a network interface</para> 250 <indexterm zone="ch-scripts-bootscripts static-bootscripts"> 251 <primary sortas="d-static">static</primary> 252 </indexterm> 253 </listitem> 254 </varlistentry> 255 256 <varlistentry id="swap-bootscripts"> 257 <term><command>swap</command></term> 258 <listitem> 259 <para>Enables and disables swap files and partitions</para> 260 <indexterm zone="ch-scripts-bootscripts swap-bootscripts"> 261 <primary sortas="d-swap">swap</primary> 262 </indexterm> 263 </listitem> 264 </varlistentry> 265 266 <varlistentry id="sysklogd-bootscripts"> 267 <term><command>sysklogd</command></term> 268 <listitem> 269 <para>Starts and stops the system and kernel log daemons</para> 270 <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts"> 271 <primary sortas="d-sysklogd">sysklogd</primary> 272 </indexterm> 273 </listitem> 274 </varlistentry> 275 276 <varlistentry id="template-bootscripts"> 277 <term><command>template</command></term> 278 <listitem> 279 <para>A template to create custom bootscripts for other 280 daemons</para> 281 <indexterm zone="ch-scripts-bootscripts template-bootscripts"> 282 <primary sortas="d-template">template</primary> 283 </indexterm> 284 </listitem> 285 </varlistentry> 286 287 <varlistentry id="udev-bootscripts"> 288 <term><command>udev</command></term> 289 <listitem> 290 <para>Prepares the <filename class="directory">/dev</filename> 291 directory and starts Udev</para> 292 <indexterm zone="ch-scripts-bootscripts udev-bootscripts"> 293 <primary sortas="d-udev">udev</primary> 294 </indexterm> 295 </listitem> 296 </varlistentry> 297 298 </variablelist> 299 300 </sect2> 237 301 238 302 </sect1> 239
Note:
See TracChangeset
for help on using the changeset viewer.