From 4e7d1736ed014fcbab4771b60810eb236bdc6b02 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Thu, 21 Jan 2010 03:12:10 +0000 Subject: [PATCH] increase the waiting time for the SRC commands git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5000 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/restartxcatd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xCAT-server/sbin/restartxcatd b/xCAT-server/sbin/restartxcatd index 89aa81de6..d053381a1 100755 --- a/xCAT-server/sbin/restartxcatd +++ b/xCAT-server/sbin/restartxcatd @@ -79,9 +79,8 @@ if (! $inoperative) { # active } # Wait for end of the xcatd subsystem - $check_num = 3; + $check_num = 5; while ($check_num > 0) { - $check_num--; $cmd = "lssrc -s xcatd | grep 'xcatd' | grep 'inoperative'"; @output = `$cmd`; if (scalar(@output) == 0) { @@ -89,6 +88,7 @@ if (! $inoperative) { # active } else { last; } + $check_num--; } if ($check_num <= 0) { @@ -122,9 +122,8 @@ if (scalar(@output)) { my $cmd = "/usr/bin/kill -9 $pid >/dev/null 2>&1"; `$cmd`; } - $check_num = 3; + $check_num = 5; while ($check_num > 0) { - $check_num--; $cmd = "ps -ef | grep xcatd: | grep -v grep"; @output = `$cmd`; if (scalar(@output)) { @@ -132,6 +131,7 @@ if (scalar(@output)) { } else { last; } + $check_num--; } if ($check_num <= 0) { xCAT::MsgUtils->message("E", "Error: Cannot kill the xcatd processes correctly.\n"); @@ -164,9 +164,8 @@ if ($rc >> 8) { sleep 3; # Check the status of xcatd subsystem -$check_num = 3; +$check_num = 5; while ($check_num > 0) { - $check_num--; $cmd = "lssrc -s xcatd | grep 'xcatd' | grep 'active'"; my @output = `$cmd`; if (scalar(@output) == 0) { @@ -174,6 +173,7 @@ while ($check_num > 0) { } else { last; } + $check_num--; } if ($check_num <= 0) {