Bug 99540 - /etc/init.d/boot status does funny things
Summary: /etc/init.d/boot status does funny things
Status: RESOLVED INVALID
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Preview 3
Hardware: Other All
: P5 - None : Normal
Target Milestone: ---
Assignee: Dr. Werner Fink
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-29 19:11 UTC by Dirk Mueller
Modified: 2007-06-06 17:16 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Mueller 2005-07-29 19:11:04 UTC
the /etc/init.d/boot script does not check if it is started with a LSB  
standard parameter, like "status".   
  
running it in an already running system does a lot of bad things, so   
this should be prevented.   
 
alternatively (preferably) move non-sysv5 init files out of /etc/init.d
Comment 1 Ruediger Oertel 2005-07-30 10:26:13 UTC
vaild part: /etc/init.d/boot is missing some targets, ok. 
 
questionable: there are quite some rc-scripts in /etc/init.d that 
will have all kinds of effects if started/stopped arbitrarily ... 
 
keeping "boot" and "rc" in /etc/init.d does make sense IMHO, 
but maybe we should implement some handling for "status/start/stop/...", 
at least to ignore them. 
 
Werner, normally this is your area, what do you think ? 
 
Comment 2 Dirk Mueller 2005-07-30 12:41:33 UTC
there are not that many scripts in /etc/init.d that are not LSB compliant init 
scripts. Anyway, this bugreport is not about starting / stopping arbitarily 
doing bad things: thats obvious. However, "query-only" targets like "status" 
should either not be supported, or not doing anything, and invoking 
those /etc/init scripts without one of the standard parameters should invoke 
the "Usage: .." output instead of doing something.  
 
At least thats the behaviour the user expects IMHO 
Comment 3 Dr. Werner Fink 2005-08-02 10:07:37 UTC
/etc/init.d/boot and /etc/init.d/rc are not boot script which
handle arguments and even in future those script will not
do that.

Do never call /etc/init.d/boot or /etc/init.d/rc if you do not
know what they are doing.  The script /etc/init.d/boot is for
system linitialization and executed during system boot, the
script /etc/init.d/rc is for changing the current runlevel
to an other runlevel.

For a description see manual page init.d(7)
btw: users which want to use scripts for checking status
or restarting a service should use the

        rc<service>

interface.