cvs commit: BLFS/BOOK/server/mail/sendmail sendmail-config.xml

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Fri Mar 26 23:16:16 PST 2004


tushar      04/03/27 00:16:16

  Modified:    BOOK     index.xml
               BOOK/basicnet/netprogs/nfs-utils nfs-utils-config.xml
               BOOK/basicnet/netprogs/ntp ntp-config.xml
               BOOK/basicnet/netprogs/portmap portmap-config.xml
               BOOK/introduction/welcome changelog.xml
               BOOK/postlfs postlfs.ent
               BOOK/postlfs/editors editors.xml
               BOOK/server/mail/exim exim-config.xml
               BOOK/server/mail/postfix postfix-config.xml
               BOOK/server/mail/sendmail sendmail-config.xml
  Added:       BOOK/postlfs/editors pico.xml
  Log:
  More bootscript changes
  
  Revision  Changes    Path
  1.417     +2 -2      BLFS/BOOK/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/index.xml,v
  retrieving revision 1.416
  retrieving revision 1.417
  diff -u -u -r1.416 -r1.417
  --- index.xml	26 Mar 2004 10:57:17 -0000	1.416
  +++ index.xml	27 Mar 2004 07:16:14 -0000	1.417
  @@ -2,8 +2,8 @@
   <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
   			"/usr/share/docbook/docbookx.dtd" [
   
  -<!ENTITY version "CVS-20040326">
  -<!ENTITY releasedate "March 26th, 2004">
  +<!ENTITY version "CVS-20040327">
  +<!ENTITY releasedate "March 27th, 2004">
   <!ENTITY blfs-version "cvs">
   
   <!ENTITY % book SYSTEM "book/book.ent">
  
  
  
  1.4       +10 -110   BLFS/BOOK/basicnet/netprogs/nfs-utils/nfs-utils-config.xml
  
  Index: nfs-utils-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/basicnet/netprogs/nfs-utils/nfs-utils-config.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -u -r1.3 -r1.4
  --- nfs-utils-config.xml	13 Mar 2004 18:52:53 -0000	1.3
  +++ nfs-utils-config.xml	27 Mar 2004 07:16:14 -0000	1.4
  @@ -12,64 +12,12 @@
   
   <screen><userinput>/home 192.168.0.0/255.255.0.0(rw)</userinput></screen>
   
  -<para>Create the nfs-server script to start the server at boot:</para>
  -
  -<screen><userinput><command>cat > /etc/rc.d/init.d/nfs-server << EOF</command>
  -#!/bin/sh
  -# Begin $rc_base/init.d/nfs-server
  -                                                                                                                
  -# 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 NFS Server..."
  -            loadproc /usr/sbin/rpc.mountd
  -            loadproc /usr/sbin/rpc.nfsd 8
  -            loadproc /usr/sbin/rpc.statd
  -            ;;
  -                                                                                                                
  -    stop)
  -            echo "Stopping NFS Server..."
  -            killproc /usr/sbin/rpc.nfsd
  -            killproc /usr/sbin/rpc.mountd
  -            ;;
  -                                                                                                                
  -    reload)
  -            echo "Reloading NFS Server..."
  -            /usr/sbin/exportfs -ra
  -            ;;
  -                                                                                                                
  -    restart)
  -            $0 stop
  -            sleep 1
  -            $0 start
  -            ;;
  -                                                                                                                
  -    status)
  -            statusproc /usr/sbin/rpc.mountd
  -            statusproc /usr/sbin/rpc.nfsd
  -            ;;
  -                                                                                                                
  -    *)
  -            echo "Usage: $0 {start|stop|reload|restart|status}"
  -            exit 1
  -            ;;
  -esac
  +<para>Install the <filename>/etc/rc.d/init.d/nfs-server</filename>
  +init script included in the
  +<xref linkend="intro-important-bootscripts"/> package to start
  +the server at boot.</para>
                                                                                                                   
  -# End $rc_base/init.d/nfs-server
  -<command>EOF
  -chmod 755 /etc/rc.d/init.d/nfs-server &&
  -ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc0.d/K48nfs-server &&
  -ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc1.d/K48nfs-server &&
  -ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc2.d/K48nfs-server &&
  -ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc3.d/S24nfs-server &&
  -ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc4.d/S24nfs-server &&
  -ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc5.d/S24nfs-server &&
  -ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc6.d/K48nfs-server</command></userinput></screen>
  +<screen><userinput><command>make install-nfs-server</command></userinput></screen>
   
   </sect3>
   
  @@ -82,60 +30,12 @@
   
   <screen><userinput><server-name>:/home /home nfs rw 0 0</userinput></screen>
   
  -<para>Create the nfs-client script to mount the partitions at boot:</para>
  -
  -<screen><userinput><command>cat > /etc/rc.d/init.d/nfs-client << EOF</command>
  -#!/bin/sh
  -# Begin $rc_base/init.d/nfs-client
  -                                                                                                                
  -# 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 "Mounting NFS Partitions..."
  -            loadproc /usr/sbin/rpc.statd
  -            loadproc /usr/sbin/rpc.lockd
  -            mount -a -t nfs
  -            ;;
  -                                                                                                                
  -    stop)
  -            echo "Unmounting NFS Partitions..."
  -            umount -a -t nfs
  -            killproc /usr/sbin/rpc.lockd
  -            killproc /usr/sbin/rpc.statd
  -            ;;
  -                                                                                                                
  -    restart)
  -            $0 stop
  -            sleep 1
  -            $0 start
  -            ;;
  -                                                                                                                
  -    status)
  -            statusproc /usr/sbin/rpc.statd
  -            statusproc /usr/sbin/rpc.lockd
  -            ;;
  -                                                                                                                
  -    *)
  -            echo "Usage: $0 {start|stop|restart|status}"
  -            exit 1
  -            ;;
  -esac
  +<para>Install the <filename>/etc/rc.d/init.d/nfs-client</filename>
  +init script included in the
  +<xref linkend="intro-important-bootscripts"/> package to mount
  +the partitions at boot.</para>
                                                                                                                   
  -# End $rc_base/init.d/nfs-client
  -<command>EOF
  -chmod 755 /etc/rc.d/init.d/nfs-client &&
  -ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc0.d/K48nfs-client &&
  -ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc1.d/K48nfs-client &&
  -ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc2.d/K48nfs-client &&
  -ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc3.d/S24nfs-client &&
  -ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc4.d/S24nfs-client &&
  -ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc5.d/S24nfs-client &&
  -ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc6.d/K48nfs-client</command></userinput></screen>
  +<screen><userinput><command>make install-nfs-client</command></userinput></screen>
   
   </sect3>
   
  
  
  
  1.9       +6 -42     BLFS/BOOK/basicnet/netprogs/ntp/ntp-config.xml
  
  Index: ntp-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/basicnet/netprogs/ntp/ntp-config.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -u -r1.8 -r1.9
  --- ntp-config.xml	26 Mar 2004 10:57:17 -0000	1.8
  +++ ntp-config.xml	27 Mar 2004 07:16:14 -0000	1.9
  @@ -41,48 +41,12 @@
   option is to run <command>ntpd</command> periodically (using cron)
   and update the time each time <command>ntpd</command> is scheduled.</para>
   
  -<para>If you choose Option one, then create the bootscript
  -<filename>/etc/rc.d/init.d/ntp</filename> and put the start and
  -stop symlinks:</para>
  -
  -<screen><userinput><command>cat > /etc/rc.d/init.d/ntp << "EOF"</command>
  -#!/bin/sh
  -# Begin $rc_base/init.d/ntp
  -. /etc/sysconfig/rc
  -. $rc_functions
  -case "$1" in
  -        start)
  -                echo "Starting ntpd..."
  -                loadproc ntpd
  -                ;;
  -        stop)
  -                echo "Stopping ntpd..."
  -                killproc ntpd
  -                ;;
  -        restart)
  -                $0 stop
  -                sleep 1
  -                $0 start
  -                ;;
  -        status)
  -                statusproc ntpd
  -                ;;
  -        *)
  -                echo "Usage: $0 {start|stop|restart|status}"
  -                exit 1
  -                ;;
  -esac
  -# End $rc_base/init.d/ntp
  -<command>EOF
  -chmod 755 /etc/rc.d/init.d/ntp &&
  -cd /etc/rc.d/init.d &&
  -ln -sf ../init.d/ntp ../rc0.d/K46ntp &&
  -ln -sf ../init.d/ntp ../rc1.d/K46ntp &&
  -ln -sf ../init.d/ntp ../rc2.d/K46ntp &&
  -ln -sf ../init.d/ntp ../rc3.d/S26ntp &&
  -ln -sf ../init.d/ntp ../rc4.d/S26ntp &&
  -ln -sf ../init.d/ntp ../rc5.d/S26ntp &&
  -ln -sf ../init.d/ntp ../rc6.d/K46ntp</command></userinput></screen>
  +<para>If you choose Option one, then install
  +<filename>/etc/rc.d/init.d/ntp</filename>
  +init script included in the
  +<xref linkend="intro-important-bootscripts"/> package.</para>
  +                                                                                                                
  +<screen><userinput><command>make install-ntp</command></userinput></screen>
   
   <para>If you prefer to start ntpd periodically, add the following command to
   the root's <filename>crontab</filename>:</para>
  
  
  
  1.11      +6 -42     BLFS/BOOK/basicnet/netprogs/portmap/portmap-config.xml
  
  Index: portmap-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/basicnet/netprogs/portmap/portmap-config.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -u -r1.10 -r1.11
  --- portmap-config.xml	8 Feb 2004 00:50:21 -0000	1.10
  +++ portmap-config.xml	27 Mar 2004 07:16:15 -0000	1.11
  @@ -5,49 +5,13 @@
   <para><filename>/etc/rc.d/init.d/portmap</filename></para>
   </sect3>
   
  -<sect3><title>Create the <command>portmap</command> boot script</title>
  +<sect3><title>Boot script</title>
   
  -<screen><userinput><command>cat > /etc/rc.d/init.d/portmap << "EOF"</command>
  -#!/bin/sh
  -# Begin /etc/rc.d/init.d/portmap
  -
  -. /etc/rc.d/init.d/functions
  -
  -case "$1" in
  -        start)
  -                echo "Starting RPC Portmap"
  -                loadproc /sbin/portmap
  -                ;;
  -
  -        stop)
  -                echo "Stopping Portmap"
  -                killproc /sbin/portmap
  -                ;;
  -
  -        restart)
  -                $0 stop
  -                /bin/sleep 1
  -                $0 start
  -                ;;
  -
  -        *)
  -                echo "Usage: $0 {start|stop|restart}"
  -                exit 1
  -        ;;
  -
  -esac
  -
  -# End /etc/rc.d/init.d/portmap
  -<command>EOF
  -chmod 754 /etc/rc.d/init.d/portmap &&
  -cd /etc/rc.d/init.d &&
  -ln -sf ../init.d/portmap ../rc0.d/K49portmap &&
  -ln -sf ../init.d/portmap ../rc1.d/K49portmap &&
  -ln -sf ../init.d/portmap ../rc2.d/K49portmap &&
  -ln -sf ../init.d/portmap ../rc3.d/S22portmap &&
  -ln -sf ../init.d/portmap ../rc4.d/S22portmap &&
  -ln -sf ../init.d/portmap ../rc5.d/S22portmap &&
  -ln -sf ../init.d/portmap ../rc6.d/K49portmap</command></userinput></screen>
  +<para>Install the <filename>/etc/rc.d/init.d/portmap</filename>
  +init script included in the
  +<xref linkend="intro-important-bootscripts"/> package.</para>
  +                                                                                                                
  +<screen><userinput><command>make install-portmap</command></userinput></screen>
   
   </sect3>
   
  
  
  
  1.1028    +5 -0      BLFS/BOOK/introduction/welcome/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/introduction/welcome/changelog.xml,v
  retrieving revision 1.1027
  retrieving revision 1.1028
  diff -u -u -r1.1027 -r1.1028
  --- changelog.xml	26 Mar 2004 10:57:17 -0000	1.1027
  +++ changelog.xml	27 Mar 2004 07:16:15 -0000	1.1028
  @@ -11,6 +11,11 @@
   
   <itemizedlist>
   
  +<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,
  +exim, postfix, and sendmail to use lfs-bootscripts for init scripts.</para></listitem>
  +
   <listitem><para>March 26th, 2004 [igor]: Updated example NTP servers
   to stratum 2, open access, different locations.</para></listitem>
       
  
  
  
  1.20      +1 -0      BLFS/BOOK/postlfs/postlfs.ent
  
  Index: postlfs.ent
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/postlfs/postlfs.ent,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -u -r1.19 -r1.20
  --- postlfs.ent	18 Dec 2003 00:52:57 -0000	1.19
  +++ postlfs.ent	27 Mar 2004 07:16:15 -0000	1.20
  @@ -51,6 +51,7 @@
   <!ENTITY postlfs-editors-joe SYSTEM "editors/joe.xml">
   <!ENTITY % joe SYSTEM "editors/joe/joe.ent">
   %joe;
  +<!ENTITY postlfs-editors-pico SYSTEM "editors/pico.xml">
   
   <!-- Shells -->
   <!ENTITY postlfs-shells SYSTEM "shells/shells.xml">
  
  
  
  1.5       +1 -0      BLFS/BOOK/postlfs/editors/editors.xml
  
  Index: editors.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/postlfs/editors/editors.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -u -r1.4 -r1.5
  --- editors.xml	21 Sep 2003 19:11:48 -0000	1.4
  +++ editors.xml	27 Mar 2004 07:16:15 -0000	1.5
  @@ -12,5 +12,6 @@
   &postlfs-editors-emacs;
   &postlfs-editors-nano;
   &postlfs-editors-joe;
  +&postlfs-editors-pico;
   
   </chapter>
  
  
  
  1.1                  BLFS/BOOK/postlfs/editors/pico.xml
  
  Index: pico.xml
  ===================================================================
  <sect1 id="pico">
  <?dbhtml filename="pico.html" dir="postlfs"?>
  <title>Pico</title>
  
  <para><application>pico</application> is installed as a part of
  <xref linkend="pine"/>.</para>
  
  </sect1>
  
  
  
  1.11      +5 -55     BLFS/BOOK/server/mail/exim/exim-config.xml
  
  Index: exim-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/mail/exim/exim-config.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -u -r1.10 -r1.11
  --- exim-config.xml	8 Feb 2004 00:50:22 -0000	1.10
  +++ exim-config.xml	27 Mar 2004 07:16:15 -0000	1.11
  @@ -23,61 +23,11 @@
   should be checked and duplicate aliases removed, if
   present.</para></note>
   
  -<para>To start and stop Exim on system boot/shutdown create the
  -exim boot script with the following commands:</para>
  -
  -<screen><userinput><command>cat > /etc/rc.d/init.d/exim << "EOF"</command>
  -#!/bin/sh
  -# Begin $rc_base/init.d/exim
  -
  -# 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 exim..."
  -        loadproc /usr/sbin/exim -bd -q1m
  -        ;;
  -
  -        stop)
  -        echo "Stopping exim..."
  -        killproc exim
  -        ;;
  -		
  -	status)
  -	statusproc exim
  -	;;
  -	
  -        restart)
  -        $0 stop
  -        sleep 1
  -        $0 start
  -        ;;
  -
  -        *)
  -        echo "Usage: $0 {start|stop|status|restart}"
  -        exit 1
  -        ;;
  -esac
  -
  -# End $rc_base/init.d/exim
  -<command>EOF
  -chmod 755 /etc/rc.d/init.d/exim</command></userinput></screen>
  -
  -<para>Create the run level symlinks with the following commands:</para>
  -
  -<screen><userinput><command>cd /etc/rc.d/init.d &&
  -ln -sf ../init.d/exim ../rc0.d/K25exim &&
  -ln -sf ../init.d/exim ../rc1.d/K25exim &&
  -ln -sf ../init.d/exim ../rc2.d/K25exim &&
  -ln -sf ../init.d/exim ../rc3.d/S35exim &&
  -ln -sf ../init.d/exim ../rc4.d/S35exim &&
  -ln -sf ../init.d/exim ../rc5.d/S35exim &&
  -ln -sf ../init.d/exim ../rc6.d/K25exim</command></userinput></screen>
  +<para>To automate the running of exim at startup,
  +install <filename>/etc/rc.d/init.d/exim</filename>
  +init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
  +                                                                                                                
  +<screen><userinput><command>make install-exim</command></userinput></screen>
   
   </sect3>
   
  
  
  
  1.14      +3 -69     BLFS/BOOK/server/mail/postfix/postfix-config.xml
  
  Index: postfix-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/mail/postfix/postfix-config.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -u -r1.13 -r1.14
  --- postfix-config.xml	10 Feb 2004 21:43:55 -0000	1.13
  +++ postfix-config.xml	27 Mar 2004 07:16:16 -0000	1.14
  @@ -44,77 +44,11 @@
   
   <sect3><title>Postfix init.d script</title>
   
  -<para>To automate the running of Postfix, use following command to create the init.d script:</para>
  +<para>To automate the running of Postfix at startup, install <filename>/etc/rc.d/init.d/postfix</filename>
  +init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
   
  -<screen><userinput><command>cat > /etc/rc.d/init.d/postfix << "EOF"</command>
  -#!/bin/sh
  -# Begin $rc_base/init.d/postfix
  +<screen><userinput><command>make install-postfix</command></userinput></screen>
   
  -# 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 Postfix..."
  -        loadproc postfix start
  -        ;;
  -
  -        stop)
  -        echo "Stopping Postfix..."
  -        loadproc postfix stop
  -        ;;
  -		
  -        reload)
  -        echo "Reloading Postfix..."
  -        loadproc postfix reload
  -        ;;
  -
  -        abort)
  -        echo "Aborting Postfix..."
  -        loadproc postfix abort
  -        ;;
  -
  -        flush)
  -        echo "Flushing Postfix..."
  -        loadproc postfix flush
  -        ;;
  -        
  -        check)
  -        echo "Checking Postfix..."
  -        loadproc postfix check
  -        ;;
  -
  -        restart)
  -        $0 stop
  -        sleep 1
  -        $0 start
  -        ;;
  -
  -        *)
  -        echo "Usage: $0 {start|stop|reload|abort|flush|check|restart}"
  -        exit 1
  -        ;;
  -esac
  -
  -# End $rc_base/init.d/postfix
  -<command>EOF
  -chmod 755 /etc/rc.d/init.d/postfix</command></userinput></screen>
  -
  -<para>Create the symbolic links to this file in the relevant
  -<filename>rc.d</filename> directory with the following commands:</para>
  -
  -<screen><userinput><command>cd /etc/rc.d/init.d &&
  -ln -sf ../init.d/postfix ../rc0.d/K25postfix &&
  -ln -sf ../init.d/postfix ../rc1.d/K25postfix &&
  -ln -sf ../init.d/postfix ../rc2.d/K25postfix &&
  -ln -sf ../init.d/postfix ../rc3.d/S35postfix &&
  -ln -sf ../init.d/postfix ../rc4.d/S35postfix &&
  -ln -sf ../init.d/postfix ../rc5.d/S35postfix &&
  -ln -sf ../init.d/postfix ../rc6.d/K25postfix</command></userinput></screen>
   </sect3>
   
   </sect2>
  
  
  
  1.17      +7 -57     BLFS/BOOK/server/mail/sendmail/sendmail-config.xml
  
  Index: sendmail-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/mail/sendmail/sendmail-config.xml,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -u -r1.16 -r1.17
  --- sendmail-config.xml	8 Feb 2004 00:50:22 -0000	1.16
  +++ sendmail-config.xml	27 Mar 2004 07:16:16 -0000	1.17
  @@ -16,66 +16,16 @@
   cp cf/cf/{submit,sendmail}.mc /etc/mail &&
   newaliases -v</command></userinput></screen>
   
  -<para>To start and stop Sendmail on system boot/shutdown create the
  -<command>sendmail</command> boot script with the following commands:</para>
  +<para>To automate the running of Sendmail at startup, install <filename>/etc/rc.d/init.d/sendmail</filename>
  +init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
  +                                                                                                                
  +<screen><userinput><command>make install-sendmail</command></userinput></screen>
   
  -<note><para>The -qNm option, where N is number of minutes, controls
  +<note><para>The -qNm option to <command>sendmail</command>, where N is number of minutes, controls
   how often Sendmail will process the mail queue. A default of 5
  -minutes is used here. Individual workstation users may want to set
  +minutes is used in the init script. Individual workstation users may want to set
   this as low as 1 minute, large installations handling more mail will
   want to set it higher.</para></note>
   
  -<screen><userinput><command>cat > /etc/rc.d/init.d/sendmail << "EOF"
  -#!/bin/sh
  -# Begin $rc_base/init.d/sendmail
  -
  -# 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 sendmail..."
  -        loadproc /usr/sbin/sendmail -bs -bd -q5m start
  -        ;;
  -
  -        stop)
  -        echo "Stopping Sendmail..."
  -        killproc sendmail
  -        ;;
  -		
  -	status)
  -	statusproc sendmail
  -	;;
  -	
  -        restart)
  -        $0 stop
  -        sleep 1
  -        $0 start
  -        ;;
  -
  -        *)
  -        echo "Usage: $0 {start|stop|status|restart}"
  -        exit 1
  -        ;;
  -esac
  -
  -# End $rc_base/init.d/sendmail
  -EOF
  -chmod 755 /etc/rc.d/init.d/sendmail</command></userinput></screen>
  -
  -<para>Create the run level symlinks with the following commands:</para>
  -
  -<screen><userinput><command>cd /etc/rc.d/init.d &&
  -ln -sf ../init.d/sendmail ../rc0.d/K25sendmail &&
  -ln -sf ../init.d/sendmail ../rc1.d/K25sendmail &&
  -ln -sf ../init.d/sendmail ../rc2.d/K25sendmail &&
  -ln -sf ../init.d/sendmail ../rc3.d/S35sendmail &&
  -ln -sf ../init.d/sendmail ../rc4.d/S35sendmail &&
  -ln -sf ../init.d/sendmail ../rc5.d/S35sendmail &&
  -ln -sf ../init.d/sendmail ../rc6.d/K25sendmail</command></userinput></screen></sect3>
  -
  +</sect3>
   </sect2>
  
  
  



More information about the blfs-book mailing list