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、--jsoninstall:--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.token和gateway.auth.password都已設定但gateway.auth.mode未設定,install 會被阻擋,直到明確設定 mode。
建議
請使用 openclaw gateway 查閱最新的文件和範例。