aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07
diff options
context:
space:
mode:
Diffstat (limited to 'chapter07')
-rw-r--r--chapter07/bootscripts.xml3
-rw-r--r--chapter07/chapter07.xml1
-rw-r--r--chapter07/network.xml2
-rw-r--r--chapter07/setclock.xml2
-rw-r--r--chapter07/site.xml35
-rw-r--r--chapter07/sysklogd.xml4
-rw-r--r--chapter07/usage.xml4
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