From nobody@FreeBSD.org  Wed Feb 21 21:05:42 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id EC99916A402
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Feb 2007 21:05:42 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id DF78113C441
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Feb 2007 21:05:42 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l1LL5gu9098884
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Feb 2007 21:05:42 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l1LL5gCD098883;
	Wed, 21 Feb 2007 21:05:42 GMT
	(envelope-from nobody)
Message-Id: <200702212105.l1LL5gCD098883@www.freebsd.org>
Date: Wed, 21 Feb 2007 21:05:42 GMT
From: Albert Chin<china@thewrittenword.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Add $rndc_program to specify path to rndc, similar to $named_program
X-Send-Pr-Version: www-3.0

>Number:         109409
>Category:       conf
>Synopsis:       [request] Add $rndc_program to specify path to rndc, similar to $named_program
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 21 21:10:05 GMT 2007
>Closed-Date:    Sun Oct 28 00:35:03 UTC 2007
>Last-Modified:  Sun Oct 28 00:35:03 UTC 2007
>Originator:     Albert Chin
>Release:        6.2-STABLE
>Organization:
>Environment:
FreeBSD maetel.il.thewrittenword.com 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jan 19 10:45:08 CST 2007     china@maetel.il.thewrittenword.com:/opt/freebsd/obj/opt/freebsd/src/sys/TWW  i386

>Description:
/etc/rc.d/named allows you to specify the path to a separate "named" via
$named_program. However, the system "rndc" program is assumed. How about
a $rndc_program variable to specify a custom "rndc" program similar to
$named_program?

This will allow us to use our custom-built BIND with /etc/rc.d/named.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Feb 21 23:27:27 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109409 
State-Changed-From-To: open->analyzed 
State-Changed-By: dougb 
State-Changed-When: Thu Feb 22 09:17:48 UTC 2007 
State-Changed-Why:  

This is definitely not how I want to accomplish this. 
The proper way to deal with this is to have rc.d/named 
determine its PREFIX and run it's dependent programs 
relative to that. 


Responsible-Changed-From-To: freebsd-rc->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Thu Feb 22 09:17:48 UTC 2007 
Responsible-Changed-Why:  

I'm working on this problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109409 
State-Changed-From-To: analyzed->patched 
State-Changed-By: dougb 
State-Changed-When: Mon Oct 22 09:51:49 UTC 2007 
State-Changed-Why:  

I just committed version 1.27 of rc.d/named which has a 
fix for this issue. Please try it and let me know if it 
works for you. 

Doug 


http://www.freebsd.org/cgi/query-pr.cgi?pr=109409 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/109409: commit references a PR
Date: Mon, 22 Oct 2007 14:26:01 +0000 (UTC)

 dougb       2007-10-22 09:38:44 UTC
 
   FreeBSD src repository
 
   Modified files:
     etc/rc.d             named 
   Log:
   1. Determine the location of the rndc* binaries relative to $command
   so that when using named from the ports (or elsewhere) the proper rndc*
   commands will be run.
   
   2. Rework the stop routine using ideas from brooks and delphij.
   Specifically I am duplicating a lot of code from rc.subr's stop routine
   so that this one will behave more like the one in rc.subr, but use rndc
   to kill the daemon (or regular kill if that fails). This also avoids
   the problems related to using killall if rndc fails, which is bad if
   you're running more than one named on the same box.
   
   3. Take a concept from gshapiro and allow the rndc.key file to be
   owned by root OR the named_uid user.
   
   Although I used different solutions, this commit handles issues raised in:
   PR:     conf/73929
   PR:     conf/103976
   PR:     conf/109409
   
   Revision  Changes    Path
   1.27      +22 -14    src/etc/rc.d/named
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: dougb 
State-Changed-When: Sun Oct 28 00:34:52 UTC 2007 
State-Changed-Why:  

The patch has now been MFC'ed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109409 
>Unformatted:
