Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,10 @@ systemctl status ibkr-gateway-daily-restart.timer --no-pager
then restarts and finally recreates the container if the API does not recover.

`ibkr-gateway-daily-restart.timer` restarts the Gateway once per day at
`10:30 UTC` by default, then waits for the same API handshake readiness. Override
the schedule during install with:
`10:30 UTC` by default, then waits for the same API handshake readiness. Missed
daily restart times are not replayed when the timer is started manually, so
re-enabling the timer during a maintenance window does not immediately restart
an already-authenticated Gateway. Override the schedule during install with:

```bash
IB_GATEWAY_DAILY_RESTART_ON_CALENDAR='Mon..Fri 10:30:00 UTC' sudo bash ./scripts/install_gateway_health_watcher.sh
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_gateway_health_watcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Description=Restart IBKR Gateway on a fixed daily schedule

[Timer]
OnCalendar=$daily_restart_calendar
Persistent=true
Persistent=false
Unit=$IBKR_GATEWAY_DAILY_RESTART_SERVICE

[Install]
Expand Down
1 change: 1 addition & 0 deletions tests/test_gateway_recovery_scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ grep -Fq 'Environment=COMPOSE_FILE=$compose_file' "$health_watcher_script"
grep -Fq 'Environment=IB_GATEWAY_RECOVERY_LOCK_FILE=$recovery_lock_file' "$health_watcher_script"
grep -Fq 'Environment=IB_GATEWAY_RECOVERY_LOCK_WAIT_SECONDS=0' "$health_watcher_script"
grep -Fq 'OnActiveSec=$health_interval_seconds' "$health_watcher_script"
grep -Fq 'Persistent=false' "$health_watcher_script"
! grep -Fq 'OnBootSec=5min' "$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"
Expand Down