You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2011/08/09 16:12:27 UTC

[jira] [Resolved] (SLING-2175) Implement LSB exit codes for the status command line option

     [ https://issues.apache.org/jira/browse/SLING-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved SLING-2175.
--------------------------------------

    Resolution: Fixed

Implemented in Rev. 1155377

> Implement LSB exit codes for the status command line option
> -----------------------------------------------------------
>
>                 Key: SLING-2175
>                 URL: https://issues.apache.org/jira/browse/SLING-2175
>             Project: Sling
>          Issue Type: Improvement
>          Components: Launchpad
>    Affects Versions: Launchpad Base 2.3.0
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: Launchpad Base 2.3.2
>
>
> The sling standalone Java Application supports being run as a service in that it supports three special command line options:
>    * start -- start as a server in the background
>    * stop -- stop a running server
>    * status -- show the status of the running server
> To ease implementation of init scripts, the status command line option should exit with status codes aligned with the Linux Standard Base Core Specification as described in http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html:
>   * 0 if the server is running fine
>   * 1 if the status command could not be sent or the response not be received (assuming server dead)
>   * 3 if the server could not be reached, assuming the server not running
>   * 4 if the server status could not be checked because the control port is not defined on the command line (with the -j option)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira