You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ma...@apache.org on 2013/08/22 07:49:11 UTC

git commit: AMBARI-2973. Ambari server and agent are not stopped during package uninstall. (Vladimir Tkhir vi mahadev)

Updated Branches:
  refs/heads/trunk 30365506a -> d649f57e2


AMBARI-2973. Ambari server and agent are not stopped during package uninstall. (Vladimir Tkhir vi mahadev)


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

Branch: refs/heads/trunk
Commit: d649f57e213509a50697bf5b1f3f1e75c68f62e4
Parents: 3036550
Author: Mahadev Konar <ma...@apache.org>
Authored: Wed Aug 21 22:48:56 2013 -0700
Committer: Mahadev Konar <ma...@apache.org>
Committed: Wed Aug 21 22:48:56 2013 -0700

----------------------------------------------------------------------
 ambari-agent/src/main/package/rpm/preremove.sh  | 1 +
 ambari-server/src/main/package/rpm/preremove.sh | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/d649f57e/ambari-agent/src/main/package/rpm/preremove.sh
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/package/rpm/preremove.sh b/ambari-agent/src/main/package/rpm/preremove.sh
index b731bbd..ed1fc4e 100644
--- a/ambari-agent/src/main/package/rpm/preremove.sh
+++ b/ambari-agent/src/main/package/rpm/preremove.sh
@@ -19,6 +19,7 @@
 
 if [ "$1" -eq 0 ]; # Action is uninstall
 then
+    /usr/sbin/ambari-agent stop > /dev/null 2>&1
     if [ -d "/etc/ambari-agent/conf.save" ]
     then
         mv /etc/ambari-agent/conf.save /etc/ambari-agent/conf_$(date '+%d_%m_%y_%H_%M').save

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/d649f57e/ambari-server/src/main/package/rpm/preremove.sh
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/package/rpm/preremove.sh b/ambari-server/src/main/package/rpm/preremove.sh
index a9758a6..dede017 100644
--- a/ambari-server/src/main/package/rpm/preremove.sh
+++ b/ambari-server/src/main/package/rpm/preremove.sh
@@ -19,6 +19,7 @@
 
 if [ "$1" -eq 0 ]; # Action is uninstall
 then
+    /usr/sbin/ambari-server stop > /dev/null 2>&1
     if [ -d "/etc/ambari-server/conf.save" ]
     then
         mv /etc/ambari-server/conf.save /etc/ambari-server/conf_$(date '+%d_%m_%y_%H_%M').save