From 794c2080ec8c9e16a4583ae0ad1a8ccd4ff82842 Mon Sep 17 00:00:00 2001 From: andryyy Date: Fri, 5 Apr 2019 12:09:46 +0200 Subject: [PATCH] [ClamAV] Increase watchdog clamd-mailcow thresholds --- data/Dockerfiles/watchdog/watchdog.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/Dockerfiles/watchdog/watchdog.sh b/data/Dockerfiles/watchdog/watchdog.sh index cd9920a1b..f56d3c4cd 100755 --- a/data/Dockerfiles/watchdog/watchdog.sh +++ b/data/Dockerfiles/watchdog/watchdog.sh @@ -247,7 +247,7 @@ postfix_checks() { clamd_checks() { err_count=0 diff_c=0 - THRESHOLD=5 + THRESHOLD=15 # Reduce error count by 2 after restarting an unhealthy container trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1 while [ ${err_count} -lt ${THRESHOLD} ]; do @@ -263,7 +263,7 @@ clamd_checks() { sleep 1 else diff_c=0 - sleep $(( ( RANDOM % 30 ) + 10 )) + sleep $(( ( RANDOM % 30 ) + 30 )) fi done return 1