mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-27 09:19:15 +08:00
[ClamAV] Increase watchdog clamd-mailcow thresholds
This commit is contained in:
parent
a9c1b480c5
commit
794c2080ec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user