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 才重启