Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27951 - running `rc` without any parameters causes weird things ...
Summary: running `rc` without any parameters causes weird things ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-04 12:35 UTC by SpanKY
Modified: 2004-05-03 11:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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