mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
14 lines
176 B
Bash
14 lines
176 B
Bash
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
PORT=5000
|
|
IP="20.20.20.21"
|
|
|
|
if ! curl -m 3 -ILfSs "http://$IP:$PORT/"; then
|
|
echo "Failed to reach $IP"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Healthcheck OK"
|
|
exit 0
|