From: lhh@sourceware.org <lhh@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/rgmanager ChangeLog src/resources/defa ...
Date: 19 Dec 2007 21:34:55 -0000 [thread overview]
Message-ID: <20071219213455.26335.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: lhh at sourceware.org 2007-12-19 21:34:54
Modified files:
rgmanager : ChangeLog
rgmanager/src/resources: default_event_script.sl service.sh
vm.sh
Log message:
Allow soft dependencies when central_processing is enabled
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/ChangeLog.diff?cvsroot=cluster&r1=1.67&r2=1.68
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/default_event_script.sl.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/service.sh.diff?cvsroot=cluster&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/vm.sh.diff?cvsroot=cluster&r1=1.8&r2=1.9
--- cluster/rgmanager/ChangeLog 2007/12/19 21:07:13 1.67
+++ cluster/rgmanager/ChangeLog 2007/12/19 21:34:54 1.68
@@ -4,6 +4,8 @@
* src/resources/clusterfs.sh: Use reference counts to ensure we
don't unmount a GFS file system if it's in use by multiple services
on the same node. #254111
+ * src/resources/service.sh, default_event_script.sl: Add support for
+ "soft" dependencies if central_processing is enabled
2007-12-14 Lon Hohberger <lhh@redhat.com>
(Misc central_events fixes)
--- cluster/rgmanager/src/resources/default_event_script.sl 2007/12/12 21:41:32 1.2
+++ cluster/rgmanager/src/resources/default_event_script.sl 2007/12/19 21:34:54 1.3
@@ -139,6 +139,7 @@
variable services = service_list();
variable x;
variable depends;
+ variable depend_mode;
variable policy;
variable nodes;
variable tmp;
@@ -185,6 +186,7 @@
% Simplistic dependency handling
%
depends = service_property(services[x], "depend");
+ depend_mode = service_property(services[x], "depend_mode");
% No dependency; do nothing
if (depends != service_name) {
@@ -200,7 +202,8 @@
}
% service died - stop service(s) that depend on the dead
- if ((service_owner < 0) and (owner >= 0)) {
+ if ((service_owner < 0) and (owner >= 0) and
+ (depend_mode != "soft")) {
info("Dependency lost; stopping ", services[x]);
()=service_stop(services[x]);
}
--- cluster/rgmanager/src/resources/service.sh 2007/11/30 20:06:55 1.12
+++ cluster/rgmanager/src/resources/service.sh 2007/12/19 21:34:54 1.13
@@ -155,6 +155,21 @@
<content type="string"/>
</parameter>
+ <parameter name="depend_mode">
+ <longdesc lang="en">
+ Dependency mode
+ </longdesc>
+ <shortdesc lang="en">
+ Service dependency mode.
+ hard - This service is stopped/started if its dependency
+ is stopped/started
+ soft - This service only depends on the other service for
+ initial startip. If the other service stops, this
+ service is not stopped.
+ </shortdesc>
+ <content type="string" default="hard"/>
+ </parameter>
+
<parameter name="max_restarts">
<longdesc lang="en">
Maximum restarts for this service.
--- cluster/rgmanager/src/resources/vm.sh 2007/11/30 20:06:55 1.8
+++ cluster/rgmanager/src/resources/vm.sh 2007/12/19 21:34:54 1.9
@@ -230,6 +230,21 @@
<content type="string"/>
</parameter>
+ <parameter name="depend_mode">
+ <longdesc lang="en">
+ Dependency mode
+ </longdesc>
+ <shortdesc lang="en">
+ Service dependency mode.
+ hard - This service is stopped/started if its dependency
+ is stopped/started
+ soft - This service only depends on the other service for
+ initial startip. If the other service stops, this
+ service is not stopped.
+ </shortdesc>
+ <content type="string" default="hard"/>
+ </parameter>
+
<parameter name="max_restarts" reconfig="1">
<longdesc lang="en">
Maximum restarts for this service.
next reply other threads:[~2007-12-19 21:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-19 21:34 lhh [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-12-19 21:33 [Cluster-devel] cluster/rgmanager ChangeLog src/resources/defa lhh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071219213455.26335.qmail@sourceware.org \
--to=lhh@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox