conf/84574: /etc/rc.d/[cleanvar, cleartmp, abi, power_profile] violate rc.d standards

Alexander Botero-Lowry alex at
Fri Aug 5 07:00:37 GMT 2005

>Number:         84574
>Category:       conf
>Synopsis:       /etc/rc.d/[cleanvar, cleartmp, abi, power_profile] violate rc.d standards
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 05 07:00:35 GMT 2005
>Originator:     Alexander Botero-Lowry
>Release:        6.0BETA1
FreeBSD Laptop 6.0-BETA1 FreeBSD 6.0-BETA1 #1: Sun Jul 31 23:21:29 EDT 2005     root at Laptop:/usr/src/sys/i386/compile/LAPTOP  i386

      /etc/rc.d/cleanvar, cleartmp, abi, and power_profile do not follow Design and Implementation of the NetBSD rc.d System. []. When executed with rcvar each of these scripts behaves in a non standard way. cleanvar and cleartmp attempt to delete files which is a VERY bad behavior, if these scripts were to be run as root with simply rcvar (which SHOULD be harmless) they could damage the system (cleartmp could bring X11 down). abi prints superfolous garbage to the screen, and power_profile does not  have start or stop (or any standard behaviors of an rc.d script really. 
      Mess around with the above mentioned rc scripts only minimally. (not as root you don't want to ruin X11 for example). 
      power_profile should be moved. abi should be re written to only print text when start is called. cleartmp and cleanvar should be rewritten to only delete files within a start function (or in the case of cleartmp possibly split into a script like clearx11, that is set to start by default). Specific patches and recommendations for some of the problems I've already submitted and can be found at misc/83969 and conf/84030. This is a major issue though it may seem trivial because it doesn't allow for good managment tools for the rc.d system. 

More information about the freebsd-bugs mailing list