[ 
https://issues.apache.org/jira/browse/BIGTOP-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13556966#comment-13556966
 ] 

Bruno Mahé commented on BIGTOP-828:
-----------------------------------

I disagree.

Correct me if I am wrong, but return code 7 happens only "In case of an error 
while processing any init-script action except for status, the init script 
shall print an error message and exit with a non-zero status code" and the 
"program is not running".

Note that in the paragraph above the one considered by this ticket, "running 
stop on a service already stopped or not running" is one of the case where the 
situation is to be considered as successful. Therefore, init scripts should 
return 0 when stopping a service that's not running.


                
> Wrong return code when stopping a service that's not running
> ------------------------------------------------------------
>
>                 Key: BIGTOP-828
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-828
>             Project: Bigtop
>          Issue Type: Bug
>            Reporter: Mark Grover
>            Assignee: Mark Grover
>
> There are several services (flume-agent and hue at the very least) that 
> return 0 as return code when the service is being stopped when it's actually 
> not running. It seems by reading 
> http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
>  that we should be returning error code 7.
> Please let me know if you agree or disagree. If this is indeed a bug, I can 
> upload a patch for all the services that have this bug (there may be more 
> services than just flume-agent and hue).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to