mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 06:27:16 +08:00
Added blfs-bootscripts-2004-05-15
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2157 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
ff3b4cd839
commit
34598aee42
@ -2,9 +2,9 @@
|
||||
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
||||
"/usr/share/docbook/docbookx.dtd" [
|
||||
|
||||
<!ENTITY version "CVS-20040513">
|
||||
<!ENTITY releasedate "May 13th, 2004">
|
||||
<!ENTITY pubdate "2004-05-13">
|
||||
<!ENTITY version "CVS-20040515">
|
||||
<!ENTITY releasedate "May 15th, 2004">
|
||||
<!ENTITY pubdate "2004-05-15">
|
||||
<!ENTITY blfs-version "cvs">
|
||||
|
||||
<!ENTITY % book SYSTEM "book/book.ent">
|
||||
|
@ -1,19 +1,26 @@
|
||||
<sect1 id="intro-important-bootscripts" xreflabel="lfs-bootscripts">
|
||||
<sect1 id="intro-important-bootscripts" xreflabel="blfs-bootscripts-&blfs-bootscripts-version;">
|
||||
<?dbhtml filename="bootscripts.html"?>
|
||||
<title><acronym>LFS</acronym> Boot Scripts</title>
|
||||
<title><acronym>BLFS</acronym> Boot Scripts</title>
|
||||
|
||||
<para>The lfs-bootscripts package that was used in <acronym>LFS</acronym> also
|
||||
contains bootscripts for <acronym>BLFS</acronym>.
|
||||
<para>The BLFS Bootscripts package contains the init scripts that are
|
||||
used throughout the book. It is assumed that you will be using the blfs-bootscripts
|
||||
package in conjuction with a compatible lfs-bootscripts package.
|
||||
Refer to <ulink url="&lfs-root;/chapter07/bootscripts.html"/> for more
|
||||
information on the lfs-bootscripts package.</para>
|
||||
|
||||
<para>The lfs-bootscripts package will be used throughout the <acronym>BLFS</acronym>
|
||||
the book for startup scripts. Unlike <acronym>LFS</acronym>, each init script
|
||||
has a seperate install target in the lfs-bootscrits package.
|
||||
<sect3><title>Package information</title>
|
||||
<itemizedlist spacing='compact'>
|
||||
<listitem><para>Download: <ulink url="&blfs-bootscripts-download;"/></para></listitem>
|
||||
</itemizedlist>
|
||||
</sect3>
|
||||
|
||||
<para>The blfs-bootscripts package will be used throughout the <acronym>BLFS</acronym>
|
||||
book for startup scripts. Unlike <acronym>LFS</acronym>, each init script
|
||||
has a seperate install target in the blfs-bootscrits package.
|
||||
It is recomended you keep the package
|
||||
source directory around until completion of your
|
||||
<acronym>BLFS</acronym> system. When a script is requested from
|
||||
lfs-bootscritps, simply change to the directory and execute the given
|
||||
blfs-bootscritps, simply change to the directory and execute the given
|
||||
<command>make install-<init-script></command> command. This command installs the
|
||||
init script to its proper location (along with any auxillary configuration
|
||||
scripts) and also creates the appropriate symlinks to start and stop the
|
||||
|
@ -1,5 +1,8 @@
|
||||
<!ENTITY introduction SYSTEM "introduction.xml">
|
||||
|
||||
<!ENTITY blfs-bootscripts-version "2004-05-14">
|
||||
<!ENTITY blfs-bootscripts-download "&downloads-root;/blfs-bootscripts-&blfs-bootscripts-version;.tar.bz2">
|
||||
|
||||
<!ENTITY intro-welcome SYSTEM "welcome/welcome.xml">
|
||||
<!ENTITY intro-welcome-conventions SYSTEM "welcome/conventions.xml">
|
||||
<!ENTITY intro-welcome-version SYSTEM "welcome/version.xml">
|
||||
|
@ -11,6 +11,9 @@ who wrote what.</para>
|
||||
|
||||
<itemizedlist>
|
||||
|
||||
<listitem><para>May 15th, 2004 [tushar]: Genesis of the blfs-bootscripts
|
||||
package.</para></listitem>
|
||||
|
||||
<listitem><para>May 13th, 2004 [tushar]: Improved which script as per
|
||||
Matthias Benkmann.</para></listitem>
|
||||
|
||||
|
@ -175,104 +175,11 @@ At this point, if everything has been successful so far, you can feel
|
||||
fairly confident in the installation and configuration of the package.
|
||||
</para>
|
||||
|
||||
<!--
|
||||
<para>Install <filename>/etc/rc.d/init.d/heimdal</filename> init script
|
||||
included in the <xref linkend="intro-important-bootscripts"/>
|
||||
package.</para>
|
||||
|
||||
<screen><userinput><command>make install-heimdal</command></userinput></screen>
|
||||
-->
|
||||
|
||||
<para>
|
||||
To automate the running of Kerberos server and
|
||||
<command>kpasswdd</command> daemon, use the following command to create
|
||||
the init.d script:
|
||||
</para>
|
||||
|
||||
<screen><userinput><command>cat >etc/rc.d/init.d/heimdal << "EOF"</command>
|
||||
#!/bin/sh
|
||||
# Begin $rc_base/init.d/heimdal
|
||||
|
||||
# Based on sysklogd script from LFS-3.1 and earlier.
|
||||
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
|
||||
# Heimdal bootscript submitted by Randy McMurchy <LFS-User_at_mcmurchy_dot_com>
|
||||
|
||||
. /etc/sysconfig/rc
|
||||
. $rc_functions
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo "Starting KDC Server Daemon..."
|
||||
if test -f "/var/run/kdc.pid"
|
||||
then
|
||||
print_status warning running
|
||||
else
|
||||
/usr/sbin/kdc &
|
||||
sleep 1
|
||||
if test -f "/var/run/kdc.pid"
|
||||
then
|
||||
print_status success
|
||||
else
|
||||
print_status failure
|
||||
fi
|
||||
fi
|
||||
echo "Starting KDC kpasswdd Daemon..."
|
||||
if test -f "/var/run/kpasswdd.pid"
|
||||
then
|
||||
print_status warning running
|
||||
else
|
||||
/usr/sbin/kpasswdd &
|
||||
sleep 1
|
||||
if test -f "/var/run/kpasswdd.pid"
|
||||
then
|
||||
print_status success
|
||||
else
|
||||
print_status failure
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
||||
stop)
|
||||
echo "Stopping KDC kpasswdd Daemon..."
|
||||
killproc /usr/sbin/kpasswdd
|
||||
echo "Stopping KDC Server Daemon..."
|
||||
killproc /usr/sbin/kdc
|
||||
;;
|
||||
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
|
||||
status)
|
||||
statusproc /usr/sbin/kdc
|
||||
statusproc /usr/sbin/kpasswdd
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|status}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# End $rc_base/init.d/heimdal
|
||||
<command>EOF
|
||||
chmod 754 /etc/rc.d/init.d/heimdal</command></userinput></screen>
|
||||
|
||||
<para>
|
||||
Create the symbolic links to this file in the relevant <filename
|
||||
class="directory">rc.d</filename> directory with the following commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput><command>cd /etc/rc.d/init.d &&
|
||||
ln -sf ../init.d/heimdal ../rc0.d/K42heimdal &&
|
||||
ln -sf ../init.d/heimdal ../rc1.d/K42heimdal &&
|
||||
ln -sf ../init.d/heimdal ../rc2.d/K42heimdal &&
|
||||
ln -sf ../init.d/heimdal ../rc3.d/S28heimdal &&
|
||||
ln -sf ../init.d/heimdal ../rc4.d/S28heimdal &&
|
||||
ln -sf ../init.d/heimdal ../rc5.d/S28heimdal &&
|
||||
ln -sf ../init.d/heimdal ../rc6.d/K42heimdal</command></userinput></screen>
|
||||
|
||||
</sect4>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user