From 2c9680cfa94de29517e822203e2a94e05f074f94 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Thu, 28 May 2026 12:28:32 +0800 Subject: [PATCH] auto-sync: 2026-05-28 12:28:32 --- scripts/gateway-watchdog.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/gateway-watchdog.sh b/scripts/gateway-watchdog.sh index 04bad90..b557240 100755 --- a/scripts/gateway-watchdog.sh +++ b/scripts/gateway-watchdog.sh @@ -11,6 +11,9 @@ set -euo pipefail +# crontab 环境下 PATH 不完整,补上 +export PATH="/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:$PATH" + # === 配置 === CHECK_WINDOW=120 # 检查最近多少秒的日志 THRESHOLD=3 # 连续检测到多少次 429 才重启