[PR #14883] [MERGED] cmd/launch: skip --install-daemon when systemd is unavailable #14892

Closed
opened 2026-04-13 01:05:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14883
Author: @BruceMacD
Created: 3/16/2026
Status: Merged
Merged: 3/16/2026
Merged by: @BruceMacD

Base: mainHead: brucemacd/gateway-svc-check


📝 Commits (1)

  • 23790ca cmd/launch: skip --install-daemon when systemd is unavailable

📊 Changes

1 file changed (+26 additions, -3 deletions)

View changed files

📝 cmd/launch/openclaw.go (+26 -3)

📄 Description

In container environments without systemd, openclaw onboard --install-daemon exits non-zero because it cannot create a systemd user service. This causes ollama launch openclaw to abort even though the gateway can be started as a foreground child process.

Only pass --install-daemon when systemd user services are reachable (Linux with /run/systemd/system present and XDG_RUNTIME_DIR set). On all other platforms the flag is still included by default.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/14883 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 3/16/2026 **Status:** ✅ Merged **Merged:** 3/16/2026 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/gateway-svc-check` --- ### 📝 Commits (1) - [`23790ca`](https://github.com/ollama/ollama/commit/23790ca41c11a3fa47211470e6ef840d8d65d9a6) cmd/launch: skip --install-daemon when systemd is unavailable ### 📊 Changes **1 file changed** (+26 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `cmd/launch/openclaw.go` (+26 -3) </details> ### 📄 Description In container environments without systemd, `openclaw onboard --install-daemon` exits non-zero because it cannot create a systemd user service. This causes `ollama launch openclaw` to abort even though the gateway can be started as a foreground child process. Only pass --install-daemon when systemd user services are reachable (Linux with /run/systemd/system present and XDG_RUNTIME_DIR set). On all other platforms the flag is still included by default. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 01:05:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#14892