openclaw daemon
Gateway 网关服务管理命令的旧版别名。
openclaw daemon ... 映射到与 openclaw gateway ... 服务命令相同的服务控制面。
用法
子命令
status:显示服务安装状态并探测 Gateway 网关健康状况install:安装服务(launchd/systemd/schtasks)uninstall:移除服务start:启动服务stop:停止服务restart:重启服务
常用选项
status:--url、--token、--password、--timeout、--no-probe、--deep、--jsoninstall:--port、--runtime <node|bun>、--token、--force、--json- 生命周期命令(
uninstall|start|stop|restart):--json
status在可能的情况下会解析已配置的认证 SecretRef 用于探测认证。- 在 Linux systemd 安装中,
status的令牌漂移检查包括Environment=和EnvironmentFile=两种单元源。 - 当令牌认证需要令牌且
gateway.auth.token由 SecretRef 管理时,install会验证 SecretRef 可解析,但不会将解析后的令牌持久化到服务环境元数据中。 - 如果令牌认证需要令牌但已配置的令牌 SecretRef 未解析,install 会安全失败。
- 如果同时配置了
gateway.auth.token和gateway.auth.password且gateway.auth.mode未设置,install 会被阻止,直到显式设置 mode。
推荐
请参阅openclaw gateway 获取当前文档和示例。