跳转到内容

daemon

Gateway(网关) 网关 服务管理命令的旧别名。

openclaw daemon ... 映射到与 openclaw gateway ... 服务命令相同的服务控制界面。

Terminal window
openclaw daemon status
openclaw daemon install
openclaw daemon start
openclaw daemon stop
openclaw daemon restart
openclaw daemon uninstall
  • status:显示服务安装状态并探测 Gateway(网关) 网关 健康状况
  • install:安装服务 (launchd/systemd/schtasks)
  • uninstall:移除服务
  • start:启动服务
  • stop:停止服务
  • restart:重启服务
  • status--url--token--password--timeout--no-probe--require-rpc--deep--json
  • install--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 SecretRefs。
  • 如果令牌身份验证未实际生效(显式 gateway.auth.modepassword/none/trusted-proxy,或者未设置模式且密码可能胜出而没有令牌候选者可能胜出),令牌漂移检查将跳过配置令牌解析。
  • 当令牌身份验证需要令牌且 gateway.auth.token 由 SecretRef 管理时,install 会验证 SecretRef 可解析,但不会将解析出的令牌持久化到服务环境元数据中。
  • 如果令牌身份验证需要令牌且配置的令牌 SecretRef 未解析,安装将以失败告终。
  • 如果同时配置了 gateway.auth.tokengateway.auth.password 且未设置 gateway.auth.mode,安装将被阻止,直到显式设置模式。

有关最新的文档和示例,请使用 openclaw gateway