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:
parent
b21853f255
commit
c23050e231
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user