mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 04:20:17 +02:00
redis healthcheck script
This commit is contained in:
parent
28fd1b07ea
commit
18fec5f614
10
docker/conf/redis_healthcheck.sh
Normal file
10
docker/conf/redis_healthcheck.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user