Change method for postgres readiness check
This commit is contained in:
parent
4543bbc49f
commit
3a2130eb48
@ -7,7 +7,7 @@ start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start_post() {
|
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() {
|
stop() {
|
||||||
|
Loading…
Reference in New Issue
Block a user