[GH-ISSUE #14647] Installer should not overwrite /etc/systemd/system/ollama.service #71549

Closed
opened 2026-05-05 02:06:13 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @SirNate0 on GitHub (Mar 5, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/14647

What is the issue?

I ran the installer without manually stripping out the optional parts. It overwrote /etc/systemd/system/ollama.service which includes configuration for ollama (setting the environment variables OLLAMA_MODELS, OLLAMA_HOST, OLLAMA_ORIGINS). If the service file already exists, it should not be overwritten (at minimum the script should confirm with the user first).

Relevant log output

N/A

OS

Linux

GPU

No response

CPU

No response

Ollama version

0.17.6

Originally created by @SirNate0 on GitHub (Mar 5, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/14647 ### What is the issue? I ran the installer without manually stripping out the optional parts. It overwrote `/etc/systemd/system/ollama.service` which includes configuration for ollama (setting the environment variables `OLLAMA_MODELS`, `OLLAMA_HOST`, `OLLAMA_ORIGINS`). If the service file already exists, it should not be overwritten (at minimum the script should confirm with the user first). ### Relevant log output ```shell N/A ``` ### OS Linux ### GPU _No response_ ### CPU _No response_ ### Ollama version 0.17.6
GiteaMirror added the bug label 2026-05-05 02:06:13 -05:00
Author
Owner

@rick-github commented on GitHub (Mar 5, 2026):

Use the override file for modifying/setting ollama settings as shown here.

<!-- gh-comment-id:4007898181 --> @rick-github commented on GitHub (Mar 5, 2026): Use the override file for modifying/setting ollama settings as shown [here](https://github.com/ollama/ollama/blob/main/docs/faq.mdx#setting-environment-variables-on-linux).
Author
Owner

@SirNate0 commented on GitHub (Mar 5, 2026):

Interesting, I did not know that existed. The docs should be updated to note that this is is an override and not the same as editing the ollama.service file itself, as it is not apparent unless you already know that it the case.

That said, I still think the current behavior is a bug, even with this workaround. #7598 agrees, though that issue asks for even broader changes to the installer.

<!-- gh-comment-id:4008286931 --> @SirNate0 commented on GitHub (Mar 5, 2026): Interesting, I did not know that existed. The docs should be updated to note that this is is an override and not the same as editing the ollama.service file itself, as it is not apparent unless you already know that it the case. That said, I still think the current behavior is a bug, even with this workaround. #7598 agrees, though that issue asks for even broader changes to the installer.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#71549