Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

launch: skip openclaw gateway health check when no daemon install (#14984)

Bruce MacDonald6df6d097d94e
diff --git a/cmd/launch/openclaw.go b/cmd/launch/openclaw.go
index 767c0bdd8..b47dec022 100644
--- a/cmd/launch/openclaw.go
+++ b/cmd/launch/openclaw.go
@@ -80,6 +80,12 @@ func (c *Openclaw) Run(model string, args []string) error {
}
if canInstallDaemon() {
onboardArgs = append(onboardArgs, "--install-daemon")
+ } else {
+ // When we can't install a daemon (e.g. no systemd, sudo dropped
+ // XDG_RUNTIME_DIR, or container environment), skip the gateway
+ // health check so non-interactive onboarding completes. The
+ // gateway is started as a foreground child process after onboarding.
+ onboardArgs = append(onboardArgs, "--skip-health")
}
cmd := exec.Command(bin, onboardArgs...)
cmd.Stdin = os.Stdin