healthcheck.sh 220 B

12345678910
  1. #!/bin/bash
  2. containerstart=`stat -c %Z /proc/1`
  3. curtime=`date +%s`
  4. if [[ $(($containerstart-$curtime)) -le "180" ]]; then
  5. echo "0"
  6. exit 0
  7. fi
  8. curl -f -H 'Host:demo.infoclinica.ru' 127.0.0.1:9000/login || exit 1