mirror of
https://github.com/willfarrell/docker-autoheal.git
synced 2024-12-06 19:16:20 +01:00
Added AUTOHEAL_START_PERIOD to delay the first health check
This commit is contained in:
+3
-1
@@ -33,7 +33,9 @@ if [ "$1" = 'autoheal' ] && [ -e ${DOCKER_SOCK} ]; then
|
||||
}
|
||||
fi
|
||||
|
||||
echo "Monitoring containers for unhealthy status"
|
||||
echo "Monitoring containers for unhealthy status in ${AUTOHEAL_START_PERIOD} second(s)"
|
||||
sleep ${AUTOHEAL_START_PERIOD:=0}
|
||||
|
||||
while true; do
|
||||
sleep ${AUTOHEAL_INTERVAL:=5}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user