cvs commit: BLFS/BOOK/server/other/xinetd xinetd-config.xml

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Sat Mar 27 17:46:42 PST 2004


tushar      04/03/27 18:46:42

  Modified:    BOOK/content/databases/mysql mysql-config.xml
               BOOK/content/databases/postgresql postgresql-config.xml
               BOOK/introduction/welcome changelog.xml
               BOOK/server/other/bind bind-config.xml bind-intro.xml
               BOOK/server/other/dhcp dhcp-config.xml
               BOOK/server/other/openssh openssh-config.xml
               BOOK/server/other/rsync rsync-config.xml
               BOOK/server/other/samba samba-config.xml
               BOOK/server/other/xinetd xinetd-config.xml
  Log:
  More2 bootscript changes
  
  Revision  Changes    Path
  1.20      +4 -97     BLFS/BOOK/content/databases/mysql/mysql-config.xml
  
  Index: mysql-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/content/databases/mysql/mysql-config.xml,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -u -r1.19 -r1.20
  --- mysql-config.xml	23 Mar 2004 13:48:47 -0000	1.19
  +++ mysql-config.xml	28 Mar 2004 01:46:41 -0000	1.20
  @@ -56,103 +56,10 @@
   
   <screen><userinput><command>mysqladmin -p shutdown</command></userinput></screen>
   
  -<para>To automate the running of <application>My<acronym>SQL</acronym></application>, use the following command to create
  -the init.d script:</para>
  -
  -<screen><userinput><command>cat > /etc/rc.d/init.d/mysql << "EOF"</command>
  -#!/bin/sh
  -# Begin $rc_base/init.d/
  -
  -# Based on sysklogd script from LFS-3.1 and earlier.
  -# Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  -
  -. /etc/sysconfig/rc
  -. $rc_functions
  -
  -pid_file=/var/lib/mysql/`/bin/hostname`.pid
  -
  -case "$1" in
  -        start)
  -                echo "Starting MySQL daemon..."
  -                failure=0
  -                if test -f "$pid_file"
  -                then
  -                    if /bin/ps p `cat $pid_file` | grep mysqld >/dev/null
  -                    then
  -                        print_status warning running
  -                        exit 0
  -                    else
  -                        rm -f $pid_file
  -                        if test -f $pid_file
  -                        then
  -                            failure=1
  -                        fi
  -                    fi
  -                fi
  -                if [ $failure = 1 ]
  -                then
  -                    print_status failure
  -                else
  -                    /usr/bin/mysqld_safe --user=mysql 2>&1 >/dev/null &
  -                    evaluate_retval
  -                fi
  -                ;;
  -
  -        stop)
  -                echo "Stopping MySQL daemon..."
  -                if test -s "$pid_file"
  -                then
  -                    kill `cat $pid_file`
  -                    sleep 1
  -                    failure=0
  -                    while [ -s $pid_file -a "$flags" != aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ]
  -                    do
  -                        [ -z "$flags" ]
  -                        flags=a$flags
  -                        sleep 1
  -                    done
  -                    if [ -s $pid_file ]
  -                        then failure=1
  -                    fi
  -                    (exit $failure)
  -                    evaluate_retval
  -                else
  -                    print_status warning not_running
  -                fi
  -                ;;
  -
  -        restart)
  -                $0 stop
  -                sleep 1
  -                $0 start
  -                ;;
  -
  -        status)
  -                statusproc /usr/sbin/mysqld
  -                ;;
  -
  -        *)
  -                echo "Usage: $0 {start|stop|restart|status}"
  -                exit 1
  -                ;;
  -esac
  -
  -# End $rc_base/init.d/
  -<command>EOF
  -chmod 755 /etc/rc.d/init.d/mysql</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/mysql ../rc0.d/K26mysql &&
  -ln -sf ../init.d/mysql ../rc1.d/K26mysql &&
  -ln -sf ../init.d/mysql ../rc2.d/K26mysql &&
  -ln -sf ../init.d/mysql ../rc3.d/S34mysql &&
  -ln -sf ../init.d/mysql ../rc4.d/S34mysql &&
  -ln -sf ../init.d/mysql ../rc5.d/S34mysql &&
  -ln -sf ../init.d/mysql ../rc6.d/K26mysql</command></userinput></screen>
  +<para>Install <filename>/etc/rc.d/init.d/mysql</filename>
  +init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
  +                                                                                                                
  +<screen><userinput><command>make install-mysql</command></userinput></screen>
   
   </sect3>
   
  
  
  
  1.4       +4 -58     BLFS/BOOK/content/databases/postgresql/postgresql-config.xml
  
  Index: postgresql-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/content/databases/postgresql/postgresql-config.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -u -r1.3 -r1.4
  --- postgresql-config.xml	8 Feb 2004 17:08:32 -0000	1.3
  +++ postgresql-config.xml	28 Mar 2004 01:46:41 -0000	1.4
  @@ -14,64 +14,10 @@
   each can be found in <ulink
   url="file:///usr/share/doc/postgresql/html/index.html"/>.</para>
   
  -<para>Create the boot script with the following: </para>
  -
  -<screen><userinput><command>cat > /etc/rc.d/init.d/postgresql << "EOF"</command>
  -#!/bin/sh
  -# Begin $rc_base/init.d/postgresql
  -
  -# Based on sysklogd script from LFS-3.1 and earlier.
  -# Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  -
  -. /etc/sysconfig/rc
  -. $rc_functions
  -
  -case "$1" in
  -        start)
  -                echo "Starting PostgreSQL daemon..."
  -                su - postgres -c '/usr/bin/pg_ctl start -W -D /var/pgsql/data \
  -                               -l /var/pgsql/data/logfile -o "-i" '
  -                evaluate_retval
  -                ;;
  -
  -        stop)
  -                echo "Stopping PostgreSQL daemon..."
  -                /usr/bin/pg_ctl stop -m smart -D /var/pgsql/data
  -                evaluate_retval
  -                ;;
  -
  -        restart)
  -                $0 stop
  -                sleep 1
  -                $0 start
  -                ;;
  -
  -        status)
  -                /usr/bin/pg_ctl status -D /var/pgsql/data
  -                ;;
  -
  -        *)
  -                echo "Usage: $0 {start|stop|restart|status}"
  -                exit 1
  -                ;;
  -esac
  -
  -# End $rc_base/init.d/
  -<command>EOF
  -chmod 755 /etc/rc.d/init.d/postgresql</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/postgresql ../rc0.d/K26postgresql &&
  -ln -sf ../init.d/postgresql ../rc1.d/K26postgresql &&
  -ln -sf ../init.d/postgresql ../rc2.d/K26postgresql &&
  -ln -sf ../init.d/postgresql ../rc3.d/S34postgresql &&
  -ln -sf ../init.d/postgresql ../rc4.d/S34postgresql &&
  -ln -sf ../init.d/postgresql ../rc5.d/S34postgresql &&
  -ln -sf ../init.d/postgresql ../rc6.d/K26postgresql</command></userinput></screen>
  +<para>Install <filename>/etc/rc.d/init.d/postgresql</filename>
  +init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
  +                                                                                                                
  +<screen><userinput><command>make install-postgresql</command></userinput></screen>
   
   </sect3>
   
  
  
  
  1.1029    +3 -0      BLFS/BOOK/introduction/welcome/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/introduction/welcome/changelog.xml,v
  retrieving revision 1.1028
  retrieving revision 1.1029
  diff -u -u -r1.1028 -r1.1029
  --- changelog.xml	27 Mar 2004 07:16:15 -0000	1.1028
  +++ changelog.xml	28 Mar 2004 01:46:41 -0000	1.1029
  @@ -11,6 +11,9 @@
   
   <itemizedlist>
   
  +<listitem><para>March 27th, 2004 [tushar]: Updated mysql, postgresql, bind, dhcp
  +openssh, rsync, samba and xinetd to use lfs-bootscripts for init scripts.</para></listitem>
  +
   <listitem><para>March 27th, 2004 [tushar]: Added pico to the list of text editors.</para></listitem>
   
   <listitem><para>March 27th, 2004 [tushar]: Updated nfs, ntp, portmap,
  
  
  
  1.14      +4 -51     BLFS/BOOK/server/other/bind/bind-config.xml
  
  Index: bind-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/other/bind/bind-config.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -u -r1.13 -r1.14
  --- bind-config.xml	8 Feb 2004 00:50:22 -0000	1.13
  +++ bind-config.xml	28 Mar 2004 01:46:42 -0000	1.14
  @@ -149,57 +149,10 @@
   
   <screen><userinput><command>chown -R named.named /home/named</command></userinput></screen>
   
  -<para>Create the <application><acronym>BIND</acronym></application>
  -boot script:</para>
  -
  -<screen><userinput><command>cat > /etc/rc.d/init.d/bind << "EOF"</command>
  -#!/bin/sh
  -# Begin $rc_base/init.d/bind
  -# Based on sysklogd script from LFS-3.1 and earlier.
  -# Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  -. /etc/sysconfig/rc
  -. $rc_functions
  -case "$1" in
  -	start)
  -		echo "Starting named..."
  -		loadproc /usr/sbin/named -u named -t /home/named -c \
  -		        /etc/named.conf
  -		;;
  -	stop)
  -		echo "Stopping named..."
  -		killproc /usr/sbin/named
  -		;;
  -	restart)
  -		$0 stop
  -		sleep 1
  -		$0 start
  -		;;
  -   reload)
  -                echo "Reloading named..."
  -                /usr/sbin/rndc -c /etc/rndc.conf reload
  -                ;;
  -			       		
  -	status)
  -		statusproc /usr/sbin/named
  -		;;
  -	*)
  -		echo "Usage: $0 {start|stop|restart|status}"
  -		exit 1
  -		;;
  -esac
  -# End $rc_base/init.d/bind
  -<command>EOF</command></userinput></screen>
  -
  -<para>Add the run level symlinks:</para>
  -
  -<screen><userinput><command>chmod 754 /etc/rc.d/init.d/bind &&
  -ln -s  /etc/rc.d/init.d/bind /etc/rc.d/rc0.d/K49bind &&
  -ln -s  /etc/rc.d/init.d/bind /etc/rc.d/rc1.d/K49bind &&
  -ln -s  /etc/rc.d/init.d/bind /etc/rc.d/rc2.d/K49bind &&
  -ln -s  /etc/rc.d/init.d/bind /etc/rc.d/rc3.d/S22bind &&
  -ln -s  /etc/rc.d/init.d/bind /etc/rc.d/rc4.d/S22bind &&
  -ln -s  /etc/rc.d/init.d/bind /etc/rc.d/rc5.d/S22bind &&
  -ln -s  /etc/rc.d/init.d/bind /etc/rc.d/rc6.d/K49bind</command></userinput></screen>
  +<para>To start the DNS server at boot, install <filename>/etc/rc.d/init.d/bind</filename>
  +init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
  +                                                                                                                
  +<screen><userinput><command>make install-bind</command></userinput></screen>
   
   <para>Now start <application><acronym>BIND</acronym></application> with
   the new boot script:</para>
  
  
  
  1.4       +2 -1      BLFS/BOOK/server/other/bind/bind-intro.xml
  
  Index: bind-intro.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/other/bind/bind-intro.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -u -r1.3 -r1.4
  --- bind-intro.xml	2 Dec 2003 11:41:23 -0000	1.3
  +++ bind-intro.xml	28 Mar 2004 01:46:42 -0000	1.4
  @@ -2,7 +2,8 @@
   <title>Introduction to <application><acronym>BIND</acronym></application></title>
   
   <para>The <application><acronym>BIND</acronym></application> package
  -provides a <acronym>DNS</acronym> server and client utilities.</para>
  +provides a <acronym>DNS</acronym> server and client utilities. If you
  +are only interested in the utilities, refer to the <xref linkend="bind-utils"/>.</para>
   
   <sect3><title>Package information</title>
   <itemizedlist spacing='compact'>
  
  
  
  1.10      +6 -49     BLFS/BOOK/server/other/dhcp/dhcp-config.xml
  
  Index: dhcp-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/other/dhcp/dhcp-config.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -u -r1.9 -r1.10
  --- dhcp-config.xml	8 Feb 2004 00:50:22 -0000	1.9
  +++ dhcp-config.xml	28 Mar 2004 01:46:42 -0000	1.10
  @@ -10,59 +10,16 @@
   <para>Information on configuring the <acronym>DHCP</acronym> client can be 
   found in Chapter 14.</para>
   
  -<para>Note that you only want to start the <acronym>DHCP</acronym> server if 
  +<para>Note that you only need the <acronym>DHCP</acronym> server if 
   you want to issue <acronym>LAN</acronym> addresses over your network.  The 
   <acronym>DHCP</acronym> client doesn't need this script to be used.  Also note 
   that this script is coded for the <emphasis role="strong">eth1</emphasis> 
  -interface, which may need to be modified for your hardware configuration. 
  -With that in mind the <application><acronym>DHCP</acronym></application> init.d script can be created
  -using the following commands.</para>
  +interface, which may need to be modified for your hardware configuration.</para>
   
  -<screen><userinput><command>cat > /etc/rc.d/init.d/dhcp << "EOF"</command>
  -#!/bin/sh
  -# Begin $rc_base/init.d/dhcp
  -
  -# Based on sysklogd script from LFS-3.1 and earlier.
  -# Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  -
  -. /etc/sysconfig/rc
  -. $rc_functions
  -
  -case "$1" in
  -        start)
  -                echo "Starting DHCP Server..."
  -                loadproc dhcpd -q eth1
  -                ;;
  -
  -        stop)
  -                echo "Stopping DHCP Server..."
  -                killproc dhcpd
  -                ;;
  -
  -        reload)
  -                echo "Reloading DHCP Server..."
  -                reloadproc dhcpd
  -                ;;
  -
  -        restart)
  -                $0 stop
  -                sleep 1
  -                $0 start
  -                ;;
  -
  -        status)
  -                statusproc dhcpd
  -                ;;
  -
  -        *)
  -                echo "Usage: $0 {start|stop|reload|restart|status}"
  -                exit 1
  -                ;;
  -esac
  -
  -# End $rc_base/init.d/dhcp
  -<command>EOF
  -chmod 755 /etc/rc.d/init.d/dhcp</command></userinput></screen>
  +<para>Install <filename>/etc/rc.d/init.d/dhcp</filename>
  +init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
  +                                                                                                                
  +<screen><userinput><command>make install-dhcp</command></userinput></screen>
   
   <para>The lease file must exist on startup.  The following command will
   satisfy that requirement:</para>
  
  
  
  1.11      +4 -64     BLFS/BOOK/server/other/openssh/openssh-config.xml
  
  Index: openssh-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/other/openssh/openssh-config.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -u -r1.10 -r1.11
  --- openssh-config.xml	11 Mar 2004 06:50:24 -0000	1.10
  +++ openssh-config.xml	28 Mar 2004 01:46:42 -0000	1.11
  @@ -14,70 +14,10 @@
   
   <sect3><title>sshd init.d script</title>
   
  -<para>Note that you only want to start the <command>sshd</command> server if 
  -you want to be able to <command>ssh</command> <emphasis>into</emphasis> your 
  -machine.  The <command>ssh</command> client doesn't need this script to be 
  -used.  Having said that, if you want to run the <command>ssh</command> daemon, 
  -the <application>Open<acronym>SSH</acronym></application> daemon init.d script can be created using the following 
  -commands:</para>
  -
  -<screen><userinput><command>cat > /etc/rc.d/init.d/sshd << "EOF"</command>
  -#!/bin/sh
  -# Begin $rc_base/init.d/sshd
  -
  -# Based on sysklogd script from LFS-3.1 and earlier.
  -# Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  -
  -. /etc/sysconfig/rc
  -. $rc_functions
  -
  -case "$1" in
  -    start)
  -	        echo "Starting SSH Server..."
  -	        loadproc /usr/sbin/sshd
  -	        ;;
  -
  -	stop)
  -	        echo "Stopping SSH Server..."
  -	        killproc /usr/sbin/sshd
  -	        ;;
  -
  -	reload)
  -	        echo "Reloading SSH Server..."
  -	        reloadproc /usr/sbin/sshd
  -	        ;;
  -	     
  -	restart)
  -	        $0 stop
  -	        sleep 1
  -	        $0 start
  -	        ;;
  -
  -	status)
  -	        statusproc /usr/sbin/sshd
  -	        ;;
  -
  -	*)
  -	        echo "Usage: $0 {start|stop|reload|restart|status}"
  -	        exit 1
  -	        ;;
  -esac
  -
  -# End $rc_base/init.d/sshd
  -<command>EOF
  -chmod 755 /etc/rc.d/init.d/sshd</command></userinput></screen>
  -
  -<para>Create the symbolic links to this file in the relevant <filename
  -class="directory">rc.d</filename> directories with the following
  -commands:</para>
  -<screen><userinput><command>cd /etc/rc.d/init.d &&
  -ln -sf ../init.d/sshd ../rc0.d/K30sshd &&
  -ln -sf ../init.d/sshd ../rc1.d/K30sshd &&
  -ln -sf ../init.d/sshd ../rc2.d/K30sshd &&
  -ln -sf ../init.d/sshd ../rc3.d/S30sshd &&
  -ln -sf ../init.d/sshd ../rc4.d/S30sshd &&
  -ln -sf ../init.d/sshd ../rc5.d/S30sshd &&
  -ln -sf ../init.d/sshd ../rc6.d/K30sshd</command></userinput></screen>
  +<para>To start the SSH Server at boot, install <filename>/etc/rc.d/init.d/sshd</filename>
  +init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
  +                                                                                                                
  +<screen><userinput><command>make install-sshd</command></userinput></screen>
   
   </sect3>
   
  
  
  
  1.7       +5 -60     BLFS/BOOK/server/other/rsync/rsync-config.xml
  
  Index: rsync-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/other/rsync/rsync-config.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -u -r1.6 -r1.7
  --- rsync-config.xml	8 Feb 2004 17:55:58 -0000	1.6
  +++ rsync-config.xml	28 Mar 2004 01:46:42 -0000	1.7
  @@ -33,67 +33,12 @@
   <para>Note that you only want to start the <application>rsync</application> 
   server if you want to provide a <application>rsync</application> archive on 
   your machine. The <application>rsync</application> client doesn't need this 
  -script to be used.  Having said that, if you want to run the <application>rsync
  -</application> daemon, the <application>rsync</application> daemon init.d script can be 
  -created using the following commands:</para>
  +script to be used.</para>
   
  -<screen><userinput><command>cat > /etc/rc.d/init.d/rsyncd << "EOF"</command>
  -#!/bin/sh
  -# Begin $rc_base/init.d/rsyncd
  -
  -# Based on sysklogd script from LFS-3.1 and earlier.
  -# Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  -
  -. /etc/sysconfig/rc
  -. $rc_functions
  -
  -case "$1" in
  -    start)
  -        echo "Starting RSYNC Server..."
  -        loadproc /usr/bin/rsync --daemon --compress
  -        ;;
  -
  -    stop)
  -        echo "Stopping RSYNC Server..."
  -        killproc /usr/bin/rsync
  -        ;;
  -
  -    reload)
  -        echo "Reloading RSYNC Server..."
  -        reloadproc /usr/bin/rsync
  -        ;;
  -            
  -    restart)
  -        $0 stop
  -        sleep 1
  -        $0 start
  -        ;;
  -
  -    status)
  -        statusproc /usr/bin/rsync
  -        ;;
  -
  -    *)
  -        echo "Usage: $0 {start|stop|reload|restart|status}"
  -        exit 1
  -        ;;
  -esac
  -
  -# End $rc_base/init.d/rsyncd
  -<command>EOF
  -chmod 755 /etc/rc.d/init.d/rsyncd</command></userinput></screen>
  -
  -<para>Create the symbolic links to this file in the relevant
  -<filename class="directory">rc.d</filename> directories with the following
  -commands:</para>
  -<screen><userinput><command>cd /etc/rc.d/init.d &&
  -ln -sf ../init.d/rsyncd ../rc0.d/K30rsyncd &&
  -ln -sf ../init.d/rsyncd ../rc1.d/K30rsyncd &&
  -ln -sf ../init.d/rsyncd ../rc2.d/K30rsyncd &&
  -ln -sf ../init.d/rsyncd ../rc3.d/S30rsyncd &&
  -ln -sf ../init.d/rsyncd ../rc4.d/S30rsyncd &&
  -ln -sf ../init.d/rsyncd ../rc5.d/S30rsyncd &&
  -ln -sf ../init.d/rsyncd ../rc6.d/K30rsyncd</command></userinput></screen>
  +<para>Install <filename>/etc/rc.d/init.d/rsyncd</filename>
  +init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
  +                                                                                                                
  +<screen><userinput><command>make install-rsyncd</command></userinput></screen>
   
   </sect3>
   
  
  
  
  1.17      +4 -52     BLFS/BOOK/server/other/samba/samba-config.xml
  
  Index: samba-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/other/samba/samba-config.xml,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -u -r1.16 -r1.17
  --- samba-config.xml	8 Feb 2004 00:50:23 -0000	1.16
  +++ samba-config.xml	28 Mar 2004 01:46:42 -0000	1.17
  @@ -68,58 +68,10 @@
   passwd -l win2kbox$ &&
   smbpasswd -a -m win2kbox</command></userinput></screen>
   
  -<para>Create the <application>Samba</application> boot script:</para>
  -<screen><userinput><command>cat > /etc/rc.d/init.d/samba << "EOF"</command>
  -#!/bin/sh
  -# Begin $rc_base/init.d/samba
  -# Based on sysklogd script from LFS-3.1 and earlier.
  -# Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  -. /etc/sysconfig/rc
  -. $rc_functions
  -case "$1" in
  -	start)
  -		echo "Starting nmbd..."
  -		loadproc /usr/sbin/nmbd -D
  -		echo "Starting smbd..."
  -		loadproc /usr/sbin/smbd -D
  -		;;
  -	stop)
  -		echo "Stopping smbd..."
  -		killproc /usr/sbin/smbd
  -		echo "Stopping nmbd..."
  -		killproc /usr/sbin/nmbd
  -		;;
  -	reload)
  -		echo "Reloading smbd..."
  -		reloadproc /usr/sbin/smbd
  -		echo "Reloading nmbd..."
  -		reloadproc /usr/sbin/nmbd
  -		;;
  -	restart)
  -		$0 stop
  -		sleep 1
  -		$0 start
  -		;;
  -	status)
  -		statusproc /usr/sbin/nmbd
  -		statusproc /usr/sbin/smbd
  -		;;
  -	*)
  -		echo "Usage: $0 {start|stop|reload|restart|status}"
  -		exit 1
  -		;;
  -esac
  -# End $rc_base/init.d/samba
  -<command>EOF</command></userinput></screen>
  -<para>Add the run level symlinks:</para>
  -<screen><userinput>chmod 754 /etc/rc.d/init.d/samba &&
  -ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc0.d/K48samba &&
  -ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc1.d/K48samba &&
  -ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc2.d/K48samba &&
  -ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc3.d/S24samba &&
  -ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc4.d/S24samba &&
  -ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc5.d/S24samba &&
  -ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc6.d/K48samba</userinput></screen>
  +<para>Install <filename>/etc/rc.d/init.d/samba</filename>
  +init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
  +                                                                                                                
  +<screen><userinput><command>make install-samba</command></userinput></screen>
   
   <para>Now, we'll use our new boot script to start <application>Samba
   </application>: </para>
  
  
  
  1.12      +5 -49     BLFS/BOOK/server/other/xinetd/xinetd-config.xml
  
  Index: xinetd-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/other/xinetd/xinetd-config.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -u -r1.11 -r1.12
  --- xinetd-config.xml	22 Mar 2004 16:47:41 -0000	1.11
  +++ xinetd-config.xml	28 Mar 2004 01:46:42 -0000	1.12
  @@ -9,7 +9,7 @@
   
   <sect3><title>Configuration Information</title>
   
  -<para>Insure the path to all daemons is <filename
  +<para>Insure the path to all daemons are in <filename
   class="directory">/usr/sbin</filename>, rather than the default path of
   <filename class="directory">/usr/etc</filename>:</para>
   
  @@ -20,54 +20,10 @@
   documented in the xinetd.conf man page. Further information can be
   found at <ulink url="http://www.xinetd.org"/>.</para>
   
  -<para>Create the <command>xinetd</command> boot script:</para>
  -
  -<screen><userinput><command>cat > /etc/rc.d/init.d/xinetd << "EOF"</command>
  -#!/bin/sh
  -# Begin $rc_base/init.d/xinetd
  -# Based on sysklogd script from LFS-3.1 and earlier.
  -# Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  -. /etc/sysconfig/rc
  -. $rc_functions
  -case "$1" in
  -	start)
  -		echo "Starting xinetd..."
  -		loadproc /usr/sbin/xinetd
  -		;;
  -	stop)
  -		echo "Stopping xinetd..."
  -		killproc /usr/sbin/xinetd
  -		;;
  -	reload)
  -		echo "Reloading xinetd..."
  -		killall -HUP xinetd
  -		;;
  -	restart)
  -		$0 stop
  -		sleep 1
  -		$0 start
  -		;;
  -	status)
  -		statusproc /usr/sbin/xinetd
  -		;;
  -	*)
  -		echo "Usage: $0 {start|stop|reload|restart|status}"
  -		exit 1
  -		;;
  -esac
  -# End $rc_base/init.d/xinetd
  -<command>EOF
  -chmod 754 /etc/rc.d/init.d/xinetd</command></userinput></screen>
  -
  -<para>Add the run level symlinks:</para>
  -
  -<screen><userinput><command>ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc0.d/K49xinetd &&
  -ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc1.d/K49xinetd &&
  -ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc2.d/K49xinetd &&
  -ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc3.d/S23xinetd &&
  -ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc4.d/S23xinetd &&
  -ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc5.d/S23xinetd &&
  -ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc6.d/K49xinetd</command></userinput></screen>
  +<para>Install <filename>/etc/rc.d/init.d/xinetd</filename>
  +init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
  +                                                                                                                
  +<screen><userinput><command>make install-xinetd</command></userinput></screen>
   
   <para>Now, we'll use our new boot script to start <command>xinetd</command>: </para>
   
  
  
  



More information about the blfs-book mailing list