Fixed Daemon Launch in Non-systemd Environments
Ollama v0.18.1-rc0 addresses a critical issue affecting containerized deployments without systemd. Previously, the openclaw onboard --install-daemon command would exit with a non-zero status in these environments, causing the entire ollama launch openclaw process to abort.
What Changed
The fix introduces conditional logic that detects the availability of systemd user services before passing the --install-daemon flag:
- On Linux with systemd: The flag is included only when
/run/systemd/systemis present andXDG_RUNTIME_DIRis set - On other platforms: The flag is included by default
- In systemd-free containers: The flag is skipped, allowing the gateway to start as a foreground child process
Impact
This change ensures that Ollama can successfully launch in modern container environments (Docker, Kubernetes, etc.) that don't include systemd, improving compatibility for containerized deployments while maintaining backward compatibility on traditional Linux systems and other platforms.
Action Items
If you're running Ollama in containers without systemd, upgrade to v0.18.1-rc0 to resolve launch failures. No configuration changes are required.
Ollama