From hsu@ns1.bbnetworks.net  Sun Jan  6 15:00:15 2008
Return-Path: <hsu@ns1.bbnetworks.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1EE2316A41A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  6 Jan 2008 15:00:15 +0000 (UTC)
	(envelope-from hsu@ns1.bbnetworks.net)
Received: from ns1.bbnetworks.net (ns1.bbnetworks.net [212.16.96.1])
	by mx1.freebsd.org (Postfix) with ESMTP id A9FD913C455
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  6 Jan 2008 15:00:14 +0000 (UTC)
	(envelope-from hsu@ns1.bbnetworks.net)
Received: from ns1.bbnetworks.net (localhost [127.0.0.1])
	by ns1.bbnetworks.net (8.14.2/8.14.2) with ESMTP id m06EeRsN021209
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 6 Jan 2008 16:40:27 +0200 (EET)
	(envelope-from hsu@ns1.bbnetworks.net)
Received: (from root@localhost)
	by ns1.bbnetworks.net (8.14.2/8.14.2/Submit) id m06EeQPG021208;
	Sun, 6 Jan 2008 16:40:26 +0200 (EET)
	(envelope-from hsu)
Message-Id: <200801061440.m06EeQPG021208@ns1.bbnetworks.net>
Date: Sun, 6 Jan 2008 16:40:26 +0200 (EET)
From: Heikki Suonsivu <hsu@bbnetworks.net>
Reply-To: Heikki Suonsivu <hsu@bbnetworks.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: conf
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         119384
>Category:       conf
>Synopsis:       /etc/defaults/rc.conf sets wrong path to named.pid
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 06 15:10:00 UTC 2008
>Closed-Date:    Mon Jan 07 03:21:01 UTC 2008
>Last-Modified:  Mon Jan 07 03:21:01 UTC 2008
>Originator:     Heikki Suonsivu
>Release:        FreeBSD 6.3-PRERELEASE i386
>Organization:
Backbone Networks Ltd
>Environment:
System: FreeBSD ns1.bbnetworks.net 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #3: We\
d Jan 2 12:44:51 EET 2008 hsu@ns1.bbnetworks.net:/usr/obj/usr/src/sys/GENERIC i\
386

RELENG_6 (may apply to other versions)

>Description:

        /etc/defaults/rc.conf sets wrong path to named.pid, it says
        /var/run/named/pid, while the correct path seems to be
        /var/run/named.pid


>How-To-Repeat:

        sh /etc/rc.d/named restart

        will complain that named is not running, while it is.

>Fix:

        Fix: named/pid -> named.pid in /etc/defaults/rc.conf

        Workaround: set named_pidfile in /etc/rc.conf.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Jan 6 17:30:05 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer(s). 

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

From: "barbara" <barbara.xxx1975@libero.it>
To: "bug-followup" <bug-followup@FreeBSD.org>,
	"hsu" <hsu@bbnetworks.net>,
	"freebsd-bugs" <freebsd-bugs@freebsd.org>
Cc:  
Subject: Re: conf/119384: /etc/defaults/rc.conf sets wrong path to named.pid
Date: Sun,  6 Jan 2008 22:52:31 +0100

 http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/defaults/rc.conf#rev1.165
 http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/defaults/rc.conf#rev1.216
 http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/defaults/rc.conf#rev1.217
 
 

From: "barbara" <barbara.xxx1975@libero.it>
To: "bug-followup" <bug-followup@FreeBSD.org>,
	"hsu" <hsu@bbnetworks.net>,"freebsd-bugs" <freebsd-bugs@freebsd.org>
Cc:  
Subject: Re: conf/119384: /etc/defaults/rc.conf sets wrong path to named.pid
Date: Sun,  6 Jan 2008 23:39:10 +0100

 The first link should have been
 http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/defaults/rc.conf#rev1.166
 
 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Mon Jan 7 03:18:25 UTC 2008 
State-Changed-Why:  

As the other user ("barbara") was kind enough to point out, 
this is by design so that an unprivileged named process can 
write to the /var/run/named directory.  

Please see the comments in /etc/defaults/rc.conf, about 
setting this to the same value in rc.conf and named.conf. 

Doug 


Responsible-Changed-From-To: freebsd-rc->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Mon Jan 7 03:18:25 UTC 2008 
Responsible-Changed-Why:  

My area. 

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