From owner-freebsd-current Sun Nov 17 20:30:48 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06ED337B401 for ; Sun, 17 Nov 2002 20:30:46 -0800 (PST) Received: from bsdone.bsdwins.com (www.bsdwins.com [192.58.184.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3756943E77 for ; Sun, 17 Nov 2002 20:30:45 -0800 (PST) (envelope-from jwd@bsdwins.com) Received: from bsdone.bsdwins.com (localhost [127.0.0.1]) by bsdone.bsdwins.com (8.12.5/8.12.5) with ESMTP id gAI4FOW2045175 for ; Sun, 17 Nov 2002 23:15:27 -0500 (EST) (envelope-from jwd@www.bsdwins.com) Received: (from jwd@localhost) by bsdone.bsdwins.com (8.12.5/8.12.5/Submit) id gAI4FNb6045174 for freebsd-current@freebsd.org; Sun, 17 Nov 2002 23:15:23 -0500 (EST) Date: Sun, 17 Nov 2002 23:15:23 -0500 From: John De Boskey To: freebsd-current@freebsd.org Subject: Run two copies of named from rc.conf? Message-ID: <20021118041523.GA45159@BSDWins.Com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message