From owner-freebsd-bugs Mon Feb 12 18:10: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CC91137B4EC for ; Mon, 12 Feb 2001 18:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1D2A1q92019; Mon, 12 Feb 2001 18:10:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 582C037B4EC for ; Mon, 12 Feb 2001 18:02:42 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1D22gb89367; Mon, 12 Feb 2001 18:02:42 -0800 (PST) (envelope-from nobody) Message-Id: <200102130202.f1D22gb89367@freefall.freebsd.org> Date: Mon, 12 Feb 2001 18:02:42 -0800 (PST) From: richard@gohome.net To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/25049: named.restart does not use named_flags from rc.conf Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 25049 >Category: misc >Synopsis: named.restart does not use named_flags from rc.conf >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Feb 12 18:10:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Richard Roderick >Release: 4.2 >Organization: >Environment: FreeBSD dns.pdx.uspops.com 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Nov 20 13:02:55 GMT 2000 jkh@bento.FreeBSD.org:/usr/src/sys/compile/GENERIC i386 >Description: named.restart does not maintain the named_flags, particularly when named is started via rc when rc.conf contains named_enable="YES" >How-To-Repeat: >Fix: modify named.restart to include rc.conf and append ${named_flags} to the exec ndc restart line. Sample patch included. --- src/usr.sbin/named.restart/named.restart.sh.orig Mon Feb 12 17:59:01 2001 +++ src/usr.sbin/named.restart/named.restart.sh Mon Feb 12 18:00:33 2001 @@ -4,4 +4,12 @@ # $FreeBSD: src/usr.sbin/named.restart/named.restart.sh,v 1.1.2.1 1999/08/29 15:44:26 peter Exp $ # -exec %DESTSBIN%/%INDOT%ndc restart +# If there is a global system configuration file, suck it in. +# +if [ -f /etc/defaults/rc.conf ]; then + . /etc/defaults/rc.conf +elif [ -f /etc/rc.conf ]; then + . /etc/rc.conf +fi + +exec %DESTSBIN%/%INDOT%ndc restart ${named_flags} >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message