Changeset 98d18589


Ignore:
Timestamp:
03/27/2004 07:16:16 AM (18 years ago)
Author:
Tushar Teredesai <tushar@…>
Branches:
10.0, 10.1, 11.0, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, ken/refactor-virt, krejzi/svn, lazarus, nosym, perl-modules, qt5new, systemd-11177, systemd-13485, trunk, upgradedb, v5_1, v5_1-pre1, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
12929fb
Parents:
a58b896
Message:

More bootscript changes

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1937 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • basicnet/netprogs/nfs-utils/nfs-utils-config.xml

    ra58b896 r98d18589  
    1313<screen><userinput>/home 192.168.0.0/255.255.0.0(rw)</userinput></screen>
    1414
    15 <para>Create the nfs-server script to start the server at boot:</para>
    16 
    17 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/nfs-server &lt;&lt; EOF</command>
    18 #!/bin/sh
    19 # Begin $rc_base/init.d/nfs-server
     15<para>Install the <filename>/etc/rc.d/init.d/nfs-server</filename>
     16init script included in the
     17<xref linkend="intro-important-bootscripts"/> package to start
     18the server at boot.</para>
    2019                                                                                                               
    21 # Based on sysklogd script from LFS-3.1 and earlier.
    22 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    23                                                                                                                
    24 . /etc/sysconfig/rc
    25 . $rc_functions
    26                                                                                                                
    27 case "$1" in
    28     start)
    29             echo "Starting NFS Server..."
    30             loadproc /usr/sbin/rpc.mountd
    31             loadproc /usr/sbin/rpc.nfsd 8
    32             loadproc /usr/sbin/rpc.statd
    33             ;;
    34                                                                                                                
    35     stop)
    36             echo "Stopping NFS Server..."
    37             killproc /usr/sbin/rpc.nfsd
    38             killproc /usr/sbin/rpc.mountd
    39             ;;
    40                                                                                                                
    41     reload)
    42             echo "Reloading NFS Server..."
    43             /usr/sbin/exportfs -ra
    44             ;;
    45                                                                                                                
    46     restart)
    47             $0 stop
    48             sleep 1
    49             $0 start
    50             ;;
    51                                                                                                                
    52     status)
    53             statusproc /usr/sbin/rpc.mountd
    54             statusproc /usr/sbin/rpc.nfsd
    55             ;;
    56                                                                                                                
    57     *)
    58             echo "Usage: $0 {start|stop|reload|restart|status}"
    59             exit 1
    60             ;;
    61 esac
    62                                                                                                                
    63 # End $rc_base/init.d/nfs-server
    64 <command>EOF
    65 chmod 755 /etc/rc.d/init.d/nfs-server &amp;&amp;
    66 ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc0.d/K48nfs-server &amp;&amp;
    67 ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc1.d/K48nfs-server &amp;&amp;
    68 ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc2.d/K48nfs-server &amp;&amp;
    69 ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc3.d/S24nfs-server &amp;&amp;
    70 ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc4.d/S24nfs-server &amp;&amp;
    71 ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc5.d/S24nfs-server &amp;&amp;
    72 ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc6.d/K48nfs-server</command></userinput></screen>
     20<screen><userinput><command>make install-nfs-server</command></userinput></screen>
    7321
    7422</sect3>
     
    8331<screen><userinput>&lt;server-name&gt;:/home /home nfs rw 0 0</userinput></screen>
    8432
    85 <para>Create the nfs-client script to mount the partitions at boot:</para>
    86 
    87 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/nfs-client &lt;&lt; EOF</command>
    88 #!/bin/sh
    89 # Begin $rc_base/init.d/nfs-client
     33<para>Install the <filename>/etc/rc.d/init.d/nfs-client</filename>
     34init script included in the
     35<xref linkend="intro-important-bootscripts"/> package to mount
     36the partitions at boot.</para>
    9037                                                                                                               
    91 # Based on sysklogd script from LFS-3.1 and earlier.
    92 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    93                                                                                                                
    94 . /etc/sysconfig/rc
    95 . $rc_functions
    96                                                                                                                
    97 case "$1" in
    98     start)
    99             echo "Mounting NFS Partitions..."
    100             loadproc /usr/sbin/rpc.statd
    101             loadproc /usr/sbin/rpc.lockd
    102             mount -a -t nfs
    103             ;;
    104                                                                                                                
    105     stop)
    106             echo "Unmounting NFS Partitions..."
    107             umount -a -t nfs
    108             killproc /usr/sbin/rpc.lockd
    109             killproc /usr/sbin/rpc.statd
    110             ;;
    111                                                                                                                
    112     restart)
    113             $0 stop
    114             sleep 1
    115             $0 start
    116             ;;
    117                                                                                                                
    118     status)
    119             statusproc /usr/sbin/rpc.statd
    120             statusproc /usr/sbin/rpc.lockd
    121             ;;
    122                                                                                                                
    123     *)
    124             echo "Usage: $0 {start|stop|restart|status}"
    125             exit 1
    126             ;;
    127 esac
    128                                                                                                                
    129 # End $rc_base/init.d/nfs-client
    130 <command>EOF
    131 chmod 755 /etc/rc.d/init.d/nfs-client &amp;&amp;
    132 ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc0.d/K48nfs-client &amp;&amp;
    133 ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc1.d/K48nfs-client &amp;&amp;
    134 ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc2.d/K48nfs-client &amp;&amp;
    135 ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc3.d/S24nfs-client &amp;&amp;
    136 ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc4.d/S24nfs-client &amp;&amp;
    137 ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc5.d/S24nfs-client &amp;&amp;
    138 ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc6.d/K48nfs-client</command></userinput></screen>
     38<screen><userinput><command>make install-nfs-client</command></userinput></screen>
    13939
    14040</sect3>
  • basicnet/netprogs/ntp/ntp-config.xml

    ra58b896 r98d18589  
    4242and update the time each time <command>ntpd</command> is scheduled.</para>
    4343
    44 <para>If you choose Option one, then create the bootscript
    45 <filename>/etc/rc.d/init.d/ntp</filename> and put the start and
    46 stop symlinks:</para>
    47 
    48 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/ntp &lt;&lt; "EOF"</command>
    49 #!/bin/sh
    50 # Begin $rc_base/init.d/ntp
    51 . /etc/sysconfig/rc
    52 . $rc_functions
    53 case "$1" in
    54         start)
    55                 echo "Starting ntpd..."
    56                 loadproc ntpd
    57                 ;;
    58         stop)
    59                 echo "Stopping ntpd..."
    60                 killproc ntpd
    61                 ;;
    62         restart)
    63                 $0 stop
    64                 sleep 1
    65                 $0 start
    66                 ;;
    67         status)
    68                 statusproc ntpd
    69                 ;;
    70         *)
    71                 echo "Usage: $0 {start|stop|restart|status}"
    72                 exit 1
    73                 ;;
    74 esac
    75 # End $rc_base/init.d/ntp
    76 <command>EOF
    77 chmod 755 /etc/rc.d/init.d/ntp &amp;&amp;
    78 cd /etc/rc.d/init.d &amp;&amp;
    79 ln -sf ../init.d/ntp ../rc0.d/K46ntp &amp;&amp;
    80 ln -sf ../init.d/ntp ../rc1.d/K46ntp &amp;&amp;
    81 ln -sf ../init.d/ntp ../rc2.d/K46ntp &amp;&amp;
    82 ln -sf ../init.d/ntp ../rc3.d/S26ntp &amp;&amp;
    83 ln -sf ../init.d/ntp ../rc4.d/S26ntp &amp;&amp;
    84 ln -sf ../init.d/ntp ../rc5.d/S26ntp &amp;&amp;
    85 ln -sf ../init.d/ntp ../rc6.d/K46ntp</command></userinput></screen>
     44<para>If you choose Option one, then install
     45<filename>/etc/rc.d/init.d/ntp</filename>
     46init script included in the
     47<xref linkend="intro-important-bootscripts"/> package.</para>
     48                                                                                                               
     49<screen><userinput><command>make install-ntp</command></userinput></screen>
    8650
    8751<para>If you prefer to start ntpd periodically, add the following command to
  • basicnet/netprogs/portmap/portmap-config.xml

    ra58b896 r98d18589  
    66</sect3>
    77
    8 <sect3><title>Create the <command>portmap</command> boot script</title>
     8<sect3><title>Boot script</title>
    99
    10 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/portmap &lt;&lt; "EOF"</command>
    11 #!/bin/sh
    12 # Begin /etc/rc.d/init.d/portmap
    13 
    14 . /etc/rc.d/init.d/functions
    15 
    16 case "$1" in
    17         start)
    18                 echo "Starting RPC Portmap"
    19                 loadproc /sbin/portmap
    20                 ;;
    21 
    22         stop)
    23                 echo "Stopping Portmap"
    24                 killproc /sbin/portmap
    25                 ;;
    26 
    27         restart)
    28                 $0 stop
    29                 /bin/sleep 1
    30                 $0 start
    31                 ;;
    32 
    33         *)
    34                 echo "Usage: $0 {start|stop|restart}"
    35                 exit 1
    36         ;;
    37 
    38 esac
    39 
    40 # End /etc/rc.d/init.d/portmap
    41 <command>EOF
    42 chmod 754 /etc/rc.d/init.d/portmap &amp;&amp;
    43 cd /etc/rc.d/init.d &amp;&amp;
    44 ln -sf ../init.d/portmap ../rc0.d/K49portmap &amp;&amp;
    45 ln -sf ../init.d/portmap ../rc1.d/K49portmap &amp;&amp;
    46 ln -sf ../init.d/portmap ../rc2.d/K49portmap &amp;&amp;
    47 ln -sf ../init.d/portmap ../rc3.d/S22portmap &amp;&amp;
    48 ln -sf ../init.d/portmap ../rc4.d/S22portmap &amp;&amp;
    49 ln -sf ../init.d/portmap ../rc5.d/S22portmap &amp;&amp;
    50 ln -sf ../init.d/portmap ../rc6.d/K49portmap</command></userinput></screen>
     10<para>Install the <filename>/etc/rc.d/init.d/portmap</filename>
     11init script included in the
     12<xref linkend="intro-important-bootscripts"/> package.</para>
     13                                                                                                               
     14<screen><userinput><command>make install-portmap</command></userinput></screen>
    5115
    5216</sect3>
  • index.xml

    ra58b896 r98d18589  
    33                        "/usr/share/docbook/docbookx.dtd" [
    44
    5 <!ENTITY version "CVS-20040326">
    6 <!ENTITY releasedate "March 26th, 2004">
     5<!ENTITY version "CVS-20040327">
     6<!ENTITY releasedate "March 27th, 2004">
    77<!ENTITY blfs-version "cvs">
    88
  • introduction/welcome/changelog.xml

    ra58b896 r98d18589  
    1111
    1212<itemizedlist>
     13
     14<listitem><para>March 27th, 2004 [tushar]: Added pico to the list of text editors.</para></listitem>
     15
     16<listitem><para>March 27th, 2004 [tushar]: Updated nfs, ntp, portmap,
     17exim, postfix, and sendmail to use lfs-bootscripts for init scripts.</para></listitem>
    1318
    1419<listitem><para>March 26th, 2004 [igor]: Updated example NTP servers
  • postlfs/editors/editors.xml

    ra58b896 r98d18589  
    1313&postlfs-editors-nano;
    1414&postlfs-editors-joe;
     15&postlfs-editors-pico;
    1516
    1617</chapter>
  • postlfs/postlfs.ent

    ra58b896 r98d18589  
    5252<!ENTITY % joe SYSTEM "editors/joe/joe.ent">
    5353%joe;
     54<!ENTITY postlfs-editors-pico SYSTEM "editors/pico.xml">
    5455
    5556<!-- Shells -->
  • server/mail/exim/exim-config.xml

    ra58b896 r98d18589  
    2424present.</para></note>
    2525
    26 <para>To start and stop Exim on system boot/shutdown create the
    27 exim boot script with the following commands:</para>
    28 
    29 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/exim &lt;&lt; "EOF"</command>
    30 #!/bin/sh
    31 # Begin $rc_base/init.d/exim
    32 
    33 # Based on sysklogd script from LFS-3.1 and earlier.
    34 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    35 
    36 . /etc/sysconfig/rc
    37 . $rc_functions
    38 
    39 case "$1" in
    40 
    41         start)
    42         echo "Starting exim..."
    43         loadproc /usr/sbin/exim -bd -q1m
    44         ;;
    45 
    46         stop)
    47         echo "Stopping exim..."
    48         killproc exim
    49         ;;
    50                
    51         status)
    52         statusproc exim
    53         ;;
    54        
    55         restart)
    56         $0 stop
    57         sleep 1
    58         $0 start
    59         ;;
    60 
    61         *)
    62         echo "Usage: $0 {start|stop|status|restart}"
    63         exit 1
    64         ;;
    65 esac
    66 
    67 # End $rc_base/init.d/exim
    68 <command>EOF
    69 chmod 755 /etc/rc.d/init.d/exim</command></userinput></screen>
    70 
    71 <para>Create the run level symlinks with the following commands:</para>
    72 
    73 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    74 ln -sf ../init.d/exim ../rc0.d/K25exim &amp;&amp;
    75 ln -sf ../init.d/exim ../rc1.d/K25exim &amp;&amp;
    76 ln -sf ../init.d/exim ../rc2.d/K25exim &amp;&amp;
    77 ln -sf ../init.d/exim ../rc3.d/S35exim &amp;&amp;
    78 ln -sf ../init.d/exim ../rc4.d/S35exim &amp;&amp;
    79 ln -sf ../init.d/exim ../rc5.d/S35exim &amp;&amp;
    80 ln -sf ../init.d/exim ../rc6.d/K25exim</command></userinput></screen>
     26<para>To automate the running of exim at startup,
     27install <filename>/etc/rc.d/init.d/exim</filename>
     28init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
     29                                                                                                               
     30<screen><userinput><command>make install-exim</command></userinput></screen>
    8131
    8232</sect3>
  • server/mail/postfix/postfix-config.xml

    ra58b896 r98d18589  
    4545<sect3><title>Postfix init.d script</title>
    4646
    47 <para>To automate the running of Postfix, use following command to create the init.d script:</para>
     47<para>To automate the running of Postfix at startup, install <filename>/etc/rc.d/init.d/postfix</filename>
     48init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
    4849
    49 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/postfix &lt;&lt; "EOF"</command>
    50 #!/bin/sh
    51 # Begin $rc_base/init.d/postfix
     50<screen><userinput><command>make install-postfix</command></userinput></screen>
    5251
    53 # Based on sysklogd script from LFS-3.1 and earlier.
    54 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    55 
    56 . /etc/sysconfig/rc
    57 . $rc_functions
    58 
    59 case "$1" in
    60 
    61         start)
    62         echo "Starting Postfix..."
    63         loadproc postfix start
    64         ;;
    65 
    66         stop)
    67         echo "Stopping Postfix..."
    68         loadproc postfix stop
    69         ;;
    70                
    71         reload)
    72         echo "Reloading Postfix..."
    73         loadproc postfix reload
    74         ;;
    75 
    76         abort)
    77         echo "Aborting Postfix..."
    78         loadproc postfix abort
    79         ;;
    80 
    81         flush)
    82         echo "Flushing Postfix..."
    83         loadproc postfix flush
    84         ;;
    85        
    86         check)
    87         echo "Checking Postfix..."
    88         loadproc postfix check
    89         ;;
    90 
    91         restart)
    92         $0 stop
    93         sleep 1
    94         $0 start
    95         ;;
    96 
    97         *)
    98         echo "Usage: $0 {start|stop|reload|abort|flush|check|restart}"
    99         exit 1
    100         ;;
    101 esac
    102 
    103 # End $rc_base/init.d/postfix
    104 <command>EOF
    105 chmod 755 /etc/rc.d/init.d/postfix</command></userinput></screen>
    106 
    107 <para>Create the symbolic links to this file in the relevant
    108 <filename>rc.d</filename> directory with the following commands:</para>
    109 
    110 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    111 ln -sf ../init.d/postfix ../rc0.d/K25postfix &amp;&amp;
    112 ln -sf ../init.d/postfix ../rc1.d/K25postfix &amp;&amp;
    113 ln -sf ../init.d/postfix ../rc2.d/K25postfix &amp;&amp;
    114 ln -sf ../init.d/postfix ../rc3.d/S35postfix &amp;&amp;
    115 ln -sf ../init.d/postfix ../rc4.d/S35postfix &amp;&amp;
    116 ln -sf ../init.d/postfix ../rc5.d/S35postfix &amp;&amp;
    117 ln -sf ../init.d/postfix ../rc6.d/K25postfix</command></userinput></screen>
    11852</sect3>
    11953
  • server/mail/sendmail/sendmail-config.xml

    ra58b896 r98d18589  
    1717newaliases -v</command></userinput></screen>
    1818
    19 <para>To start and stop Sendmail on system boot/shutdown create the
    20 <command>sendmail</command> boot script with the following commands:</para>
     19<para>To automate the running of Sendmail at startup, install <filename>/etc/rc.d/init.d/sendmail</filename>
     20init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
     21                                                                                                               
     22<screen><userinput><command>make install-sendmail</command></userinput></screen>
    2123
    22 <note><para>The -qNm option, where N is number of minutes, controls
     24<note><para>The -qNm option to <command>sendmail</command>, where N is number of minutes, controls
    2325how often Sendmail will process the mail queue. A default of 5
    24 minutes is used here. Individual workstation users may want to set
     26minutes is used in the init script. Individual workstation users may want to set
    2527this as low as 1 minute, large installations handling more mail will
    2628want to set it higher.</para></note>
    2729
    28 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/sendmail &lt;&lt; "EOF"
    29 #!/bin/sh
    30 # Begin $rc_base/init.d/sendmail
    31 
    32 # Based on sysklogd script from LFS-3.1 and earlier.
    33 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    34 
    35 . /etc/sysconfig/rc
    36 . $rc_functions
    37 
    38 case "$1" in
    39 
    40         start)
    41         echo "Starting sendmail..."
    42         loadproc /usr/sbin/sendmail -bs -bd -q5m start
    43         ;;
    44 
    45         stop)
    46         echo "Stopping Sendmail..."
    47         killproc sendmail
    48         ;;
    49                
    50         status)
    51         statusproc sendmail
    52         ;;
    53        
    54         restart)
    55         $0 stop
    56         sleep 1
    57         $0 start
    58         ;;
    59 
    60         *)
    61         echo "Usage: $0 {start|stop|status|restart}"
    62         exit 1
    63         ;;
    64 esac
    65 
    66 # End $rc_base/init.d/sendmail
    67 EOF
    68 chmod 755 /etc/rc.d/init.d/sendmail</command></userinput></screen>
    69 
    70 <para>Create the run level symlinks with the following commands:</para>
    71 
    72 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    73 ln -sf ../init.d/sendmail ../rc0.d/K25sendmail &amp;&amp;
    74 ln -sf ../init.d/sendmail ../rc1.d/K25sendmail &amp;&amp;
    75 ln -sf ../init.d/sendmail ../rc2.d/K25sendmail &amp;&amp;
    76 ln -sf ../init.d/sendmail ../rc3.d/S35sendmail &amp;&amp;
    77 ln -sf ../init.d/sendmail ../rc4.d/S35sendmail &amp;&amp;
    78 ln -sf ../init.d/sendmail ../rc5.d/S35sendmail &amp;&amp;
    79 ln -sf ../init.d/sendmail ../rc6.d/K25sendmail</command></userinput></screen></sect3>
    80 
     30</sect3>
    8131</sect2>
Note: See TracChangeset for help on using the changeset viewer.