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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.