jboss-as-standalone.sh status exit code should be non-zero when not running
---------------------------------------------------------------------------
Key: AS7-3118
URL:
https://issues.jboss.org/browse/AS7-3118
Project: Application Server 7
Issue Type: Bug
Components: Scripts
Affects Versions: 7.1.0.Beta1
Reporter: Dominic Cleal
Assignee: Brian Stansberry
Priority: Minor
The jboss-as-standalone.sh script in build/src/main/resources/bin/init.d always reports an
exit code of zero when called with "status", irrespective of whether AS is
running or not.
According to the Linux Standard Base, it should provide an exit code of 3 if it isn't
running, an exit code of 1 if the /var/run pidfile is present but the process isn't
and 0 if it's running correctly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira