diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2011-09-19 03:31:46 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2011-09-19 03:31:46 +0000 |
commit | f874424cabc59e63f2458c25527f7c18632194a9 (patch) | |
tree | dc5398d63d6102961238625576578de5f3772665 /chapter07 | |
parent | 103bbd63fe104a52e181da0653c43212b990f5e6 (diff) |
Rename /etc/sysconfig/init_params to /etc/sysconfig/rc.site.
Move network services to /lib/services.
Move init-functions to /lib/lsb.
Make /lib/lsb a symlink to /lib/services.
Create convenience symlink /etc/init.d->/etc/rc.d/init.d
Add help and man pages to ifup/ifdown.
Append /run/var/bootlog to /var/log/boot.log at the end of
the boot sequence.
Add capability to step through the boot scripts at boot time.
Optionally allow environment variables in sysconfig directory's
console, network, and clock files to be placed in rc.site.
Add an optional FASTBOOT parameter to set /fastboot when rebooting.
Remove a minor warning message from udev that is triggered
by the udev_retry boot script.
Add SKIPTMPCLEAN as an optional parameter to skip cleaning /tmp at boot time.
Add a page to Chapter 7 documenting rc.site.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9597 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07')
-rw-r--r-- | chapter07/bootscripts.xml | 3 | ||||
-rw-r--r-- | chapter07/chapter07.xml | 1 | ||||
-rw-r--r-- | chapter07/network.xml | 2 | ||||
-rw-r--r-- | chapter07/setclock.xml | 2 | ||||
-rw-r--r-- | chapter07/site.xml | 35 | ||||
-rw-r--r-- | chapter07/sysklogd.xml | 4 | ||||
-rw-r--r-- | chapter07/usage.xml | 4 |
7 files changed, 44 insertions, 7 deletions
diff --git a/chapter07/bootscripts.xml b/chapter07/bootscripts.xml index 151706572..802012b30 100644 --- a/chapter07/bootscripts.xml +++ b/chapter07/bootscripts.xml @@ -58,7 +58,8 @@ ifup, localnet, modules, mountfs, mountkernfs, network, rc, reboot, sendsignals, setclock, static, swap, sysctl, sysklogd, template, udev, and udev_retry</seg> - <seg>/etc/rc.d, /etc/sysconfig, /lib/boot</seg> + <seg>/etc/rc.d, /etc/init.d (symbolic link), /etc/sysconfig, + /lib/services, /lib/lsb (symbolic link)</seg> </seglistitem> </segmentedlist> diff --git a/chapter07/chapter07.xml b/chapter07/chapter07.xml index dbf20b74d..d312ef9ad 100644 --- a/chapter07/chapter07.xml +++ b/chapter07/chapter07.xml @@ -22,6 +22,7 @@ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="setclock.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="console.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sysklogd.xml"/> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="site.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="profile.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="inputrc.xml"/> diff --git a/chapter07/network.xml b/chapter07/network.xml index a13af483d..8bb099adf 100644 --- a/chapter07/network.xml +++ b/chapter07/network.xml @@ -157,7 +157,7 @@ EOF</userinput></screen> <para>The <envar>SERVICE</envar> variable defines the method used for obtaining the IP address. The LFS-Bootscripts package has a modular IP assignment format, and creating additional files in the <filename - class="directory">/lib/boot/</filename> directory allows other IP + class="directory">/lib/services/</filename> directory allows other IP assignment methods. This is commonly used for Dynamic Host Configuration Protocol (DHCP), which is addressed in the BLFS book.</para> diff --git a/chapter07/setclock.xml b/chapter07/setclock.xml index 8acd27e54..f8a03579b 100644 --- a/chapter07/setclock.xml +++ b/chapter07/setclock.xml @@ -63,6 +63,6 @@ EOF</userinput></screen> time zones, UTC, and the <envar>TZ</envar> environment variable.</para> <note><para>The CLOCKPARAMS and UTC paramaters may be alternatively set - in the <filename>/etc/sysconfig/init_params</filename> file.</para></note> + in the <filename>/etc/sysconfig/rc.site</filename> file.</para></note> </sect1> diff --git a/chapter07/site.xml b/chapter07/site.xml new file mode 100644 index 000000000..8c36fe0b8 --- /dev/null +++ b/chapter07/site.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ + <!ENTITY % general-entities SYSTEM "../general.ent"> + <!ENTITY site SYSTEM "../appendices/rc.site.script"> + %general-entities; +]> + +<sect1 id="ch-scripts-site"> + <?dbhtml filename="site.html"?> + + <title>The rc.site File</title> + + <indexterm zone="ch-scripts-site"> + <primary sortas="a-rc.site">rc.site</primary> + </indexterm> + + <para>The optional <filename>/etc/sysconfig/rc.site</filename> file contains + settings that are automatically set for each boot script. It can alternatively + set the values specified in the <filename>hostname</filename>, + <filename>console</filename>, and <filename>clock</filename> files in the + <filename class='directory'>/etc/sysconfig/</filename> directory. If the + associated variables are present in both these separate files and + <filename>rc.site</filename>, the values in the script specific files have + precedence. </para> + + <para><filename>rc.site</filename> also contains parameters that can + customize other aspects of the boot process. Setting the IPROMPT variable + will enable selective running of bootscripts. Other options are described + in the file comments. The default version of the file is as follows:</para> + + <screen>&site;</screen> + +</sect1> + diff --git a/chapter07/sysklogd.xml b/chapter07/sysklogd.xml index fe5de2503..c2d784b67 100644 --- a/chapter07/sysklogd.xml +++ b/chapter07/sysklogd.xml @@ -19,8 +19,8 @@ <command>syslogd</command> program with the <parameter>-m 0</parameter> option. This option turns off the periodic timestamp mark that <command>syslogd</command> writes to the log files every 20 minutes by - default. If you want to turn on this periodic timestamp mark, create or edit - <filename>/etc/sysconfig/init_params</filename> and define the variable + default. If you want to turn on this periodic timestamp mark, edit + <filename>/etc/sysconfig/rc.site</filename> and define the variable SYSKLOGD_PARMS to the desired value. For instance, to remove all parameters, set the variable to a null value:</para> diff --git a/chapter07/usage.xml b/chapter07/usage.xml index a679381c5..a40ce3be8 100644 --- a/chapter07/usage.xml +++ b/chapter07/usage.xml @@ -59,7 +59,7 @@ id:3:initdefault: -si::sysinit:/etc/rc.d/init.d/rc sysinit +si::sysinit:/etc/rc.d/init.d/rc S l0:0:wait:/etc/rc.d/init.d/rc 0 l1:S1:wait:/etc/rc.d/init.d/rc 1 @@ -93,7 +93,7 @@ EOF</userinput></screen> mark is specified by the initdefault value.</para> <para>As a convenience, the <command>rc</command> script reads a library of - functions in <filename class="directory">/lib/boot/functions</filename>. + functions in <filename class="directory">/lib/lsb/init-functions</filename>. This library also reads an optional configuration file, <filename>/etc/sysconfig/init_params</filename>. Any of the system configuration file parameters described in subsequent sections can be |