frostfs-dev-env/services/storage/healthcheck.sh
Alex Vanin 1611844989 [#106] service/storage: Add healthcheck
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-06-30 22:31:29 +03:00

5 lines
215 B
Bash
Executable file

#!/bin/sh
EXPECTED="Health status: READY"
GOT=`/neofs-cli -r $NEOFS_CONTROL_GRPC_ENDPOINT --binary-key $NEOFS_NODE_KEY control healthcheck | grep "Health"`
if [ "$EXPECTED" = "$GOT" ]; then exit 0; else exit 1; fi