Red Hat Bugzilla – Bug 220144
/etc/init.d/ypserv status reports wrong status
Last modified: 2015-01-07 19:15:18 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:188.8.131.52) Gecko/20061025 Firefox/184.108.40.206
Description of problem:
No matter ypserv is started or stopped, "/etc/init.d/ypserv status" always returns status '0'.
I find that it can be fixed by adding a line in /etc/init.d/ypserv:
The line "RETVAL=$?" should be added after "status ypserv".
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Stop ypserv by command "service ypserv stop"
2. Run "service ypserv status"
3. Run "echo $?"
0 is output
A non-zero number should be output
The component this request has been filed against is not planned for inclusion
in the next update. The decision is based on weighting the priority and number
of requests for a component as well as the impact on the Red Hat Enterprise
Linux user-base: other components are considered having higher priority and the
number of changes we intend to include in update cycles is limited.
Product Management has reviewed and declined this request. You may appeal this
decision by reopening this request.