Date: Sun, 8 Jun 1997 18:27:08 +0400 (MSD) From: Igor Timkin <ivt@gamma.ru> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/3811: ndc's bug Message-ID: <199706081427.SAA05800@crocus.gamma.ru> Resent-Message-ID: <199706081430.HAA14425@hub.freebsd.org>
index | next in thread | raw e-mail
>Number: 3811
>Category: bin
>Synopsis: ndc's bug
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jun 8 07:30:01 PDT 1997
>Last-Modified:
>Originator: Igor Timkin
>Organization:
Gamma Ltd., Moscow, Russia
>Release: FreeBSD 2.2.2-RELEASE i386
>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
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706081427.SAA05800>
