openclaw-gateway-hook

Systemd service (openclaw-gateway-hook.service) running /opt/scripts/openclaw-gateway-hook.sh. Watches Docker start events on repo-openclaw-gateway-1 and runs /opt/scripts/openclaw-token-sync.sh 10s after each gateway start. Logs to /var/log/openclaw-watchdog.log with tag [gateway-hook].

2026-07-26 — dead agent-restart step removed

The hook previously also ran docker restart openclaw-a72o-openclaw-1 after token sync. That agent container was retired with the v3 gateway-only architecture (Kulu removed 2026-04-13), so every gateway start since then logged No such container + ERROR: Failed to restart agent container (seen 07-22, 07-24, 07-26). The restart step was removed (token sync kept, now logs “Token sync complete”), the systemd unit description was updated to match, and the service was restarted. Committed in /opt/scripts as 68d74ef; the 02:45 push cron will sync it to origin.