Date: Mon, 12 Feb 2001 18:02:42 -0800 (PST) From: richard@gohome.net To: freebsd-gnats-submit@FreeBSD.org Subject: misc/25049: named.restart does not use named_flags from rc.conf Message-ID: <200102130202.f1D22gb89367@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102130202.f1D22gb89367>
