Cluster-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
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:33:26 -0000	[thread overview]
Message-ID: <20071219213326.25514.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	lhh at sourceware.org	2007-12-19 21:33:26

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&only_with_tag=RHEL5&r1=1.31.2.33&r2=1.31.2.34
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/default_event_script.sl.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.2&r2=1.1.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/service.sh.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.7.2.9&r2=1.7.2.10
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/vm.sh.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.10&r2=1.1.2.11

--- cluster/rgmanager/ChangeLog	2007/12/19 21:04:40	1.31.2.33
+++ cluster/rgmanager/ChangeLog	2007/12/19 21:33:25	1.31.2.34
@@ -1,6 +1,8 @@
 2007-12-19 Lon Hohberger <lhh@redhat.com>
 	* include/res-ocf.h: Fix typo
-	* src/daemons/restree.c: Export reference counts to resource agents
+	* src/daemons/restree.c: Export reference counts to resource agents.
+	Pull fix from head to ensure we don't do status checks if the interval
+	is 0.
 	* 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
--- cluster/rgmanager/src/resources/default_event_script.sl	2007/12/18 17:52:56	1.1.2.2
+++ cluster/rgmanager/src/resources/default_event_script.sl	2007/12/19 21:33:26	1.1.2.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/12/18 17:52:56	1.7.2.9
+++ cluster/rgmanager/src/resources/service.sh	2007/12/19 21:33:26	1.7.2.10
@@ -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 19:44:34	1.1.2.10
+++ cluster/rgmanager/src/resources/vm.sh	2007/12/19 21:33:26	1.1.2.11
@@ -226,6 +226,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.



             reply	other threads:[~2007-12-19 21:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-19 21:33 lhh [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-12-19 21:34 [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=20071219213326.25514.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