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 2016/03/09 15:24:04 UTC

[2/2] ambari git commit: AMBARI-15286. Alerts are not triggered when ambari agent is down (aonishuk)

AMBARI-15286. Alerts are not triggered when ambari agent is down (aonishuk)


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

Branch: refs/heads/branch-2.2
Commit: 054c35c395d4ffd90c2be833e263a606ea4dc953
Parents: d50d4a8
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Wed Mar 9 16:24:01 2016 +0200
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Wed Mar 9 16:24:01 2016 +0200

----------------------------------------------------------------------
 ambari-agent/etc/init/ambari-agent.conf | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/054c35c3/ambari-agent/etc/init/ambari-agent.conf
----------------------------------------------------------------------
diff --git a/ambari-agent/etc/init/ambari-agent.conf b/ambari-agent/etc/init/ambari-agent.conf
index 021eb3b..75c1b06 100644
--- a/ambari-agent/etc/init/ambari-agent.conf
+++ b/ambari-agent/etc/init/ambari-agent.conf
@@ -17,8 +17,6 @@ description     "ambari agent"
 
 stop on runlevel [06]
 
-env PIDFILE=/var/run/ambari-agent/ambari-agent.pid
-
 kill signal SIGKILL
 respawn
 
@@ -27,8 +25,4 @@ script
 
    export AMBARI_AGENT_RUN_IN_FOREGROUND=true
    exec /etc/init.d/ambari-agent start
-end script
-
-post-stop script
-  rm -f $PIDFILE
 end script
\ No newline at end of file