From 3a2130eb48f5f9b2d278dc09e55f6c460a150499 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 15 Sep 2018 13:43:46 +0200 Subject: [PATCH] Change method for postgres readiness check --- postgres/setup/etc/init.d/postgres | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/setup/etc/init.d/postgres b/postgres/setup/etc/init.d/postgres index b4f0c70..e031bda 100755 --- a/postgres/setup/etc/init.d/postgres +++ b/postgres/setup/etc/init.d/postgres @@ -7,7 +7,7 @@ start() { } start_post() { - ewaitfile 60 /var/lib/lxc/postgres/delta0/run/postgresql/.s.PGSQL.5432 + timeout -t 60 sh -c 'until lxc-attach postgres -- pg_isready >/dev/null 2>&1; do usleep 50000; done' } stop() {