ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [2/3] ambari git commit: AMBARI-13627. Security can not be enabled on cluster with MOTD for "su" (aonishuk)
Date Fri, 30 Oct 2015 13:26:24 GMT
AMBARI-13627. Security can not be enabled on cluster with MOTD for "su" (aonishuk)


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

Branch: refs/heads/branch-2.1
Commit: 81d5ccf014516debf1facfdc5db860802571b1fe
Parents: 74eb8d1
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Fri Oct 30 15:26:05 2015 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Fri Oct 30 15:26:05 2015 +0200

----------------------------------------------------------------------
 .../common-services/STORM/0.9.1.2.1/package/scripts/service.py     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/81d5ccf0/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py
b/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py
index 3210d8a..256d7cd 100644
--- a/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py
+++ b/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py
@@ -76,7 +76,7 @@ def service(name, action = 'start'):
 
   elif action == "stop":
     process_dont_exist = format("! ({no_op_test})")
-    pid = get_user_call_output.get_user_call_output(format("cat {pid_file}"), user=params.storm_user)[1]
+    pid = get_user_call_output.get_user_call_output(format("! test -f {pid_file} ||  cat
{pid_file}"), user=params.storm_user)[1]
 
     Execute(format("{sudo} kill {pid}"),
       not_if = process_dont_exist)


Mime
View raw message