cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] cluster/fence/agents/manual fence_ack_manual.sh
@ 2007-05-14 16:33 lhh
  0 siblings, 0 replies; 2+ messages in thread
From: lhh @ 2007-05-14 16:33 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	lhh at sourceware.org	2007-05-14 16:33:53

Modified files:
	fence/agents/manual: fence_ack_manual.sh 

Log message:
	Make manual fencing's command line parser backward compatible; per dct

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/manual/fence_ack_manual.sh.diff?cvsroot=cluster&r1=1.1&r2=1.2

--- cluster/fence/agents/manual/fence_ack_manual.sh	2007/01/22 23:16:12	1.1
+++ cluster/fence/agents/manual/fence_ack_manual.sh	2007/05/14 16:33:53	1.2
@@ -1,7 +1,20 @@
 #!/bin/bash
+#
+# Dummy fence_ack_manual which uses the fenced manual override
+# socket to communicate.
+#
+
+if [ "$1" = "-n" ]; then
+	shift
+fi
 
 if [ -z "$1" ]; then
-	echo "usage: $0 <nodename>"
+	echo "usage:"
+        echo " 	$0 <nodename>"
+        echo " 	$0 -n <nodename>"
+	echo 
+	echo "The -n flag exists to preserve compatibility with previous "
+	echo "releases of $0, and is no longer required."
 	exit 1
 fi
 



^ permalink raw reply	[flat|nested] 2+ messages in thread
* [Cluster-devel] cluster/fence/agents/manual fence_ack_manual.sh
@ 2007-01-22 23:16 lhh
  0 siblings, 0 replies; 2+ messages in thread
From: lhh @ 2007-01-22 23:16 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	lhh at sourceware.org	2007-01-22 23:16:12

Added files:
	fence/agents/manual: fence_ack_manual.sh 

Log message:
	Simple manual override for fenced & example replacement for fence_ack_manual

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/manual/fence_ack_manual.sh.diff?cvsroot=cluster&r1=NONE&r2=1.1

/cvs/cluster/cluster/fence/agents/manual/fence_ack_manual.sh,v  -->  standard output
revision 1.1
--- cluster/fence/agents/manual/fence_ack_manual.sh
+++ -	2007-01-22 23:16:13.148120000 +0000
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+if [ -z "$1" ]; then
+	echo "usage: $0 <nodename>"
+	exit 1
+fi
+
+declare answer
+
+echo "About to override fencing for $1."
+echo "Improper use of this command can cause severe file system damage."
+echo
+read -p "Continue [NO/absolutely]? " answer
+
+if [ "$answer" != "absolutely" ]; then
+	echo "Aborted."
+	exit 1
+fi
+
+while ! [ -e /var/run/cluster/fenced_override ]; do
+	sleep 1
+done
+
+echo $1>/var/run/cluster/fenced_override
+echo Done



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

end of thread, other threads:[~2007-05-14 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-14 16:33 [Cluster-devel] cluster/fence/agents/manual fence_ack_manual.sh lhh
  -- strict thread matches above, loose matches on Subject: below --
2007-01-22 23:16 lhh

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).