[ https://issues.apache.org/jira/browse/MINIFICPP-546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16525784#comment-16525784 ]
Dustin Rodrigues commented on MINIFICPP-546: -------------------------------------------- My mistake, I somehow missed (both of) the references to the init script spec. I agree that it makes sense to return 3 when calling status when it's run as an init script per the spec, so I'll change that back. It seems like people are in agreement that the return value when calling "minifi.sh status" directly should be 0 if the process is not running and there isn't a stale pidfile. I'll leave it at 0 for this case and remove the comments pointing to the LSB spec in that section of the script since it no longer is relevant. I'll also leave it returning 1 when status is called on a stopped process with a stale process since that is indicative of an error. > minifi.sh status should return 0 when process isn't running > ----------------------------------------------------------- > > Key: MINIFICPP-546 > URL: https://issues.apache.org/jira/browse/MINIFICPP-546 > Project: NiFi MiNiFi C++ > Issue Type: Bug > Reporter: Dustin Rodrigues > Assignee: Dustin Rodrigues > Priority: Minor > > Currently, calling "minifi.sh status" when the process isn't running returns > exit code 3. It should return 0. -- This message was sent by Atlassian JIRA (v7.6.3#76005)