bin/130782: rc(8) makes undesirable assumptions on local startup scripts

Thomas Quinot thomas at cuivre.fr.eu.org
Tue Jan 20 08:20:01 PST 2009


>Number:         130782
>Category:       bin
>Synopsis:       rc(8) makes undesirable assumptions on local startup scripts
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 20 16:20:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Quinot
>Release:        FreeBSD 7.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD melamine.cuivre.fr.eu.org 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Tue Sep 2 21:01:50 CEST 2008 root at melamine.cuivre.fr.eu.org:/space/build/obj/space/build/src/RELENG_7/sys/GENERIC i386


	
>Description:
Per the rc(8) man page, startup scripts need to support the commands:
start, stop, restart, status, poll, and rcvar.

However /etc/rc actually assumes that all startup scripts also support
at least faststart and quietstart, and this is entirely undocumented.
One cannot reasonably assume that all local startup scripts, including those
for 3rd party software, will rely on run_rc_command, so we should make
sure that scripts supporting only the documented commands are
properly handled.

>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list