cluster: RHEL58 - rgmanager: Fix call to service_status()
Lon Hohberger
lon at fedoraproject.org
Thu Jan 5 16:43:40 UTC 2012
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=9b5d039ecab105db426b112e865be59feb41a592
Commit: 9b5d039ecab105db426b112e865be59feb41a592
Parent: 64f54ec761a16143c28fe414aa4fefef308bdc43
Author: Lon Hohberger <lhh at redhat.com>
AuthorDate: Thu Jan 5 09:03:28 2012 -0500
Committer: Lon Hohberger <lhh at redhat.com>
CommitterDate: Thu Jan 5 10:56:35 2012 -0500
rgmanager: Fix call to service_status()
This patch simply fixes the calls to service_status(), the
s_trans variable was being incorrectly set.
Resolves: rhbz#743214
Signed-off-by: Lon Hohberger <lhh at redhat.com>
---
rgmanager/src/resources/default_event_script.sl | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/rgmanager/src/resources/default_event_script.sl b/rgmanager/src/resources/default_event_script.sl
index 2d5503f..f2c7bc1 100644
--- a/rgmanager/src/resources/default_event_script.sl
+++ b/rgmanager/src/resources/default_event_script.sl
@@ -500,7 +500,7 @@ define default_service_event_handler()
continue;
}
- (d_trans,,,, owner, state) = service_status(services[x], 1);
+ (d_trans,,,,, owner, state) = service_status(services[x], 1);
if ((service_state == "started") and (owner < 0) and
(state == "stopped")) {
info("Dependency met; starting ", services[x]);
@@ -518,9 +518,12 @@ define default_service_event_handler()
% as above is running and the dependent service was
% started at or after the service, then stopping it
% will result in unwanted service outage.
- (s_trans,,,, s_state) = service_status(service_name);
+ (s_trans,,,,,, s_state) = service_status(service_name, 1);
if ((s_state == "started") and (state == "started") and
(d_trans >= s_trans)) {
+ %debug("S:", service_name, " trans ", s_trans);
+ %debug("D:", services[x], " trans ", d_trans);
+
debug("Skipping ", services[x],
"; restart not needed");
continue;
More information about the cluster-commits
mailing list