Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2001 02:10:04 -0800 (PST)
From:      Richard Roderick <richard@gohome.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/25049: named.restart does not use named_flags from rc.conf
Message-ID:  <200102131010.f1DAA4A63846@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/25049; it has been noted by GNATS.

From: Richard Roderick <richard@gohome.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: misc/25049: named.restart does not use named_flags from
  rc.conf
Date: Tue, 13 Feb 2001 02:09:24 -0800

 >Shouldn't this be better done with the source_rc_confs mechanism introduced
 >lately?  (it might be a good idea to have a -stable system handy before
 >submitting bug reports, so you are sure you are not submitting something
 >which has been fixed, or out of date :)
 
 (: ...This is my first attempt at helping... :)
 
 So, I went to my stable server and saw what you meant!  Of course this is a 
 small
 change isn't it? I'm not totally familiar with the addition of 
 source_rc_confs but I think
 I get it. So the patch I suggested would become the following, correct?
 
 diff -u named.restart.sh.orig named.restart.sh
 --- named.restart.sh.orig       Fri Aug 27 18:17:25 1999
 +++ named.restart.sh    Tue Feb 13 00:18:14 2001
 @@ -4,4 +4,13 @@
   # $FreeBSD: src/usr.sbin/named.restart/named.restart.sh,v 1.2 1999/08/28 
 01:17:25 peter Exp $
   #
 
 -exec %DESTSBIN%/%INDOT%ndc restart
 +# If there is a global system configuration file, suck it in.
 +#
 +if [ -r /etc/defaults/rc.conf ]; then
 +        . /etc/defaults/rc.conf
 +        source_rc_confs
 +elif [ -r /etc/rc.conf ]; then
 +        . /etc/rc.conf
 +fi
 +
 +exec %DESTSBIN%/%INDOT%ndc restart ${named_flags}
 
 


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?200102131010.f1DAA4A63846>