Hi
I'd like to propose a patch for the pingd OCF RA.
Consider the following situation:
Cluster is set to maintenance-mode=true.
pingd is running as a clone.
The cluster (based on heartbeat) is shutdown and restarted.
As the RA checks the content of the pidfile, which was deleted by the
heartbeat start, the cluster thinks pingd is not running. When the
cluster is re-enabled, it starts another pingd.
I figured there was some point to remove $HA_RSCTMP during heartbeat
start, so the patch changes the default path for the pid file.
Regards
Dominik
exporting patch:
# HG changeset patch
# User Dominik Klein <[EMAIL PROTECTED]>
# Date 1228138736 -3600
# Node ID e87ff08b20ca22647944a56fd772d2673c951457
# Parent 4a47778b2ca99a6b5985baf170bc3897fba2dfee
Medium: RA pingd
diff -r 4a47778b2ca9 -r e87ff08b20ca resources/OCF/pingd
--- a/resources/OCF/pingd Wed Oct 29 13:24:34 2008 +0100
+++ b/resources/OCF/pingd Mon Dec 01 14:38:56 2008 +0100
@@ -233,7 +233,7 @@ if [ $# -ne 1 ]; then
exit $OCF_ERR_ARGS
fi
-: ${OCF_RESKEY_pidfile:="$HA_RSCTMP/pingd-${OCF_RESOURCE_INSTANCE}"}
+: ${OCF_RESKEY_pidfile:="/var/run/pingd-${OCF_RESOURCE_INSTANCE}.pid"}
: ${OCF_RESKEY_name:="pingd"}
: ${OCF_RESKEY_dampen:="1s"}
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/