You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2015/08/03 14:02:43 UTC

[1/2] ambari git commit: AMBARI-12619. ambari agent return exit code 0 even when start action fails (aonishuk)

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 <ao...@hortonworks.com>
Authored: Mon Aug 3 15:02:36 2015 +0300
Committer: Andrew Onishuk <ao...@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 $?


[2/2] ambari git commit: AMBARI-12619. ambari agent return exit code 0 even when start action fails (aonishuk)

Posted by ao...@apache.org.
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/c75d5886
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c75d5886
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c75d5886

Branch: refs/heads/branch-2.1
Commit: c75d58868c0ffc4a7a2835a76dbc888372979a49
Parents: eddd5f8
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Mon Aug 3 15:02:38 2015 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Mon Aug 3 15:02:38 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/c75d5886/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 $?