github.com/grafana/pyroscope@v1.18.0/examples/language-sdk-instrumentation/python/rideshare/django/app/entrypoint.prod.sh (about) 1 #!/bin/sh 2 3 if [ "$DATABASE" = "postgres" ] 4 then 5 echo "Waiting for postgres..." 6 7 while ! nc -z $SQL_HOST $SQL_PORT; do 8 sleep 0.1 9 done 10 11 echo "PostgreSQL started" 12 fi 13 14 exec "$@"