misc/84030: /etc/rc.d/power_profile is not a real rc.d script

DraX drax at stampede.org
Sat Jul 30 02:00:34 GMT 2005


The following reply was made to PR conf/84030; it has been noted by GNATS.

From: DraX <drax at stampede.org>
To: Brooks Davis <brooks at one-eyed-alien.net>
Cc: freebsd-gnats-submit at 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 at 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
 


More information about the freebsd-bugs mailing list