comparison launch_gnb.sh @ 10:a0358a5ab3ae draft

planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/genenotebook commit 0bc8333885dc11b283291458fb9d4bbd2052f6e0
author gga
date Mon, 24 Jun 2024 10:28:36 +0000
parents 29eeddd8ea62
children 4398a6fea625
comparison
equal deleted inserted replaced
9:e98f93ba54cd 10:a0358a5ab3ae
58 58
59 sleep 3 59 sleep 3
60 done; 60 done;
61 61
62 # Make sure that gnb is working, and that it's serving on the expected port 62 # Make sure that gnb is working, and that it's serving on the expected port
63 curl "http://127.0.0.1:${GNB_PORT}/healthcheck" > /dev/null 63 # Wait a bit for curl to work, just in case. Dump the logs if it does not
64
65 tries_curl=0
66
67 while ! curl -s "http://127.0.0.1:${GNB_PORT}/healthcheck"; do
68 tries_curl=$((tries_curl + 1))
69 if [ "$tries_curl" -ge 100 ]; then
70 echo "Healthcheck is not working, stopping:" 1>&2;
71 cat ./gnb.log 1>&2;
72 kill $GNB_PID $(<"./mongo.pid");
73 exit 1;
74 fi
75
76 sleep 3
77 done;
78
64 grep -q "Healthcheck OK" ./gnb.log 79 grep -q "Healthcheck OK" ./gnb.log
65 80
66 echo "GNB is ready" 81 echo "GNB is ready"