From fcc6a670e5550e825a42519a0880ce10b8397d4d Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 6 Mar 2022 17:55:07 +0100 Subject: [PATCH] add startup notification --- docker-entrypoint | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-entrypoint b/docker-entrypoint index eb482bf..39d7fc1 100755 --- a/docker-entrypoint +++ b/docker-entrypoint @@ -89,10 +89,12 @@ if [ "$1" = "autoheal" ] && [ -e "$DOCKER_SOCK" ];then # Delayed startup if [ "$AUTOHEAL_START_PERIOD" -gt 0 ] then - echo "Monitoring containers for unhealthy status in $AUTOHEAL_START_PERIOD second(s)" + echo "Monitoring containers for unhealthy status in $AUTOHEAL_START_PERIOD second(s)" sleep "$AUTOHEAL_START_PERIOD" fi + notify_webhook "Autoheal Startup complete !" & + while true do STOP_TIMEOUT=".Labels[\"autoheal.stop.timeout\"] // $AUTOHEAL_DEFAULT_STOP_TIMEOUT"