Fix failure in db2start on Redhat6 on first try, add retry logic defect 3110443

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8293 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-12-01 12:26:03 +00:00
parent 8f470e3b57
commit e302bd2993

View File

@ -950,9 +950,15 @@ sub db2start
my $rc = &rundb2cmd($cmd);
if ($rc != 0)
{
xCAT::MsgUtils->message("W", " $cmd failed.");
&startxcatd;
exit(1);
#sleep and try one more time
xCAT::MsgUtils->message("W", " $cmd failed. Will retry.");
sleep 20;
$rc = &rundb2cmd($cmd);
if ($rc != 0) {
xCAT::MsgUtils->message("W", " $cmd failed.");
&startxcatd;
exit(1);
}
}
}