ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject ambari git commit: AMBARI-12454. Metric Monitor Start Failed with error ambari-metrics-monitor already running (swagle)
Date Mon, 20 Jul 2015 23:49:15 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 7481fbbf1 -> 305911ef8


AMBARI-12454. Metric Monitor Start Failed with error ambari-metrics-monitor already running
(swagle)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/305911ef
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/305911ef
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/305911ef

Branch: refs/heads/trunk
Commit: 305911ef834efbb22d6955d52fd266d111a2581e
Parents: 7481fbb
Author: Siddharth Wagle <swagle@hortonworks.com>
Authored: Mon Jul 20 16:49:09 2015 -0700
Committer: Siddharth Wagle <swagle@hortonworks.com>
Committed: Mon Jul 20 16:49:09 2015 -0700

----------------------------------------------------------------------
 .../conf/unix/ambari-metrics-monitor                           | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/305911ef/ambari-metrics/ambari-metrics-host-monitoring/conf/unix/ambari-metrics-monitor
----------------------------------------------------------------------
diff --git a/ambari-metrics/ambari-metrics-host-monitoring/conf/unix/ambari-metrics-monitor
b/ambari-metrics/ambari-metrics-host-monitoring/conf/unix/ambari-metrics-monitor
index 86c2ac7..f927359 100644
--- a/ambari-metrics/ambari-metrics-host-monitoring/conf/unix/ambari-metrics-monitor
+++ b/ambari-metrics/ambari-metrics-host-monitoring/conf/unix/ambari-metrics-monitor
@@ -136,10 +136,10 @@ case "$1" in
         rm -f ${PIDFILE}
       else
         tput bold
-        echo "ERROR: ${METRIC_MONITOR} already running"
+        echo "WARN: ${METRIC_MONITOR} already running with PID: ${PID}"
         tput sgr0
-        echo "Check ${PIDFILE} for PID."
-        exit -1
+        echo "Exiting."
+        exit 0
       fi
     fi
 


Mime
View raw message