From dc18c1cd8b600dba545e27fb0218c1c6e12f385e Mon Sep 17 00:00:00 2001 From: Michael Wegener Date: Tue, 31 Mar 2026 13:42:30 +0200 Subject: [PATCH] fix(openclaw): disable conflicting scripts and update target remote --- scripts/openclaw-check.sh | 2 +- scripts/openclaw-repair.sh | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/openclaw-check.sh b/scripts/openclaw-check.sh index 4c146c8..eda84e9 100755 --- a/scripts/openclaw-check.sh +++ b/scripts/openclaw-check.sh @@ -6,7 +6,7 @@ launchctl list | grep ai.openclaw echo "" echo "--- Connectivity Check ---" -curl -i http://127.0.0.1:18789/health +curl -i http://100.64.0.39:18789/health echo "" echo "--- Node Logs (Last 10 lines) ---" diff --git a/scripts/openclaw-repair.sh b/scripts/openclaw-repair.sh index 5498255..b225cb0 100755 --- a/scripts/openclaw-repair.sh +++ b/scripts/openclaw-repair.sh @@ -2,7 +2,7 @@ # OpenClaw Connection Repair Watcher LOG_FILE="$HOME/.openclaw/logs/repair.log" -HEALTH_URL="http://127.0.0.1:18789/health" +HEALTH_URL="http://100.64.0.39:18789/health" REMOTE_HOST="100.64.0.39" TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S') @@ -32,13 +32,13 @@ check_remote() { repair() { log "Connection loss detected. Attempting repair..." - # Restart SSH tunnel first - log "Restarting ai.openclaw.ssh-tunnel..." - launchctl stop ai.openclaw.ssh-tunnel 2>/dev/null - launchctl start ai.openclaw.ssh-tunnel - - # Wait a bit for the tunnel to establish - sleep 5 + # Restart SSH tunnel if it exists + if launchctl list | grep -q ai.openclaw.ssh-tunnel; then + log "Restarting ai.openclaw.ssh-tunnel..." + launchctl stop ai.openclaw.ssh-tunnel 2>/dev/null + launchctl start ai.openclaw.ssh-tunnel + sleep 5 + fi # Restart OpenClaw node log "Restarting ai.openclaw.node..."