diff --git a/xCAT-client/bin/pgsqlsetup b/xCAT-client/bin/pgsqlsetup index 5d368b50d..47a6a6622 100755 --- a/xCAT-client/bin/pgsqlsetup +++ b/xCAT-client/bin/pgsqlsetup @@ -771,7 +771,7 @@ sub pgstart # check to see if running before continuing my $retries =0; my $pgstarted =0; - while ($retries < 3) { + while ($retries < 30) { $retries++; if (defined($::postgres9)) { # set to the PTF level of postgresql 9.X $cmd = "service postgresql-9.$::postgres9 status"; @@ -783,7 +783,7 @@ sub pgstart $pgstarted=1; last; } - sleep 10; + sleep 1; } if ($pgstarted ==0) { # failed to started xCAT::MsgUtils->message("E", " service postgresql start failed.");