Red Hat Bugzilla – Bug 446104
Postgres may not be fully started when the service script returns
Last modified: 2010-03-16 13:13:18 EDT
Description of problem:
Postgres may not be fully started when the service script returns.
This causes problems with the wui install scripts since they assume they can
start running database commands right away.
Version-Release number of selected component (if applicable):
Happens every time on my machine, but likely won't happen on faster machines, or
machines with more RAM
Steps to Reproduce:
1.Run the wui first boot script
ovirt database doesn't get created
Putting a "sleep 2" in the startup script fixes the problem on my box, but there
should be a better way to ensure the database is actually started.
indeed, postmaster is started in the background, so we'll need to loop after
service postgresql start, waiting for service postgresql status to return 0
fixed in ovirt-wui 0.0.5