Revert "Use PostgreSQL 9.3's pg_isready to wait for connectivity"

Reverting postgres superuser changes until after stable.

This reverts commit e206684110.
This commit is contained in:
Shea Levy 2014-04-11 19:21:50 -04:00
parent b21853f255
commit c23050e231

View File

@ -226,7 +226,7 @@ in
# Wait for PostgreSQL to be ready to accept connections.
postStart =
''
while ! ${pkgs.postgresql93}/bin/pg_isready > /dev/null; do
while ! su -s ${pkgs.stdenv.shell} postgres -c 'psql postgres -c ""' 2> /dev/null; do
if ! kill -0 "$MAINPID"; then exit 1; fi
sleep 0.1
done