소스 검색

[ClamAV] Increase watchdog clamd-mailcow thresholds

andryyy 6 년 전
부모
커밋
794c2080ec
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      data/Dockerfiles/watchdog/watchdog.sh

+ 2 - 2
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