change to system call to service postgresql start, to work around known problem

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14280 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-11-08 14:47:15 +00:00
parent 9ef811a565
commit f730076d0f

View File

@ -810,9 +810,8 @@ sub pgstart
} else {
$cmd = "service postgresql start";
}
xCAT::Utils->runcmd($cmd, 0);
if ($::RUNCMD_RC != 0)
{
system($cmd);
if ($? > 0) {
xCAT::MsgUtils->message("E", " $cmd failed.");
exit(1);
}
@ -827,7 +826,6 @@ sub pgstart
while ($retries < 30) {
$retries++;
my @status=xCAT::Utils->runcmd($cmd, -1);
#my @status=xCAT::Utils->runcmd($cmd, 0);
if (grep(/running/, @status)) {
$pgstarted=1;
last;