Red Hat Bugzilla – Bug 70647
service --status-all is broken
Last modified: 2014-03-16 22:29:45 EDT
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):
Created attachment 68665 [details]
proposed patch against /sbin/service
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.
Created attachment 68705 [details]
alternative cleanup patch
Changing this to 'assigned' as modified inplies that changes have been made and
QA has signed off on the package.
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.
Extraneous / will be removed in 6.91-1.