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:44 UTC
[2/2] ambari git commit: AMBARI-12619. ambari agent return exit code
0 even when start action fails (aonishuk)
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 $?