openclaw daemon

Gateway 服務管理指令的舊版別名。

openclaw daemon ... 對應的服務控制介面與 openclaw gateway ... 的服務指令相同。

用法

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--deep--json
  • install--port--runtime <node|bun>--token--force--json
  • 生命週期(uninstall|start|stop|restart):--json

注意事項:

  • status 會解析已設定的驗證 SecretRef 用於探測驗證。
  • 在 Linux systemd 安裝中,status 的 token 飄移檢查包含 Environment=EnvironmentFile= 兩種 unit 來源。
  • 當 token 驗證需要 token 且 gateway.auth.token 是 SecretRef 管理的,install 會驗證 SecretRef 是否可解析,但不會將已解析的 token 寫入服務環境的中繼資料。
  • 如果 token 驗證需要 token 但已設定的 token SecretRef 無法解析,install 會直接拒絕。
  • 如果 gateway.auth.tokengateway.auth.password 都已設定但 gateway.auth.mode 未設定,install 會被阻擋,直到明確設定 mode。

建議

請使用 openclaw gateway 查閱最新的文件和範例。