Check PID file

This commit is contained in:
Kroese 2023-05-11 02:52:25 +02:00 committed by GitHub
parent 0a815a6901
commit 6aaafdd76f

View File

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