openclaw daemon
Gateway 网关 服务管理命令的旧别名。
openclaw daemon ... 映射到与 openclaw gateway ... 服务命令相同的服务控制界面。
用法
子命令
status:显示服务安装状态并探测 Gateway 网关 健康状况install:安装服务 (launchd/systemd/schtasks)uninstall:移除服务start:启动服务stop:停止服务restart:重启服务
通用选项
status:--url、--token、--password、--timeout、--no-probe、--require-rpc、--deep、--jsoninstall:--port、--runtime <node|bun>、--token、--force、--json- lifecycle (
uninstall|start|stop|restart):--json
status在可能的情况下解析探针身份验证配置的 SecretRefs。- 如果在此命令路径中未解析所需的身份验证 SecretRef,则在探针连接/身份验证失败时
daemon status --json会报告rpc.authWarning;请显式传递--token/--password或先解析密钥源。 - 如果探针成功,将抑制未解析的 auth-ref 警告以避免误报。
- 在 Linux systemd 安装上,
status令牌漂移检查包括Environment=和EnvironmentFile=单元源。 - 当令牌身份验证需要令牌且
gateway.auth.token由 SecretRef 管理时,install会验证 SecretRef 是否可解析,但不会将解析出的令牌持久化到服务环境元数据中。 - 如果令牌身份验证需要令牌但配置的令牌 SecretRef 未解析,则安装将失败并关闭。
- 如果同时配置了
gateway.auth.token和gateway.auth.password且未设置gateway.auth.mode,则安装将被阻止,直到显式设置模式。
首选
请使用openclaw gateway 查看当前文档和示例。
本页面源自 openclaw/openclaw,由 BeaversLab 翻译,遵循 MIT 协议 发布。