fix(openclaw): disable conflicting scripts and update target remote
This commit is contained in:
@@ -6,7 +6,7 @@ launchctl list | grep ai.openclaw
|
|||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "--- Connectivity Check ---"
|
echo "--- Connectivity Check ---"
|
||||||
curl -i http://127.0.0.1:18789/health
|
curl -i http://100.64.0.39:18789/health
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "--- Node Logs (Last 10 lines) ---"
|
echo "--- Node Logs (Last 10 lines) ---"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# OpenClaw Connection Repair Watcher
|
# OpenClaw Connection Repair Watcher
|
||||||
|
|
||||||
LOG_FILE="$HOME/.openclaw/logs/repair.log"
|
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"
|
REMOTE_HOST="100.64.0.39"
|
||||||
TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S')
|
TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S')
|
||||||
|
|
||||||
@@ -32,13 +32,13 @@ check_remote() {
|
|||||||
repair() {
|
repair() {
|
||||||
log "Connection loss detected. Attempting repair..."
|
log "Connection loss detected. Attempting repair..."
|
||||||
|
|
||||||
# Restart SSH tunnel first
|
# Restart SSH tunnel if it exists
|
||||||
|
if launchctl list | grep -q ai.openclaw.ssh-tunnel; then
|
||||||
log "Restarting ai.openclaw.ssh-tunnel..."
|
log "Restarting ai.openclaw.ssh-tunnel..."
|
||||||
launchctl stop ai.openclaw.ssh-tunnel 2>/dev/null
|
launchctl stop ai.openclaw.ssh-tunnel 2>/dev/null
|
||||||
launchctl start ai.openclaw.ssh-tunnel
|
launchctl start ai.openclaw.ssh-tunnel
|
||||||
|
|
||||||
# Wait a bit for the tunnel to establish
|
|
||||||
sleep 5
|
sleep 5
|
||||||
|
fi
|
||||||
|
|
||||||
# Restart OpenClaw node
|
# Restart OpenClaw node
|
||||||
log "Restarting ai.openclaw.node..."
|
log "Restarting ai.openclaw.node..."
|
||||||
|
|||||||
Reference in New Issue
Block a user