[GH-ISSUE #6594] Please fix Linux installer, so any Environment in /etc/systemd/system/ollama.service isn't overwritten #66189

Closed
opened 2026-05-04 00:31:27 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @nightness on GitHub (Sep 2, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6594

What is the issue?

Per instructions at setting-environment-variables-on-linux I'm using
Environment="OLLAMA_HOST=0.0.0.0:11434" in /etc/systemd/system/ollama.service. Please stop overwriting this with every reinstall to upgrade. Maybe ask on install if an existing config file is detected, or just don't overwrite if it exists (with maybe a flag to force overwrite instead).

OS

Linux

GPU

AMD

CPU

AMD

Ollama version

0.3.9

Originally created by @nightness on GitHub (Sep 2, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6594 ### What is the issue? Per instructions at [setting-environment-variables-on-linux](https://github.com/ollama/ollama/blob/main/docs/faq.md#setting-environment-variables-on-linux) I'm using Environment="OLLAMA_HOST=0.0.0.0:11434" in `/etc/systemd/system/ollama.service`. Please stop overwriting this with every reinstall to upgrade. Maybe ask on install if an existing config file is detected, or just don't overwrite if it exists (with maybe a flag to force overwrite instead). ### OS Linux ### GPU AMD ### CPU AMD ### Ollama version 0.3.9
GiteaMirror added the bug label 2026-05-04 00:31:28 -05:00
Author
Owner

@rick-github commented on GitHub (Sep 2, 2024):

Add your overrides to /etc/systemd/system/ollama.service.d/override.conf.

<!-- gh-comment-id:2325039041 --> @rick-github commented on GitHub (Sep 2, 2024): Add your overrides to `/etc/systemd/system/ollama.service.d/override.conf`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#66189