Gitweb:
http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=com...
Commit: 4069885281354264fc27997c699291cb3245c6b0
Parent: e6c003fa751eeb958642fcf4c14d088c820a57e4
Author: Ryan O'Hara <rohara(a)redhat.com>
AuthorDate: Tue Mar 1 09:35:02 2011 -0600
Committer: Ryan O'Hara <rohara(a)redhat.com>
CommitterDate: Tue Mar 1 15:00:21 2011 -0600
fence_scsi: move key file to /var/run/cluster
Since the contents of /var/run/cluster/ directory are cleared on each
reboot, move the fence_scsi.key file to that directory. This is useful
for watchdog checks as a means to avoid watchdog reboots when a node has
not yet unfenced or unfencing fails.
Signed-off-by: Ryan O'Hara <rohara(a)redhat.com>
---
fence/agents/scsi/fence_scsi.pl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fence/agents/scsi/fence_scsi.pl b/fence/agents/scsi/fence_scsi.pl
index 6f68203..004b4ba 100644
--- a/fence/agents/scsi/fence_scsi.pl
+++ b/fence/agents/scsi/fence_scsi.pl
@@ -342,7 +342,7 @@ sub key_read ()
my $self = (caller(0))[3];
my $key;
- open (\*FILE, "</var/lib/cluster/fence_scsi.key") or die
"$!\n";
+ open (\*FILE, "</var/run/cluster/fence_scsi.key") or die
"$!\n";
chomp ($key = <FILE>);
close (FILE);
@@ -353,7 +353,7 @@ sub key_write ($)
{
my $self = (caller(0))[3];
- open (\*FILE, ">/var/lib/cluster/fence_scsi.key") or die
"$!\n";
+ open (\*FILE, ">/var/run/cluster/fence_scsi.key") or die
"$!\n";
print FILE "$_[0]\n";
close (FILE);