mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-22 19:20:24 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user