Bug 70647

Summary: service --status-all is broken
Product: [Retired] Red Hat Public Beta Reporter: Michael Schwendt <bugs.michael>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: limboCC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-20 09:49:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
proposed patch against /sbin/service
none
alternative cleanup patch none

Description Michael Schwendt 2002-08-03 00:56:50 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020724

Description of problem:
"service --status-all" does nothing because it goes into root directory and from
there does not find the System V init scripts.

One possible patch is attached. An alternative would be to use sed.

Version-Release number of selected component (if applicable):
6.88-1

How reproducible:
Always

Comment 1 Michael Schwendt 2002-08-03 00:57:27 UTC
Created attachment 68665 [details]
proposed patch against /sbin/service

Comment 2 Michael Schwendt 2002-08-03 11:07:12 UTC
Another thought...

Since service --status-all doesn't need to "cd /" unlike the start/stop options
and since the script does "cd /" more than once, maybe it would make more sense
to drop the "cd /" at the top and do "cd /" in the "service" script only where
it is really needed. Alternative example patch attached.

Comment 3 Michael Schwendt 2002-08-03 11:07:52 UTC
Created attachment 68705 [details]
alternative cleanup patch

Comment 4 Jay Turner 2002-08-05 13:34:03 UTC
Changing this to 'assigned' as modified inplies that changes have been made and
QA has signed off on the package.

Comment 5 Michael Schwendt 2002-08-20 09:48:56 UTC
Works again with (null), initscripts-6.90-1.

The redundant "cd /" in line 47 (--full-restart) is still there, though. The
single "cd /" at the top should be enough.


Comment 6 Bill Nottingham 2002-08-21 03:42:21 UTC
Extraneous / will be removed in 6.91-1.