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() {