[PR #14895] scripts: wait for graphical.target in systemd service #40776

Open
opened 2026-04-23 01:36:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14895
Author: @BillionClaw
Created: 3/17/2026
Status: 🔄 Open

Base: mainHead: clawoss/fix/systemd-gpu-ready


📝 Commits (1)

  • cb0f55b scripts: wait for graphical.target in systemd service to ensure GPU is ready

📊 Changes

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

View changed files

📝 scripts/install.sh (+1 -1)

📄 Description

The ollama systemd service starts before the GPU drivers are ready, causing it to fall back to CPU mode.

Changed the service dependency from After=network-online.target to After=network-online.target graphical.target to ensure the GPU is available before starting.

Fixes #14874


🔄 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/14895 **Author:** [@BillionClaw](https://github.com/BillionClaw) **Created:** 3/17/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `clawoss/fix/systemd-gpu-ready` --- ### 📝 Commits (1) - [`cb0f55b`](https://github.com/ollama/ollama/commit/cb0f55b3246b35932296656a24bf4143a27fb2f7) scripts: wait for graphical.target in systemd service to ensure GPU is ready ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `scripts/install.sh` (+1 -1) </details> ### 📄 Description The ollama systemd service starts before the GPU drivers are ready, causing it to fall back to CPU mode. Changed the service dependency from `After=network-online.target` to `After=network-online.target graphical.target` to ensure the GPU is available before starting. Fixes #14874 --- <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-23 01:36:13 -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#40776