From f730076d0f176948fb387827f73b9fb40ac56643 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 8 Nov 2012 14:47:15 +0000 Subject: [PATCH] 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 --- xCAT-client/bin/pgsqlsetup | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xCAT-client/bin/pgsqlsetup b/xCAT-client/bin/pgsqlsetup index 672185fb4..ac98d8a32 100755 --- a/xCAT-client/bin/pgsqlsetup +++ b/xCAT-client/bin/pgsqlsetup @@ -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;