Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 616852

Summary: Wrong exit status code in initscript
Product: Red Hat Enterprise Linux 6 Reporter: Michal Fabry <mfabry>
Component: systemtapAssignee: Frank Ch. Eigler <fche>
Status: CLOSED WONTFIX QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: high    
Version: 6.1CC: dkovalsk, mjw, ohudlick, syeghiay
Target Milestone: rcKeywords: RHELNAK
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-22 21:35:02 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:
Bug Depends On:    
Bug Blocks: 633349    

Description Michal Fabry 2010-07-21 14:33:47 UTC
Problem with exit status code when restarting stopped service:

--------
# service systemtap status
one is stopped
# service systemtap restart

Starting systemtap: [WARNING]
# echo $?
5
--------
According to [1] there should be exit code 7 (program is not running) and not 5 (program is not installed).


[1] https://fedoraproject.org/wiki/FCNewInit/Initscripts

Comment 2 Michal Fabry 2010-07-21 14:50:05 UTC
I also overlooked wrong exit code when someone with insufficient rights is trying to restart service. It should return 4 (user had insufficient privilege) and not 1.

Comment 3 RHEL Program Management 2010-07-21 14:58:10 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 6 Frank Ch. Eigler 2010-11-22 21:31:27 UTC
These appear to be minor inconsistencies with standards that assume that some of the error conditions are easier to tell apart than it is for us in stap land.

Comment 7 RHEL Program Management 2010-11-22 21:35:02 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.