Files
vote/healthchecks/redis.sh
Scaffolder 3f7396407b
Some checks failed
CI Pipeline / Build and Test (push) Has been cancelled
Build and Publish TechDocs / build-and-publish (push) Has been cancelled
initial commit
Change-Id: Ia748646eaf5c18f44eb5b147ff577d0d5ee844e8
2026-03-23 17:40:04 +00:00

11 lines
159 B
Bash
Executable File

#!/bin/sh
set -eo pipefail
host="$(hostname -i || echo '127.0.0.1')"
if ping="$(redis-cli -h "$host" ping)" && [ "$ping" = 'PONG' ]; then
exit 0
fi
exit 1