FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 01-05-2012, 02:57 PM
Lon Hohberger
 
Default rgmanager: Fix call to service_status() (RHEL5)

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@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;
--
1.7.3.4
 

Thread Tools




All times are GMT. The time now is 07:35 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org