add wait for docker in controller startup script

This commit is contained in:
Grant Limberg 2022-01-06 14:51:56 -08:00
parent 73878fbdc4
commit f5096a1f26
No known key found for this signature in database
GPG Key ID: 2BA62CCABBB4095A

View File

@ -79,6 +79,11 @@ echo "{
}
" > /var/lib/zerotier-one/local.conf
until /usr/pgsql-10/bin/pg_isready -h ${ZTC_DB_HOST} -p ${ZTC_DB_PORT}; do
echo "Waiting for PostgreSQL...";
sleep 2;
done
export GLIBCXX_FORCE_NEW=1
export GLIBCPP_FORCE_NEW=1
export LD_PRELOAD="/usr/lib64/libjemalloc.so"