Doctor 误报规避:launchd 下避免误杀正在运行的 gateway
场景:macOS launchd 中非 gateway 服务若引用 ~/.openclaw 路径,doctor 可能误判为 gateway-like,并给出会中断服务的清理建议。
GITHUBDiscovered 2026-02-14Author jeades
Prerequisites
- You run OpenClaw on macOS with launchd service management.
- You can inspect launchd labels/plists before executing cleanup hints.
Steps
- Run openclaw doctor and collect all services reported as gateway-like without executing cleanup commands yet.
- For each flagged service, inspect launchd label and ProgramArguments to confirm whether it actually launches gateway.
- If service is unrelated, keep it and only clean obsolete ai.openclaw.gateway entries that are provably inactive.
- After any cleanup, verify gateway is still online and reachable from your normal chat channel.
Commands
openclaw doctoropenclaw gateway statuslaunchctl list | grep -i openclawopenclaw logs --local-timeVerify
Doctor output is reviewed without accidental gateway shutdown, and gateway remains healthy after cleanup decisions.
Caveats
- Blindly executing autogenerated cleanup hints can break remote/headless access.
- Exact doctor detection behavior may change in later patches; re-check release notes before standardizing SOP(需验证).
Source attribution
This tip is aggregated from community/public sources and preserved with attribution.
Open original source ↗