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): ovirt-wui-0.0.4-2.fc8 How reproducible: 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 Actual results: ovirt database doesn't get created Expected results: Database created Additional info: 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 http://git.et.redhat.com/?p=ovirt.git;a=commitdiff;h=87cd9284e5d3452f1ab365fd452ec891cd80bba8;hp=c716db204967425e0463ee5f73883aacc90e78c4