cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH/RFC] Standardize on /etc/sysconfig/cluster for init script
@ 2008-07-28  8:20 Fabio M. Di Nitto
  2008-07-28 12:59 ` david m. richter
  2008-07-30 16:01 ` David Teigland
  0 siblings, 2 replies; 10+ messages in thread
From: Fabio M. Di Nitto @ 2008-07-28  8:20 UTC (permalink / raw)
  To: cluster-devel.redhat.com


Hi guys,

I just noticed that we have a very inconsistent way to set init script 
defaults by using /etc/sysconfig/{cman,cluster,scsi_reserve}.

the patch in attachment is very simple and standardize everything to 
/etc/sysconfig/cluster and retains backward compatibility.

Please ACK or i will apply.

Fabio

--
I'm going to make him an offer he can't refuse.
-------------- next part --------------
diff --git a/cman/init.d/cman b/cman/init.d/cman
index f489dd1..7cedd26 100644
--- a/cman/init.d/cman
+++ b/cman/init.d/cman
@@ -18,7 +18,14 @@
 
 . /etc/init.d/functions
 
-[ -f /etc/sysconfig/cman ] && . /etc/sysconfig/cman
+if [ -f /etc/sysconfig/cman ]; then
+    . /etc/sysconfig/cman
+    echo "/etc/sysconfig/cman has been depracated in favour of /etc/sysconfig/cluster"
+    echo "Please consider switching to the new file"
+fi
+
+[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
+
 [ -z "$CCSD_OPTS" ] && CCSD_OPTS=
 
 # CMAN_CLUSTER_TIMEOUT -- amount of time to wait for joinging a cluster
diff --git a/fence/agents/scsi/scsi_reserve b/fence/agents/scsi/scsi_reserve
index 3d66991..7569873 100644
--- a/fence/agents/scsi/scsi_reserve
+++ b/fence/agents/scsi/scsi_reserve
@@ -21,8 +21,12 @@
 #
 if [ -f /etc/sysconfig/scsi_reserve ] ; then
     . /etc/sysconfig/scsi_reserve
+    echo "/etc/sysconfig/scsi_reserve has been depracated in favour of /etc/sysconfig/cluster"
+    echo "Please consider switching to the new file"
 fi
 
+[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
+
 # check that cman is running
 #
 if ! cman_tool status &> /dev/null ; then

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-07-31  7:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-28  8:20 [Cluster-devel] [PATCH/RFC] Standardize on /etc/sysconfig/cluster for init script Fabio M. Di Nitto
2008-07-28 12:59 ` david m. richter
2008-07-28 13:07   ` Fabio M. Di Nitto
2008-07-30 16:01 ` David Teigland
2008-07-30 16:41   ` david m. richter
2008-07-30 19:12   ` Joel Becker
2008-07-31  3:24     ` Fabio M. Di Nitto
2008-07-31  7:41       ` Joel Becker
2008-07-31  7:40         ` Fabio M. Di Nitto
2008-07-31  3:02   ` Fabio M. Di Nitto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).