Changeset ae9c528 for server/other


Ignore:
Timestamp:
03/28/2004 01:46:42 AM (20 years ago)
Author:
Tushar Teredesai <tushar@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
fe88f584
Parents:
ff023d1
Message:

More2 bootscript changes

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

Location:
server/other
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • server/other/bind/bind-config.xml

    rff023d1 rae9c528  
    150150<screen><userinput><command>chown -R named.named /home/named</command></userinput></screen>
    151151
    152 <para>Create the <application><acronym>BIND</acronym></application>
    153 boot script:</para>
    154 
    155 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/bind &lt;&lt; "EOF"</command>
    156 #!/bin/sh
    157 # Begin $rc_base/init.d/bind
    158 # Based on sysklogd script from LFS-3.1 and earlier.
    159 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    160 . /etc/sysconfig/rc
    161 . $rc_functions
    162 case "$1" in
    163         start)
    164                 echo "Starting named..."
    165                 loadproc /usr/sbin/named -u named -t /home/named -c \
    166                         /etc/named.conf
    167                 ;;
    168         stop)
    169                 echo "Stopping named..."
    170                 killproc /usr/sbin/named
    171                 ;;
    172         restart)
    173                 $0 stop
    174                 sleep 1
    175                 $0 start
    176                 ;;
    177    reload)
    178                 echo "Reloading named..."
    179                 /usr/sbin/rndc -c /etc/rndc.conf reload
    180                 ;;
    181                                        
    182         status)
    183                 statusproc /usr/sbin/named
    184                 ;;
    185         *)
    186                 echo "Usage: $0 {start|stop|restart|status}"
    187                 exit 1
    188                 ;;
    189 esac
    190 # End $rc_base/init.d/bind
    191 <command>EOF</command></userinput></screen>
    192 
    193 <para>Add the run level symlinks:</para>
    194 
    195 <screen><userinput><command>chmod 754 /etc/rc.d/init.d/bind &amp;&amp;
    196 ln -s  /etc/rc.d/init.d/bind /etc/rc.d/rc0.d/K49bind &amp;&amp;
    197 ln -s  /etc/rc.d/init.d/bind /etc/rc.d/rc1.d/K49bind &amp;&amp;
    198 ln -s  /etc/rc.d/init.d/bind /etc/rc.d/rc2.d/K49bind &amp;&amp;
    199 ln -s  /etc/rc.d/init.d/bind /etc/rc.d/rc3.d/S22bind &amp;&amp;
    200 ln -s  /etc/rc.d/init.d/bind /etc/rc.d/rc4.d/S22bind &amp;&amp;
    201 ln -s  /etc/rc.d/init.d/bind /etc/rc.d/rc5.d/S22bind &amp;&amp;
    202 ln -s  /etc/rc.d/init.d/bind /etc/rc.d/rc6.d/K49bind</command></userinput></screen>
     152<para>To start the DNS server at boot, install <filename>/etc/rc.d/init.d/bind</filename>
     153init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
     154                                                                                                               
     155<screen><userinput><command>make install-bind</command></userinput></screen>
    203156
    204157<para>Now start <application><acronym>BIND</acronym></application> with
  • server/other/bind/bind-intro.xml

    rff023d1 rae9c528  
    33
    44<para>The <application><acronym>BIND</acronym></application> package
    5 provides a <acronym>DNS</acronym> server and client utilities.</para>
     5provides a <acronym>DNS</acronym> server and client utilities. If you
     6are only interested in the utilities, refer to the <xref linkend="bind-utils"/>.</para>
    67
    78<sect3><title>Package information</title>
  • server/other/dhcp/dhcp-config.xml

    rff023d1 rae9c528  
    1111found in Chapter 14.</para>
    1212
    13 <para>Note that you only want to start the <acronym>DHCP</acronym> server if
     13<para>Note that you only need the <acronym>DHCP</acronym> server if
    1414you want to issue <acronym>LAN</acronym> addresses over your network.  The
    1515<acronym>DHCP</acronym> client doesn't need this script to be used.  Also note
    1616that this script is coded for the <emphasis role="strong">eth1</emphasis>
    17 interface, which may need to be modified for your hardware configuration.
    18 With that in mind the <application><acronym>DHCP</acronym></application> init.d script can be created
    19 using the following commands.</para>
     17interface, which may need to be modified for your hardware configuration.</para>
    2018
    21 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/dhcp &lt;&lt; "EOF"</command>
    22 #!/bin/sh
    23 # Begin $rc_base/init.d/dhcp
    24 
    25 # Based on sysklogd script from LFS-3.1 and earlier.
    26 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    27 
    28 . /etc/sysconfig/rc
    29 . $rc_functions
    30 
    31 case "$1" in
    32         start)
    33                 echo "Starting DHCP Server..."
    34                 loadproc dhcpd -q eth1
    35                 ;;
    36 
    37         stop)
    38                 echo "Stopping DHCP Server..."
    39                 killproc dhcpd
    40                 ;;
    41 
    42         reload)
    43                 echo "Reloading DHCP Server..."
    44                 reloadproc dhcpd
    45                 ;;
    46 
    47         restart)
    48                 $0 stop
    49                 sleep 1
    50                 $0 start
    51                 ;;
    52 
    53         status)
    54                 statusproc dhcpd
    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/dhcp
    64 <command>EOF
    65 chmod 755 /etc/rc.d/init.d/dhcp</command></userinput></screen>
     19<para>Install <filename>/etc/rc.d/init.d/dhcp</filename>
     20init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
     21                                                                                                               
     22<screen><userinput><command>make install-dhcp</command></userinput></screen>
    6623
    6724<para>The lease file must exist on startup.  The following command will
  • server/other/openssh/openssh-config.xml

    rff023d1 rae9c528  
    1515<sect3><title>sshd init.d script</title>
    1616
    17 <para>Note that you only want to start the <command>sshd</command> server if
    18 you want to be able to <command>ssh</command> <emphasis>into</emphasis> your
    19 machine.  The <command>ssh</command> client doesn't need this script to be
    20 used.  Having said that, if you want to run the <command>ssh</command> daemon,
    21 the <application>Open<acronym>SSH</acronym></application> daemon init.d script can be created using the following
    22 commands:</para>
    23 
    24 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/sshd &lt;&lt; "EOF"</command>
    25 #!/bin/sh
    26 # Begin $rc_base/init.d/sshd
    27 
    28 # Based on sysklogd script from LFS-3.1 and earlier.
    29 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    30 
    31 . /etc/sysconfig/rc
    32 . $rc_functions
    33 
    34 case "$1" in
    35     start)
    36                 echo "Starting SSH Server..."
    37                 loadproc /usr/sbin/sshd
    38                 ;;
    39 
    40         stop)
    41                 echo "Stopping SSH Server..."
    42                 killproc /usr/sbin/sshd
    43                 ;;
    44 
    45         reload)
    46                 echo "Reloading SSH Server..."
    47                 reloadproc /usr/sbin/sshd
    48                 ;;
    49              
    50         restart)
    51                 $0 stop
    52                 sleep 1
    53                 $0 start
    54                 ;;
    55 
    56         status)
    57                 statusproc /usr/sbin/sshd
    58                 ;;
    59 
    60         *)
    61                 echo "Usage: $0 {start|stop|reload|restart|status}"
    62                 exit 1
    63                 ;;
    64 esac
    65 
    66 # End $rc_base/init.d/sshd
    67 <command>EOF
    68 chmod 755 /etc/rc.d/init.d/sshd</command></userinput></screen>
    69 
    70 <para>Create the symbolic links to this file in the relevant <filename
    71 class="directory">rc.d</filename> directories with the following
    72 commands:</para>
    73 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    74 ln -sf ../init.d/sshd ../rc0.d/K30sshd &amp;&amp;
    75 ln -sf ../init.d/sshd ../rc1.d/K30sshd &amp;&amp;
    76 ln -sf ../init.d/sshd ../rc2.d/K30sshd &amp;&amp;
    77 ln -sf ../init.d/sshd ../rc3.d/S30sshd &amp;&amp;
    78 ln -sf ../init.d/sshd ../rc4.d/S30sshd &amp;&amp;
    79 ln -sf ../init.d/sshd ../rc5.d/S30sshd &amp;&amp;
    80 ln -sf ../init.d/sshd ../rc6.d/K30sshd</command></userinput></screen>
     17<para>To start the SSH Server at boot, install <filename>/etc/rc.d/init.d/sshd</filename>
     18init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
     19                                                                                                               
     20<screen><userinput><command>make install-sshd</command></userinput></screen>
    8121
    8222</sect3>
  • server/other/rsync/rsync-config.xml

    rff023d1 rae9c528  
    3434server if you want to provide a <application>rsync</application> archive on
    3535your machine. The <application>rsync</application> client doesn't need this
    36 script to be used.  Having said that, if you want to run the <application>rsync
    37 </application> daemon, the <application>rsync</application> daemon init.d script can be
    38 created using the following commands:</para>
     36script to be used.</para>
    3937
    40 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/rsyncd &lt;&lt; "EOF"</command>
    41 #!/bin/sh
    42 # Begin $rc_base/init.d/rsyncd
    43 
    44 # Based on sysklogd script from LFS-3.1 and earlier.
    45 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    46 
    47 . /etc/sysconfig/rc
    48 . $rc_functions
    49 
    50 case "$1" in
    51     start)
    52         echo "Starting RSYNC Server..."
    53         loadproc /usr/bin/rsync --daemon --compress
    54         ;;
    55 
    56     stop)
    57         echo "Stopping RSYNC Server..."
    58         killproc /usr/bin/rsync
    59         ;;
    60 
    61     reload)
    62         echo "Reloading RSYNC Server..."
    63         reloadproc /usr/bin/rsync
    64         ;;
    65            
    66     restart)
    67         $0 stop
    68         sleep 1
    69         $0 start
    70         ;;
    71 
    72     status)
    73         statusproc /usr/bin/rsync
    74         ;;
    75 
    76     *)
    77         echo "Usage: $0 {start|stop|reload|restart|status}"
    78         exit 1
    79         ;;
    80 esac
    81 
    82 # End $rc_base/init.d/rsyncd
    83 <command>EOF
    84 chmod 755 /etc/rc.d/init.d/rsyncd</command></userinput></screen>
    85 
    86 <para>Create the symbolic links to this file in the relevant
    87 <filename class="directory">rc.d</filename> directories with the following
    88 commands:</para>
    89 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    90 ln -sf ../init.d/rsyncd ../rc0.d/K30rsyncd &amp;&amp;
    91 ln -sf ../init.d/rsyncd ../rc1.d/K30rsyncd &amp;&amp;
    92 ln -sf ../init.d/rsyncd ../rc2.d/K30rsyncd &amp;&amp;
    93 ln -sf ../init.d/rsyncd ../rc3.d/S30rsyncd &amp;&amp;
    94 ln -sf ../init.d/rsyncd ../rc4.d/S30rsyncd &amp;&amp;
    95 ln -sf ../init.d/rsyncd ../rc5.d/S30rsyncd &amp;&amp;
    96 ln -sf ../init.d/rsyncd ../rc6.d/K30rsyncd</command></userinput></screen>
     38<para>Install <filename>/etc/rc.d/init.d/rsyncd</filename>
     39init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
     40                                                                                                               
     41<screen><userinput><command>make install-rsyncd</command></userinput></screen>
    9742
    9843</sect3>
  • server/other/samba/samba-config.xml

    rff023d1 rae9c528  
    6969smbpasswd -a -m win2kbox</command></userinput></screen>
    7070
    71 <para>Create the <application>Samba</application> boot script:</para>
    72 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/samba &lt;&lt; "EOF"</command>
    73 #!/bin/sh
    74 # Begin $rc_base/init.d/samba
    75 # Based on sysklogd script from LFS-3.1 and earlier.
    76 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    77 . /etc/sysconfig/rc
    78 . $rc_functions
    79 case "$1" in
    80         start)
    81                 echo "Starting nmbd..."
    82                 loadproc /usr/sbin/nmbd -D
    83                 echo "Starting smbd..."
    84                 loadproc /usr/sbin/smbd -D
    85                 ;;
    86         stop)
    87                 echo "Stopping smbd..."
    88                 killproc /usr/sbin/smbd
    89                 echo "Stopping nmbd..."
    90                 killproc /usr/sbin/nmbd
    91                 ;;
    92         reload)
    93                 echo "Reloading smbd..."
    94                 reloadproc /usr/sbin/smbd
    95                 echo "Reloading nmbd..."
    96                 reloadproc /usr/sbin/nmbd
    97                 ;;
    98         restart)
    99                 $0 stop
    100                 sleep 1
    101                 $0 start
    102                 ;;
    103         status)
    104                 statusproc /usr/sbin/nmbd
    105                 statusproc /usr/sbin/smbd
    106                 ;;
    107         *)
    108                 echo "Usage: $0 {start|stop|reload|restart|status}"
    109                 exit 1
    110                 ;;
    111 esac
    112 # End $rc_base/init.d/samba
    113 <command>EOF</command></userinput></screen>
    114 <para>Add the run level symlinks:</para>
    115 <screen><userinput>chmod 754 /etc/rc.d/init.d/samba &amp;&amp;
    116 ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc0.d/K48samba &amp;&amp;
    117 ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc1.d/K48samba &amp;&amp;
    118 ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc2.d/K48samba &amp;&amp;
    119 ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc3.d/S24samba &amp;&amp;
    120 ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc4.d/S24samba &amp;&amp;
    121 ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc5.d/S24samba &amp;&amp;
    122 ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc6.d/K48samba</userinput></screen>
     71<para>Install <filename>/etc/rc.d/init.d/samba</filename>
     72init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
     73                                                                                                               
     74<screen><userinput><command>make install-samba</command></userinput></screen>
    12375
    12476<para>Now, we'll use our new boot script to start <application>Samba
  • server/other/xinetd/xinetd-config.xml

    rff023d1 rae9c528  
    1010<sect3><title>Configuration Information</title>
    1111
    12 <para>Insure the path to all daemons is <filename
     12<para>Insure the path to all daemons are in <filename
    1313class="directory">/usr/sbin</filename>, rather than the default path of
    1414<filename class="directory">/usr/etc</filename>:</para>
     
    2121found at <ulink url="http://www.xinetd.org"/>.</para>
    2222
    23 <para>Create the <command>xinetd</command> boot script:</para>
    24 
    25 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/xinetd &lt;&lt; "EOF"</command>
    26 #!/bin/sh
    27 # Begin $rc_base/init.d/xinetd
    28 # Based on sysklogd script from LFS-3.1 and earlier.
    29 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    30 . /etc/sysconfig/rc
    31 . $rc_functions
    32 case "$1" in
    33         start)
    34                 echo "Starting xinetd..."
    35                 loadproc /usr/sbin/xinetd
    36                 ;;
    37         stop)
    38                 echo "Stopping xinetd..."
    39                 killproc /usr/sbin/xinetd
    40                 ;;
    41         reload)
    42                 echo "Reloading xinetd..."
    43                 killall -HUP xinetd
    44                 ;;
    45         restart)
    46                 $0 stop
    47                 sleep 1
    48                 $0 start
    49                 ;;
    50         status)
    51                 statusproc /usr/sbin/xinetd
    52                 ;;
    53         *)
    54                 echo "Usage: $0 {start|stop|reload|restart|status}"
    55                 exit 1
    56                 ;;
    57 esac
    58 # End $rc_base/init.d/xinetd
    59 <command>EOF
    60 chmod 754 /etc/rc.d/init.d/xinetd</command></userinput></screen>
    61 
    62 <para>Add the run level symlinks:</para>
    63 
    64 <screen><userinput><command>ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc0.d/K49xinetd &amp;&amp;
    65 ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc1.d/K49xinetd &amp;&amp;
    66 ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc2.d/K49xinetd &amp;&amp;
    67 ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc3.d/S23xinetd &amp;&amp;
    68 ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc4.d/S23xinetd &amp;&amp;
    69 ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc5.d/S23xinetd &amp;&amp;
    70 ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc6.d/K49xinetd</command></userinput></screen>
     23<para>Install <filename>/etc/rc.d/init.d/xinetd</filename>
     24init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
     25                                                                                                               
     26<screen><userinput><command>make install-xinetd</command></userinput></screen>
    7127
    7228<para>Now, we'll use our new boot script to start <command>xinetd</command>: </para>
Note: See TracChangeset for help on using the changeset viewer.