From 4af6357f826d53d19883580d0bfe6170f54a3afb Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Wed, 29 Apr 2026 04:41:07 +0800 Subject: [PATCH] Avoid concurrent IB Gateway recovery jobs --- scripts/install_gateway_health_watcher.sh | 1 - tests/test_gateway_recovery_scripts.sh | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_gateway_health_watcher.sh b/scripts/install_gateway_health_watcher.sh index 33b73de..a40e412 100755 --- a/scripts/install_gateway_health_watcher.sh +++ b/scripts/install_gateway_health_watcher.sh @@ -69,4 +69,3 @@ EOF "$systemctl_bin" daemon-reload "$systemctl_bin" enable --now ibkr-gateway-healthcheck.timer "$systemctl_bin" enable --now ibkr-gateway-daily-restart.timer -"$systemctl_bin" start ibkr-gateway-healthcheck.service diff --git a/tests/test_gateway_recovery_scripts.sh b/tests/test_gateway_recovery_scripts.sh index ca66b94..c8dcbcd 100644 --- a/tests/test_gateway_recovery_scripts.sh +++ b/tests/test_gateway_recovery_scripts.sh @@ -40,3 +40,4 @@ grep -Fq 'IB_GATEWAY_HEALTHCHECK_INTERVAL_SECONDS:-300' "$health_watcher_script" grep -Fq 'IB_GATEWAY_DAILY_RESTART_ON_CALENDAR:-*-*-* 10:30:00 UTC' "$health_watcher_script" grep -Fq 'enable --now ibkr-gateway-healthcheck.timer' "$health_watcher_script" grep -Fq 'enable --now ibkr-gateway-daily-restart.timer' "$health_watcher_script" +! grep -Fq 'start ibkr-gateway-healthcheck.service' "$health_watcher_script"