Ruben Laguna created NIFI-7721:
----------------------------------

             Summary: Nifi.sh should return a meaningful exit code
                 Key: NIFI-7721
                 URL: https://issues.apache.org/jira/browse/NIFI-7721
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Ruben Laguna


The current nifi.sh always return exit code 0 regardless of the result of the 
operation. 

Usually you want a non-zero exit code if nifi.sh (start|stop|restart) fails and 
a non-zero exit code for nifi.sh status if nifi it's not running. 

As far as I can tell this was the behaviour of nifi.sh until [368ea7a2d 
NIFI-1069 Removing the exit 
directive|[https://github.com/apache/nifi/commit/368ea7a2d20461406db2c7d2f1dc3eca8dea4aeb]]
 , that commit removed the return an exit code to solve a problem, but the same 
problem could be resolved by delaying the exit directive until the very end of 
the script as proposed in [#4465|[https://github.com/apache/nifi/pull/4465]]

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to