Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 27951

Summary: running `rc` without any parameters causes weird things ...
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description SpanKY gentoo-dev 2003-09-04 12:35:24 UTC
i dont know what the behavior is *supposed* to be when you run `rc` without any
parameters (and reading the code quickly doesnt seem to yield any answers ...) ...

buuuuuuut if i run `rc` and a service in the current runlevel had failed to
start, then rc will attempt to start those services ... however, if all the
services in the current runlevel started up fine then `rc` will w/out seeming to
do any work ...

good way to test it out:
add bogus rc script to default runlevel (by bogus i mean start() will not return
0) and reboot ... the service should fail at boot time (because it was coded
to).  when you log in, run `rc` ... it should attempt to start that service ...
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-05 11:31:30 UTC
Yep, its expected behaviour - I am pretty sure it is also documented in the
rc-scripts manual.  Will adding a man page for 'rc' be sufficient ?

(If so, what about it Mike? 8)
Comment 2 SpanKY gentoo-dev 2004-05-03 11:28:19 UTC
normal behavior