Mischa Sandberg <mischa_sandberg(at)telus(dot)net> writes:
> Perhaps it's my "test for DB ready" that's the problem?
> + while pg_ctl status && ! psql -l; do sleep 1; done >/dev/null 2>&1
I'd bet that the pg_ctl status part is failing. I get exit status 1
from it if there's no server running.
regards, tom lane