Date: Sun, 17 Nov 2002 23:15:23 -0500 From: John De Boskey <jwd@bsdwins.com> To: freebsd-current@freebsd.org Subject: Run two copies of named from rc.conf? Message-ID: <20021118041523.GA45159@BSDWins.Com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021118041523.GA45159>