From: teigland@sourceware.org <teigland@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/fence/agents/egenera fence_egenera.pl
Date: 16 Aug 2006 14:59:01 -0000 [thread overview]
Message-ID: <20060816145901.28135.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Branch: STABLE
Changes by: teigland at sourceware.org 2006-08-16 14:59:01
Modified files:
fence/agents/egenera: fence_egenera.pl
Log message:
sync changes from RHEL4 branch
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/egenera/fence_egenera.pl.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.1&r2=1.1.8.1
--- cluster/fence/agents/egenera/fence_egenera.pl 2004/06/24 08:53:13 1.1
+++ cluster/fence/agents/egenera/fence_egenera.pl 2006/08/16 14:59:01 1.1.8.1
@@ -20,13 +20,14 @@
# "#END_VERSION_GENERATION" It is generated by the Makefile
#BEGIN_VERSION_GENERATION
-$FENCE_RELEASE_NAME="";
-$REDHAT_COPYRIGHT="";
-$BUILD_DATE="";
+$FENCE_RELEASE_NAME="1.32.1";
+$REDHAT_COPYRIGHT=("Copyright (C) Red Hat, Inc. 2004 All rights reserved.");
+$BUILD_DATE="(built Thu Jun 16 11:16:53 EDT 2005)";
#END_VERSION_GENERATION
# Get the program name from $0 and strip directory names
$_=$0;
+$|=1;
s/.*\///;
my $pname = $_;
@@ -273,7 +274,7 @@
}
# Is there any harm in sending this command multiple times?
- my $cmd = "ssh $cserv $esh blade -b $_";
+ my $cmd = "ssh $cserv $esh pserver -b $lpan/$pserv";
my $pid = open3 (\*WTR, \*RDR,\*RDR, $cmd)
or die "error open3(): $!";
@@ -295,11 +296,15 @@
sub pserver_shutdown
{
my $rtrn=1;
+ local *egen_log;
+ open(egen_log,">/tmp/eglog");
for (my $trys=0; $trys<20; $trys++)
{
last if (pserver_status != 0);
+
my $status = $_;
+ print egen_log "shutdown: $trys $status\n";
if (/^Shutdown/)
{
$rtrn=0;
@@ -321,8 +326,12 @@
# is there any harm in sending this command multiple
# times?
my $cmd = "ssh $cserv $esh blade -s $_";
+ print egen_log "shutdown: $cmd being called, before open3\n";
my $pid = open3 (\*WTR, \*RDR,\*RDR, $cmd)
or die "error open3(): $!";
+ print egen_log "shutdown: after calling open3\n";
+ @outlines = <RDR>;
+ print egen_log "shutdown: Open3 result: ", @outlines, "\n";
close WTR;
close RDR;
@@ -333,6 +342,7 @@
sleep 1;
}
+ print egen_log "shutdown: Returning from pserver_shutdown with return code $rtrn\n";
return $rtrn;
}
next reply other threads:[~2006-08-16 14:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-16 14:59 teigland [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-08-16 19:14 [Cluster-devel] cluster/fence/agents/egenera fence_egenera.pl jparsons
2007-08-08 15:49 jparsons
2007-08-08 16:02 jparsons
2007-08-08 16:25 jparsons
2007-08-08 16:26 jparsons
2007-08-08 16:38 jparsons
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=20060816145901.28135.qmail@sourceware.org \
--to=teigland@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.