8900 commited on
Commit
48598db
·
verified ·
1 Parent(s): 41ecfd2

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +12 -9
entrypoint.sh CHANGED
@@ -41,6 +41,18 @@ fi
41
  export OPENCLAW_HOME
42
  log "OPENCLAW_HOME=$OPENCLAW_HOME"
43
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  # ----------------------------------------------------------------
45
  # Export provider API keys from Secrets
46
  # ----------------------------------------------------------------
@@ -119,15 +131,6 @@ JSEOF
119
 
120
  # ----------------------------------------------------------------
121
  # Gateway loop
122
- #
123
- # OpenClaw restart behaviour:
124
- # - On config save it spawns a child process (new gateway) then
125
- # the parent exits with code 0.
126
- # - The child inherits the port 7860 lock.
127
- # - We must NOT restart until the child also exits (port is free).
128
- #
129
- # Normal crash: port is immediately free, loop restarts quickly.
130
- # Config-save restart: port stays held by child; we wait up to 90s.
131
  # ----------------------------------------------------------------
132
  log "Starting gateway loop..."
133
 
 
41
  export OPENCLAW_HOME
42
  log "OPENCLAW_HOME=$OPENCLAW_HOME"
43
 
44
+ # ====================================================================
45
+ # 🚀 万能诊断脚本 v3.0(真正动态版) - 每次启动自动运行
46
+ # 放在这里是为了最早打印到 Logs,最快看到问题
47
+ # ====================================================================
48
+ log "Running 万能诊断脚本 (openclaw-diagnose.py v3.0)..."
49
+ if [ -f /app/openclaw-diagnose.py ]; then
50
+ python3 /app/openclaw-diagnose.py || true
51
+ else
52
+ warn "openclaw-diagnose.py not found in /app ! 请确认已上传到仓库根目录"
53
+ fi
54
+ # ====================================================================
55
+
56
  # ----------------------------------------------------------------
57
  # Export provider API keys from Secrets
58
  # ----------------------------------------------------------------
 
131
 
132
  # ----------------------------------------------------------------
133
  # Gateway loop
 
 
 
 
 
 
 
 
 
134
  # ----------------------------------------------------------------
135
  log "Starting gateway loop..."
136