Bug 70647 - service --status-all is broken
Summary: service --status-all is broken
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: initscripts (Show other bugs)
(Show other bugs)
Version: limbo
Hardware: i386 Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2002-08-03 00:56 UTC by Michael Schwendt
Modified: 2014-03-17 02:29 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-08-20 09:49:01 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
proposed patch against /sbin/service (621 bytes, patch)
2002-08-03 00:57 UTC, Michael Schwendt
no flags Details | Diff
alternative cleanup patch (714 bytes, patch)
2002-08-03 11:07 UTC, Michael Schwendt
no flags Details | Diff

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):

How reproducible:

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.

Note You need to log in before you can comment on or make changes to this bug.