Bug 799242 - sesame init.d script does not return error if /usr/bin/sesame is not executable
sesame init.d script does not return error if /usr/bin/sesame is not executable
Status: CLOSED WONTFIX
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: sesame (Show other bugs)
2.1
Unspecified Unspecified
low Severity low
: ---
: ---
Assigned To: grid-maint-list
MRG Quality Engineering
:
Depends On:
Blocks: 834645
  Show dependency treegraph
 
Reported: 2012-03-02 03:59 EST by Leonid Zhaldybin
Modified: 2016-05-26 16:20 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-05-26 16:20:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Leonid Zhaldybin 2012-03-02 03:59:40 EST
Description of problem:
If the file /usr/bin/sesame is not executable, the command 'service sesame {action}' does not print out any error message and returns exit code 0.
[root@lzhaldyb-rhel62i ~]# chmod 0444 /usr/bin/sesame
[root@lzhaldyb-rhel62i ~]# ls -l /usr/bin/sesame
-r--r--r--. 1 sesame sesame 77572 Nov 29 00:05 /usr/bin/sesame
[root@lzhaldyb-rhel62i ~]# service sesame status
[root@lzhaldyb-rhel62i ~]# echo $?
0
[root@lzhaldyb-rhel62i ~]# service sesame start
[root@lzhaldyb-rhel62i ~]# echo $?
0
[root@lzhaldyb-rhel62i ~]# service sesame stop
[root@lzhaldyb-rhel62i ~]# echo $?
0

Version-Release number of selected component (if applicable):
sesame-1.0-2.el6.i686

How reproducible:
always

Steps to Reproduce:
1. Remove executable right from /usr/bin/sesame: chmod 0444 /usr/bin/sesame
2. Run init script: service sesame {action}
  
Actual results:
No error message, exit code 0.

Expected results:
Error message stating that sesame is not executable, exit code different from 0.

Additional info:
Comment 1 Leonid Zhaldybin 2012-03-02 05:17:21 EST
There is one more problem with sesame init script: it does not print anything if the {action} is wrong:
[root@lzhaldyb-rhel62i ~]# service sesame dance
[root@lzhaldyb-rhel62i ~]# echo $?
0

The usage message should be printed in this case listing all supported actions. Also, the exit code in this case should differ from 0.
Comment 4 Anne-Louise Tangring 2016-05-26 16:20:48 EDT
MRG-Grid is in maintenance and only customer escalations will be considered. This issue can be reopened if a customer escalation associated with it occurs.

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