个性化配置
macOS 上使用 launchd 管理 OpenClaw Gateway 的配置方法,包括创建服务、启动、停止、重启和查看日志。
自动崩溃
macOS 上用 launchd(相当于 systemd)来管理 Gateway。
我来帮你创建服务配置文件:配置文件已创建!现在加载服务:✅ 完成!Gateway 已注册为系统服务
📋 服务状态
- 服务名: com.openclaw.gateway + 状态: 已加载运行 + 日志: ~/.openclaw/logs/gateway-launchd.log🎯
完整管理命令(服务启动)
# 启动
launchctl start com.openclaw.gateway
# 停止(不重启)
launchctl stop com.openclaw.gateway
# 重启
launchctl kickstart -k gui/$(id -u)/com.openclaw.gateway
# 查看状态
launchctl list | grep openclaw
# 查看日志
tail -f ~/.openclaw/logs/gateway-launchd.log