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

Vaggelis Atlidakis commented on APLO-305:
-----------------------------------------

The only thing you need to add is one line in your script after the hashbang 
line (#!/bin/sh or #!/bin/bash).
In your case, you should have:

#!/bin/sh
#chkconfig: 2345 55 25  

Meaning that the init script will be linked from run levels [2-5], your service 
will be started with priority 55, and stopped with priority 25.
I 've just checked it and it works!

--
aV

                
> Wrong exist status codes in the init scripts!
> ---------------------------------------------
>
>                 Key: APLO-305
>                 URL: https://issues.apache.org/jira/browse/APLO-305
>             Project: ActiveMQ Apollo
>          Issue Type: Bug
>          Components: apollo-cli, apollo-distro
>    Affects Versions: 1.6
>            Reporter: Vaggelis Atlidakis
>            Assignee: Hiram Chirino
>             Fix For: 1.7
>
>
> Hello,
> I would like to report that the init.d scripts for the apollo broker returns 
> incorrect exit codes.
> # service apollo-mcollect-broker status; echo $?
> apollo-mcollect-broker is running (23403)
> 0
> According to: 
> http://fedoraproject.org/wiki/Packaging:SysVInitScript#Required_Actions
> the return code when the service is not running should be: 3
> Best Regards,
> --
> aV

--
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