claw-subagent-service 0.0.130 → 0.0.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/command/linux/start.sh +11 -2
- package/package.json +1 -1
package/command/linux/start.sh
CHANGED
|
@@ -238,10 +238,19 @@ start_docker() {
|
|
|
238
238
|
cat /tmp/openclaw-help.txt | head -30
|
|
239
239
|
fi
|
|
240
240
|
|
|
241
|
+
# 检查 openclaw gateway run --help,确认 run 子命令的参数
|
|
242
|
+
log_info "检查 openclaw gateway run --help..."
|
|
243
|
+
openclaw gateway run --help > /tmp/openclaw-run-help.txt 2>&1 || true
|
|
244
|
+
if [ -f /tmp/openclaw-run-help.txt ]; then
|
|
245
|
+
log_info "openclaw gateway run help 输出:"
|
|
246
|
+
cat /tmp/openclaw-run-help.txt | head -30
|
|
247
|
+
fi
|
|
248
|
+
|
|
241
249
|
# 尝试使用正确的参数启动
|
|
242
250
|
# 注意:openclaw gateway 可能使用不同的参数名
|
|
243
|
-
|
|
244
|
-
|
|
251
|
+
# 在 Docker 环境中,使用 run 子命令前台运行,而不是后台启动
|
|
252
|
+
log_info "尝试启动: openclaw gateway run --port $PORT"
|
|
253
|
+
nohup openclaw gateway run --port "$PORT" > "$log_file" 2>&1 &
|
|
245
254
|
|
|
246
255
|
# 等待 5 秒检查进程是否启动(给更多时间)
|
|
247
256
|
sleep 5
|