NIFI-145: Fixed issue that indicated that NiFi was hung or died when the .pid file wasn't found

This commit is contained in:
Mark Payne 2014-12-12 10:18:14 -05:00
parent 8cf0c7814e
commit 2a2f0f0364
1 changed files with 5 additions and 0 deletions

View File

@ -373,6 +373,11 @@ public class RunNiFi {
return;
}
if ( status.getPort() == null ) {
logger.info("Apache NiFi is not running");
return;
}
if ( status.getPid() == null ) {
logger.info("Apache NiFi is not responding to Ping requests. The process may have died or may be hung");
} else {