Added AUTOHEAL_START_PERIOD to delay the first health check

This commit is contained in:
Johann BERNEZ
2018-12-08 11:03:39 +01:00
parent ada5dfd023
commit b0d602ded1
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -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}