CLI commands
डेमन
openclaw daemon
Gateway सेवा प्रबंधन कमांड के लिए पुराना alias।
openclaw daemon ..., openclaw gateway ... सेवा कमांड के समान सेवा नियंत्रण सतह पर मैप होता है।
उपयोग
openclaw daemon statusopenclaw daemon installopenclaw daemon startopenclaw daemon stopopenclaw daemon restartopenclaw daemon uninstallउप-कमांड
status: सेवा install स्थिति दिखाएँ और Gateway health की probe करेंinstall: सेवा install करें (launchd/systemd/schtasks)uninstall: सेवा हटाएँstart: सेवा शुरू करेंstop: सेवा रोकेंrestart: सेवा restart करें
सामान्य विकल्प
status:--url,--token,--password,--timeout,--no-probe,--require-rpc,--deep,--jsoninstall:--port,--runtime <node|bun>,--token,--force,--jsonrestart:--safe,--skip-deferral,--force,--wait <duration>,--json- lifecycle (
uninstall|start|stop):--json
नोट:
statusसंभव होने पर probe auth के लिए configured auth SecretRefs resolve करता है।- यदि इस command path में कोई आवश्यक auth SecretRef unresolved है, तो probe connectivity/auth विफल होने पर
daemon status --jsonrpc.authWarningreport करता है;--token/--passwordस्पष्ट रूप से pass करें या पहले secret source resolve करें। - यदि probe सफल होती है, तो false positives से बचने के लिए unresolved auth-ref warnings suppress कर दी जाती हैं।
status --deepbest-effort system-level सेवा scan जोड़ता है। जब उसे अन्य gateway-जैसी सेवाएँ मिलती हैं, तो human output cleanup hints print करता है और चेतावनी देता है कि प्रति machine एक gateway अभी भी सामान्य recommendation है।status --deepPlugin-aware mode में config validation भी चलाता है और configured Plugin manifest warnings (उदाहरण के लिए missing channel config metadata) surface करता है, ताकि install और update smoke checks उन्हें पकड़ सकें। Defaultstatusतेज़ read-only path रखता है जो Plugin validation skip करता है।- Linux systemd installs पर,
statustoken-drift checks मेंEnvironment=औरEnvironmentFile=दोनों unit sources शामिल होते हैं। - Drift checks merged runtime env (पहले service command env, फिर process env fallback) का उपयोग करके
gateway.auth.tokenSecretRefs resolve करते हैं। - यदि token auth effectively active नहीं है (
password/none/trusted-proxyका explicitgateway.auth.mode, या mode unset जहाँ password जीत सकता है और कोई token candidate नहीं जीत सकता), तो token-drift checks config token resolution skip करते हैं। - जब token auth को token चाहिए और
gateway.auth.tokenSecretRef-managed है, तोinstallvalidate करता है कि SecretRef resolvable है, लेकिन resolved token को service environment metadata में persist नहीं करता। - यदि token auth को token चाहिए और configured token SecretRef unresolved है, तो install fail closed होता है।
- यदि
gateway.auth.tokenऔरgateway.auth.passwordदोनों configured हैं औरgateway.auth.modeunset है, तो install तब तक blocked रहता है जब तक mode स्पष्ट रूप से set न किया जाए। - macOS पर,
installLaunchAgent plists को owner-only रखता है और API keys या auth-profile env refs कोEnvironmentVariablesमें serialize करने के बजाय managed service environment values को owner-only file और wrapper के माध्यम से load करता है। - यदि आप जानबूझकर एक host पर multiple gateways चलाते हैं, तो ports, config/state, और workspaces isolate करें; देखें /gateway#multiple-gateways-same-host।
restart --saferunning Gateway से active work preflight करने और active work drain होने के बाद एक coalesced restart schedule करने को कहता है। Plainrestartमौजूदा service-manager behavior रखता है;--forceimmediate override path बना रहता है।restart --safe --skip-deferralOpenClaw-aware safe restart चलाता है, लेकिन active-work deferral gate bypass करता है ताकि blockers report होने पर भी Gateway restart तुरंत emit करे। यह stuck task run safe restart को pin करने पर operator escape hatch है;--safeआवश्यक है।
प्राथमिकता दें
वर्तमान docs और examples के लिए openclaw gateway का उपयोग करें।
संबंधित
Was this useful?