Bug 799242 - sesame init.d script does not return error if /usr/bin/sesame is not executable
Summary: sesame init.d script does not return error if /usr/bin/sesame is not executable
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: sesame
Version: 2.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: grid-maint-list
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks: 834645
TreeView+ depends on / blocked
 
Reported: 2012-03-02 08:59 UTC by Leonid Zhaldybin
Modified: 2016-05-26 20:20 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-26 20:20:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 702590 0 low CLOSED sesame service is not LSB compliant 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 801291 0 low CLOSED cumin init script with exit code 0 for unknown parameter 2021-02-22 00:41:40 UTC

Internal Links: 702590 801291

Description Leonid Zhaldybin 2012-03-02 08:59:40 UTC
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 10:17:21 UTC
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 20:20:48 UTC
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.