You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by dm...@apache.org on 2013/09/09 15:01:44 UTC
git commit: AMBARI-3145. ambari-agent service script should return
non-zero when the agent is not running (Vitaly Brodetskyi via dlysnichenko)
Updated Branches:
refs/heads/trunk 0634c2c04 -> 2406165f7
AMBARI-3145. ambari-agent service script should return non-zero when the agent is not running (Vitaly Brodetskyi via dlysnichenko)
Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/2406165f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/2406165f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/2406165f
Branch: refs/heads/trunk
Commit: 2406165f7ca7caaf6c9a034dac3a4a7f0ccb34ef
Parents: 0634c2c
Author: Lisnichenko Dmitro <dl...@hortonworks.com>
Authored: Mon Sep 9 15:54:41 2013 +0300
Committer: Lisnichenko Dmitro <dl...@hortonworks.com>
Committed: Mon Sep 9 15:59:55 2013 +0300
----------------------------------------------------------------------
ambari-agent/conf/unix/ambari-agent | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/2406165f/ambari-agent/conf/unix/ambari-agent
----------------------------------------------------------------------
diff --git a/ambari-agent/conf/unix/ambari-agent b/ambari-agent/conf/unix/ambari-agent
index b817344..5f330a3 100644
--- a/ambari-agent/conf/unix/ambari-agent
+++ b/ambari-agent/conf/unix/ambari-agent
@@ -138,6 +138,7 @@ case "$1" in
echo "Found $AMBARI_AGENT PID: $PID"
if [ -z "`ps ax -o pid | grep $PID`" ]; then
echo "$AMBARI_AGENT not running. Stale PID File at: $PIDFILE"
+ retcode=2
else
tput bold
echo "$AMBARI_AGENT running."
@@ -151,6 +152,7 @@ case "$1" in
echo "$AMBARI_AGENT currently not running"
tput sgr0
echo "Usage: /usr/sbin/ambari-agent {start|stop|restart|status}"
+ retcode=3
fi
;;
stop)