Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 May 1995 06:39:50 -0700 (PDT)
From:      "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
To:        nnd@gw.itfs.nsk.su (Nickolay N. Dudorov)
Cc:        FreeBSD-current@FreeBSD.org (FreeBSD current)
Subject:   Re: Named in /etc/{rc,sysconfig} and named.restart
Message-ID:  <199505021339.GAA01194@gndrsh.aac.dev.com>
In-Reply-To: <199505021131.SAA10623@gw.itfs.nsk.su> from "Nickolay N. Dudorov" at May 2, 95 06:31:31 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> >>       /etc/sysconfig says that "for most hosts"
> >> named should be started as
> >>       named -b /etc/namedb/named.boot
> >> but scripts such as named.restart provided "for all hosts"
> >> restarts named without any args (assuming /etc/named.boot).
> >>
> >>       We'll either modify named sources to look at
> >> /etc/namedb/named.boot or modify scripts (named.restart etc),
> >> or upgarde to bind.4.9.3-BETA17 and use (modified) ndc.sh
> >> for named control.
> >
> >Here is my current solution to this, it will be commited after
> >you review it and tell me that it does just what you want it
> >to do.
> 
> 	Yes, it solves my problem.

Great, thanks for testing it for me, I always like to have the
original problem reporter check my fix just incase I screwed it
up someplace along the road.

> >
> >It fixes the problem you pointed out, and a few others that
> >I found along the way (like errors if no named has ever been
> >started).  It also will *not* start a named if /etc/sysconfig
> >says to not start one, just like /etc/rc :-)
> 
> 	I can imagine just one situation in wich this
> may be not so suitable:
> 	if/when I began to configure 'named' first time
> in my life, write/edit my named.boot etc. run named manually,
> discover some errors, correct them and try 'named.restart' ;-)
> (Yes, I must change named flags in /etc/sysconfig before
> starting experiments with named, but we (you?) MUST say
> about that in some doc/FAQ ).

How about right in the man page for named.restart:

Index: named.restart.8
===================================================================
RCS file: /home/ncvs/src/usr.sbin/named/tools/named.restart/named.restart.8,v
retrieving revision 1.2
diff -c -r1.2 named.restart.8
*** 1.2	1994/11/19 13:41:26
--- named.restart.8	1995/05/02 13:36:45
***************
*** 59,65 ****
  named.restart \- stop and restart the name server
  .SH DESCRIPTION
  This command sends a \s-1SIGKILL\s+1 to the running name server and then
! starts a new one.
  .SH BUGS
  Does not check to see if the name server is actually running, and could
  use a stale PID cache file which may result in the death of an unrelated
--- 59,67 ----
  named.restart \- stop and restart the name server
  .SH DESCRIPTION
  This command sends a \s-1SIGKILL\s+1 to the running name server and then
! starts a new one if
! .IR /etc/sysconfig
! states that one should be running on this system.
  .SH BUGS
  Does not check to see if the name server is actually running, and could
  use a stale PID cache file which may result in the death of an unrelated


-- 
Rod Grimes                                      rgrimes@gndrsh.aac.dev.com
Accurate Automation Company                   Custom computers for FreeBSD



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505021339.GAA01194>