From e7cb1c75853d34ffe28af7e64869d63e4c6bdc26 Mon Sep 17 00:00:00 2001 From: Anthony Bretaudeau Date: Mon, 19 Feb 2024 18:26:14 +0100 Subject: [PATCH] healthcheck at startup --- tools/genenotebook/launch_gnb.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/genenotebook/launch_gnb.sh b/tools/genenotebook/launch_gnb.sh index f9d5680..3d8d2aa 100755 --- a/tools/genenotebook/launch_gnb.sh +++ b/tools/genenotebook/launch_gnb.sh @@ -59,4 +59,8 @@ while ! grep -q "GeneNoteBook server started, serving" ./gnb.log; do sleep 3 done; +# Make sure that gnb is working, and that it's serving on the expected port +curl http://127.0.0.1/healthcheck > /dev/null +grep -q "Healthcheck OK" ./gnb.log + echo "GNB is ready"