Red Hat Bugzilla – Bug 616852
Wrong exit status code in initscript
Last modified: 2011-05-13 08:45:14 EDT
Problem with exit status code when restarting stopped service:
# service systemtap status
one is stopped
# service systemtap restart
Starting systemtap: [WARNING]
# echo $?
According to  there should be exit code 7 (program is not running) and not 5 (program is not installed).
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.
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. **
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.
Development Management has reviewed and declined this request. You may appeal
this decision by reopening this request.