From 2a2f0f036434c0fa2dd0f6af67e6cf13b0b3183e Mon Sep 17 00:00:00 2001 From: Mark Payne Date: Fri, 12 Dec 2014 10:18:14 -0500 Subject: [PATCH] NIFI-145: Fixed issue that indicated that NiFi was hung or died when the .pid file wasn't found --- .../src/main/java/org/apache/nifi/bootstrap/RunNiFi.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java b/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java index a230711265..270ba48906 100644 --- a/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java +++ b/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java @@ -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 {