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

Branch: refs/heads/AMBARI-13364
Commit: dddffd5c6a54e1fb08bde98dd874edc68add4198
Parents: 664ccd1
Author: Andrew Onishuk <aonis...@hortonworks.com>
Authored: Wed Mar 9 16:23:55 2016 +0200
Committer: Andrew Onishuk <aonis...@hortonworks.com>
Committed: Wed Mar 9 16:23:55 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/dddffd5c/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

Reply via email to