It would be nice if rc.conf could start a 2nd copy
of named (split dns). Comments on the following simplistic
patch?

-John

cvs diff: Diffing src/etc
Index: src/etc/rc.network
===================================================================
RCS file: /home/ncvs/src/etc/rc.network,v
retrieving revision 1.138
diff -u -r1.138 rc.network
--- src/etc/rc.network  2 Nov 2002 08:21:26 -0000       1.138
+++ src/etc/rc.network  18 Nov 2002 04:22:00 -0000
@@ -24,7 +24,7 @@
 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 # SUCH DAMAGE.
 #
-# $FreeBSD$
+# $FreeBSD: src/etc/rc.network,v 1.138 2002/11/02 08:21:26 ume Exp $
 #      From: @(#)netstart      5.9 (Berkeley) 3/30/91
 #
 
@@ -561,6 +561,11 @@
        case ${named_enable} in
        [Yy][Ee][Ss])
                echo -n ' named';       ${named_program:-named} ${named_flags}
+               ;;
+       esac
+       case ${named_enable2} in
+       [Yy][Ee][Ss])
+               echo -n ' named';       ${named_program2:-named}
${named_flags2}
                ;;
        esac
 
cvs diff: Diffing src/etc/defaults
Index: src/etc/defaults/rc.conf
===================================================================
RCS file: /home/ncvs/src/etc/defaults/rc.conf,v
retrieving revision 1.163
diff -u -r1.163 rc.conf
--- src/etc/defaults/rc.conf    15 Nov 2002 08:26:36 -0000      1.163
+++ src/etc/defaults/rc.conf    18 Nov 2002 04:25:01 -0000
@@ -13,7 +13,7 @@
 #
 # All arguments must be in double or single quotes.
 #
-# $FreeBSD$
+# $FreeBSD: src/etc/defaults/rc.conf,v 1.163 2002/11/15 08:26:36 ru Exp $
 
 ##############################################################
 ###  Important initial Boot-time options  ####################
@@ -140,6 +140,10 @@
                                # components of named. See /etc/rc.d/named.
 named_symlink_enable="YES"     # Symlink /var/run/named.pid and /var/run/ndc
                                # to their chrooted counterparts.
+
+named_enable2="NO"             # Run a 2nd copy of named?
+named_program2="/usr/sbin/named"
+named_flags2="-u bind -g bind"
 
 #
 # kerberos. Do not run the admin daemons on slave servers


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to