healthcheck.sh 284 B

1234567891011
  1. #!/bin/bash
  2. containerstart=`stat -c %Z /proc/1`
  3. curtime=`date +%s`
  4. if (( curtime-containerstart < 180 )); then
  5. # while ! ping -c 1 ${DB_CLUSTER}; do echo "Waiting for ${DB_CLUSTER} to be available"; sleep 1; done
  6. echo "0"
  7. exit 0
  8. fi
  9. curl -f 127.0.0.1:8091/login || exit 1