mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-15 22:19:17 +03:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue