daemon
openclaw daemon
Section titled “openclaw daemon”Gateway(网关) 网关 服务管理命令的旧别名。
openclaw daemon ... 映射到与 openclaw gateway ... 服务命令相同的服务控制界面。
openclaw daemon statusopenclaw daemon installopenclaw daemon startopenclaw daemon stopopenclaw daemon restartopenclaw daemon uninstallstatus:显示服务安装状态并探测 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.tokenSecretRefs。 - 如果令牌身份验证未实际生效(显式
gateway.auth.mode为password/none/trusted-proxy,或者未设置模式且密码可能胜出而没有令牌候选者可能胜出),令牌漂移检查将跳过配置令牌解析。 - 当令牌身份验证需要令牌且
gateway.auth.token由 SecretRef 管理时,install会验证 SecretRef 可解析,但不会将解析出的令牌持久化到服务环境元数据中。 - 如果令牌身份验证需要令牌且配置的令牌 SecretRef 未解析,安装将以失败告终。
- 如果同时配置了
gateway.auth.token和gateway.auth.password且未设置gateway.auth.mode,安装将被阻止,直到显式设置模式。
有关最新的文档和示例,请使用 openclaw gateway。