fix(openclaw): disable conflicting scripts and update target remote
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user