From ivt@crocus.gamma.ru  Sun Jun  8 07:27:30 1997
Received: from crocus.gamma.ru (crocus.gamma.ru [193.124.255.1])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA14337
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 8 Jun 1997 07:27:27 -0700 (PDT)
Received: (from ivt@localhost) by crocus.gamma.ru (8.8.5/8.7.3) id SAA05800; Sun, 8 Jun 1997 18:27:08 +0400 (MSD)
Message-Id: <199706081427.SAA05800@crocus.gamma.ru>
Date: Sun, 8 Jun 1997 18:27:08 +0400 (MSD)
From: Igor Timkin <ivt@gamma.ru>
Reply-To: ivt@crocus.gamma.ru
To: FreeBSD-gnats-submit@freebsd.org
Subject: ndc's bug
X-Send-Pr-Version: 3.2

>Number:         3811
>Category:       bin
>Synopsis:       ndc's bug
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun  8 07:30:01 PDT 1997
>Closed-Date:    Mon Jun 9 03:05:07 PDT 1997
>Last-Modified:  Mon Jun  9 03:06:00 PDT 1997
>Originator:     Igor Timkin
>Release:        FreeBSD 2.2.2-RELEASE i386
>Organization:
Gamma Ltd., Moscow, Russia
>Environment:
		2.2.2-RELEASE, bind-4.9.4

>Description:
	ndc (from named distibute) use /etc/sysconfig instead of /etc/rc.conf

>How-To-Repeat:

	named.restart:
Jun  8 17:56:36 crocus named[5158]: /etc/named.boot: No such file or directory

>Fix:
	
*** /usr/src/usr.sbin/ndc/ndcedit.awk.old	Tue Nov 12 12:11:33 1996
--- /usr/src/usr.sbin/ndc/ndcedit.awk	Sun Jun  8 18:11:37 1997
***************
*** 7,21 ****
  	print ""
  
  	print "# If there is a global system configuration file, suck it in."
! 	print "if [ -f /etc/sysconfig ]; then"
! 	print "\t. /etc/sysconfig"
  	print "fi\n"
  }
  {
  	if ($1 == "named") {
! 		printf "\t\t# $namedflags is imported from /etc/sysconfig\n"
! 		printf "\t\tif [ \"X${namedflags}\" != \"XNO\" ]; then\n"
! 		printf "\t\t\tnamed ${namedflags} && {\n"
  		getline
  		printf "\t%s\n", $0
  		getline
--- 7,21 ----
  	print ""
  
  	print "# If there is a global system configuration file, suck it in."
! 	print "if [ -f /etc/rc.conf ]; then"
! 	print "\t. /etc/rc.conf"
  	print "fi\n"
  }
  {
  	if ($1 == "named") {
! 		printf "\t\t# $named_enable and $named_flags are imported from /etc/sysconfig\n"
! 		printf "\t\tif [ \"X${named_enable}\" != \"XNO\" ]; then\n"
! 		printf "\t\t\tnamed ${named_flags} && {\n"
  		getline
  		printf "\t%s\n", $0
  		getline
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Mon Jun 9 03:05:07 PDT 1997 
State-Changed-Why:  
Already reported by Igor Vinokurov and fixed on May 27. 
>Unformatted:
