daemon
openclaw daemon
Section titled “openclaw daemon”閘道服務管理命令的舊版別名。
openclaw daemon ... 對應到與 openclaw gateway ... 服務命令相同的服務控制介面。
openclaw daemon statusopenclaw daemon installopenclaw daemon startopenclaw daemon stopopenclaw daemon restartopenclaw daemon uninstallstatus:顯示服務安裝狀態並探查閘道健康狀況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或先解析 secret 來源。 - 如果探查成功,將會抑制未解析身分驗證參照的警告,以避免誤判。
- 在 Linux systemd 安裝中,
statustoken-drift 檢查包括Environment=和EnvironmentFile=單元來源。 - Drift 檢查使用合併的運行時環境(優先使用服務指令環境,然後回退到進程環境)來解析
gateway.auth.tokenSecretRefs。 - 如果 Token 認證未實際生效(明確設定
gateway.auth.mode為password/none/trusted-proxy,或在未設定模式且密碼可優先且沒有 Token 候選可優先的情況下),Token-Drift 檢查將跳過配置 Token 解析。 - 當 Token 認證需要 Token 且
gateway.auth.token由 SecretRef 管理時,install會驗證 SecretRef 是否可解析,但不會將解析出的 Token 持久化到服務環境元數據中。 - 如果 Token 認證需要 Token 且配置的 Token SecretRef 未解析,安裝將以失敗告終。
- 如果同時配置了
gateway.auth.token和gateway.auth.password且未設定gateway.auth.mode,安裝將被阻止,直到明確設定模式。
有關當前文檔和示例,請使用 openclaw gateway。