fix: Skip healthcheck during shutdown

fix: Skip healthcheck during shutdown
This commit is contained in:
Kroese 2023-11-09 16:15:08 +01:00 committed by GitHub
commit 0b8306d827

View File

@ -2,6 +2,7 @@
set -u set -u
[ ! -f "/run/qemu.pid" ] && echo "QEMU not running yet.." && exit 0 [ ! -f "/run/qemu.pid" ] && echo "QEMU not running yet.." && exit 0
[ -f "/run/qemu.counter"] && echo "QEMU is shutting down.." && exit 1
# Retrieve IP from guest VM for Docker healthcheck # Retrieve IP from guest VM for Docker healthcheck
RESPONSE=$(curl -s -m 16 -S http://127.0.0.1:2210/read?command=10 2>&1) RESPONSE=$(curl -s -m 16 -S http://127.0.0.1:2210/read?command=10 2>&1)