From heller@socko2.cdnow.com  Tue Jun 17 15:13:34 1997
Received: from socko2.cdnow.com (socko2.cdnow.com [198.138.235.79])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA11649
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Jun 1997 15:13:32 -0700 (PDT)
Received: (from root@localhost)
	by socko2.cdnow.com (8.8.5/8.8.5) id SAA06952;
	Tue, 17 Jun 1997 18:14:18 -0400 (EDT)
Message-Id: <199706172214.SAA06952@socko2.cdnow.com>
Date: Tue, 17 Jun 1997 18:14:18 -0400 (EDT)
From: Karl Heller <heller@socko2.cdnow.com>
Reply-To: heller@cdnow.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: ndc uses /etc/sysconfig instead of /etc/rc.conf
X-Send-Pr-Version: 3.2

>Number:         3893
>Category:       conf
>Synopsis:       ndc uses /etc/sysconfig instead of /etc/rc.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 17 15:20:00 PDT 1997
>Closed-Date:    Tue Jun 17 18:55:39 PDT 1997
>Last-Modified:  Tue Jun 17 18:56:35 PDT 1997
>Originator:     Karl Heller
>Release:        FreeBSD 2.2.2-RELEASE i386
>Organization:
CDnow - The World's Largest Online Music Store http://cdnow.com
>Environment:

	Name server, sitting on a nice metal rack. =)

>Description:

   /usr/sbin/ndc loads /etc/sysconfig.  In 2.2.2, this file is /etc/rc.conf.

>How-To-Repeat:

  Set:
  named_enable="YES"              # Run named, the DNS server (or NO).
  named_flags="-b /etc/namedb/named.boot"         # Flags to named (if enabled).

  in /etc/rc.conf

  do a "ndc start".

  named will not start since it can not find named.boot

  All references to variable in /etc/sysconfig are without an underscore.


>Fix:
	
 Change /usr/sbin/ndc to load /etc/rc.conf instead of /etc/sysconfig.
 Modify /etc/rc.conf and remove "_" in named_enable and named_flags 
 or ( better ) add "_" to all named variables in ndc.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Tue Jun 17 18:55:39 PDT 1997 
State-Changed-Why:  
The sysconfig -> rc.conf problem was actually fixed awhile back, 
but you got me to look at the fix again and I just discovered 
another bogon with it, so thanks for that. :-)  It's now 
fixed to everyone's satisfaction, I hope. 
>Unformatted:
