Run command "pgsqlsetup -i" to enable postgresql database hang during starting postgresql service on SLES11.3.
After some investigation, I found that we use "runcmd" to start postgresql service and it is based on PIPE(``). It will hang with Perl v5.10.0(sles11.3) while Perl v5.10.1(redhat6.5) has no problems. Running this command with "system" has no any problems.
$ret=xCAT::Utils->startservice($cmd); ------> hang at here
if ($ret != 0) {
xCAT::MsgUtils->message("E", " failed to start $cmd.");
exit(1);
}
Diff:
This affects all calls to Utils->startservice and I assume Utils->stopservice.
2.9
commit 69017348db485c1748bbd5aa66cf249e0c69ae67
2.8.5
commit 87fc929900169f2ec61217456cd60a1fd52ae8e2
Please close this defect for the release, if you have verified.