From nobody@FreeBSD.org  Mon Jul 25 01:58:11 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A828716A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jul 2005 01:58:11 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7C24343D46
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jul 2005 01:58:11 +0000 (GMT)
	(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 j6P1wBE9021320
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jul 2005 01:58:11 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j6P1wBlS021319;
	Mon, 25 Jul 2005 01:58:11 GMT
	(envelope-from nobody)
Message-Id: <200507250158.j6P1wBlS021319@www.freebsd.org>
Date: Mon, 25 Jul 2005 01:58:11 GMT
From: Alexander Botero-Lowry <drax@stampede.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /etc/rc.d/power_profile is not a real rc.d script 
X-Send-Pr-Version: www-2.3

>Number:         84030
>Category:       conf
>Synopsis:       [patch] /etc/rc.d/power_profile is not a real rc.d script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 25 02:00:33 GMT 2005
>Closed-Date:    Mon Dec 05 09:25:22 GMT 2005
>Last-Modified:  Mon Dec 05 09:25:22 GMT 2005
>Originator:     Alexander Botero-Lowry
>Release:        5.4-RELEASE
>Organization:
>Environment:
FreeBSD Kroeber.freebsd.box 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
      /etc/rc.d/power_profile is not a true rc.d script and is not needed in the boot proccess. In fact it is only referenced in /etc/devd.conf. 
>How-To-Repeat:
      /etc/rc.d/power_profile rcvar
>Fix:
      Apply http://www.stampede.org/~drax/devd.patch AND move /etc/rc.d/power_profile to /etc/power_profile 
>Release-Note:
>Audit-Trail:

From: Brooks Davis <brooks@one-eyed-alien.net>
To: Alexander Botero-Lowry <drax@stampede.org>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/84030: /etc/rc.d/power_profile is not a real rc.d script
Date: Mon, 25 Jul 2005 10:29:40 -0700

 >       Apply http://www.stampede.org/~drax/devd.patch AND move /etc/rc.d/power_profile to /etc/power_profile 
 
 /etc/rc.d/power_profile should not be moved to /etc.  If we
 do decide that it does not belong in /etc/rc.d, then a new
 directory should be created to house it (and /etc/rc.d/dhclient and
 /etc/rc.d/wpa_supplicant).  Dropping various non-startup scripts in
 /etc/ is a trend we should avoid.
 
 -- Brooks

From: Alexander Botero-Lowry <alex@complete-systems.net>
To: bug-followup@FreeBSD.org, drax@stampede.org, brooks@one-eyed-alien.net
Cc:  
Subject: Re: conf/84030: [patch] /etc/rc.d/power_profile is not a real rc.d script
Date: Mon, 25 Jul 2005 21:06:49 -0700

 That's fine. But still /etc/rc.d/dhclient complies with section 4.2.3 of Design and Implementation of the NetBSD rc.d system. I don't have a -CURRENT or -BETA box so I can't say about /etc/rc.d/wpa_supplicant. Maybe scripts related to devd should get /etc/dev.d or something? I really can't say the answer to this I just know that /etc/rc.d/power_profile doesn't belong and it's not because it's a non-startup script. It doesn't belong because it doesn't follow section 4.2.3 of the document that defines how rc .d scripts that derive from the NetBSD system are supposed to work.
 
 Alexander [drax@stampede.org, I had the mail bounce so I'm using another account] 

From: DraX <drax@stampede.org>
To: Brooks Davis <brooks@one-eyed-alien.net>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/84030: /etc/rc.d/power_profile is not a real rc.d script
Date: Mon, 25 Jul 2005 15:08:53 -0600 (MDT)

 Though it's nice to avoid the actual problem with "that's not the way it
 should be done." It fails to address that in effect freebsd is violating
 the design of NetBSD rc.d. In _Design and Implementation of the NetBSD
 rc.d system_, Luke Mewburn lays out a standard for all scripts in
 /etc/rc.d. This standard is located in section 4.2.3 of the paper
 mentioned above. In effect he states that each script in /etc/rc.d should
 include the following arguments: start, and stop. With potential to also
 have restart, status, and rcvar.
 
 | [17:16] alex@Kroeber: ~> /etc/rc.d/power_profile start
 | Usage: /etc/rc.d/power_profile [0x00|0x01]
 
 In this case it is clear that power_profile violates the standard for the
 NetBSD rc.d system that is used by FreeBSD. /etc/rc.d/dhclient on the
 otherhand complies to the standard. I do not have a -CURRENT system
 avaliable so I can not say on the status of /etc/rc.d/wpa_supplicant.
 Scripts in /etc/rc.d/* should comply to the standard laid out by Design
 and Implementation of the NetBSD rc.d system.
 
 Apoligies for the gruffness,
 Alexander
 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Mon Dec 5 09:24:43 GMT 2005 
State-Changed-Why:  

conf/84574 contains a more complete description of the problem, 
without the hostility. :) 


Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Mon Dec 5 09:24:43 GMT 2005 
Responsible-Changed-Why:  

I closed this PR 

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