Bug 820442 - 'service lm_sensors status' is returning a bad error code
Summary: 'service lm_sensors status' is returning a bad error code
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: lm_sensors
Version: 5.8
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jaromír Cápík
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks: 1002709
TreeView+ depends on / blocked
 
Reported: 2012-05-09 23:29 UTC by Nilesh Parmar
Modified: 2018-12-03 17:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-07 01:37:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nilesh Parmar 2012-05-09 23:29:24 UTC
Description of problem:
'service lm_sensors status' is returning a bad error code

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

How reproducible:


Steps to Reproduce:
1.# /etc/init.d/lm_sensors stop
 # /etc/init.d/lm_sensors status
2.# echo $? (gives 0) 

3.# /etc/init.d/lm_sensors start
  # /etc/init.d/lm_sensors status
  # echo $? (gives 0)

Actual results:
exit status return code gives zero when service stop

Expected results:
exit status return code should give non-zero when service stop

Additional info:
other services like vsftpd give non-zero exit status when service stop while exit status is zero when service start

[root@sv0143 ~]# /etc/init.d/cpuspeed status
cpuspeed is stopped
[root@sv0143 ~]# echo $?
3
[root@sv0143 ~]# /etc/init.d/lm_sensors status
[root@sv0143 ~]# echo $?
0

Comment 1 RHEL Program Management 2013-05-01 07:20:29 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 3 Andrius Benokraitis 2013-10-07 01:37:24 UTC
This Bugzilla has been reviewed by Red Hat and is not planned on being addressed in Red Hat Enterprise Linux 5, and therefore will be closed. If this bug is critical to production systems, please contact your Red Hat support representative and provide sufficient business justification.


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