[ClamAV] Increase watchdog clamd-mailcow thresholds

This commit is contained in:
andryyy 2019-04-05 12:09:46 +02:00
parent a9c1b480c5
commit 794c2080ec
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF

View File

@ -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