Merge pull request #24 from normanrz/patch-1

Update docker-entrypoint
This commit is contained in:
will Farrell
2019-02-26 00:14:31 -07:00
committed by GitHub
+2 -1
View File
@@ -26,8 +26,9 @@ if [ "$1" = 'autoheal' ] && [ -e ${DOCKER_SOCK} ]; then
labelFilter=",\"label\":\[\"${AUTOHEAL_CONTAINER_LABEL:=autoheal}=true\"\]"
fi
AUTOHEAL_START_PERIOD=${AUTOHEAL_START_PERIOD:=0}
echo "Monitoring containers for unhealthy status in ${AUTOHEAL_START_PERIOD} second(s)"
sleep ${AUTOHEAL_START_PERIOD:=0}
sleep ${AUTOHEAL_START_PERIOD}
while true; do
sleep ${AUTOHEAL_INTERVAL:=5}