ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [1/2] ambari git commit: AMBARI-12619. ambari agent return exit code 0 even when start action fails (aonishuk)
Date Mon, 03 Aug 2015 12:02:43 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 eddd5f863 -> c75d58868
  refs/heads/trunk 49b47c354 -> 316404fe5


AMBARI-12619. ambari agent return exit code 0 even when start action fails (aonishuk)


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

Branch: refs/heads/trunk
Commit: 316404fe5231b75b590f5a7f5c630d6824451786
Parents: 49b47c3
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Mon Aug 3 15:02:36 2015 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Mon Aug 3 15:02:36 2015 +0300

----------------------------------------------------------------------
 ambari-agent/etc/init.d/ambari-agent | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/316404fe/ambari-agent/etc/init.d/ambari-agent
----------------------------------------------------------------------
diff --git a/ambari-agent/etc/init.d/ambari-agent b/ambari-agent/etc/init.d/ambari-agent
index 4e255cd..01fc45c 100644
--- a/ambari-agent/etc/init.d/ambari-agent
+++ b/ambari-agent/etc/init.d/ambari-agent
@@ -36,7 +36,6 @@ case "$1" in
         ;;
   status)
         $command_prefx "/usr/sbin/ambari-agent $@"
-        exit $?
         ;;
   restart)
         $command_prefx "$0 stop"
@@ -50,4 +49,4 @@ case "$1" in
         exit 1
 esac
 
-exit 0
+exit $?


Mime
View raw message