[GH-ISSUE #4978] Systemd service on update #65184

Closed
opened 2026-05-03 19:57:04 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @nerkdesign on GitHub (Jun 11, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4978

Hello,

I used to set environments on ollama.service in systemd (origins, host...)
Is there a way to update ollama without erasing this service ?

Many thanks

Originally created by @nerkdesign on GitHub (Jun 11, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4978 Hello, I used to set environments on ollama.service in systemd (origins, host...) Is there a way to update ollama without erasing this service ? Many thanks
GiteaMirror added the feature request label 2026-05-03 19:57:04 -05:00
Author
Owner

@AncientMystic commented on GitHub (Jun 11, 2024):

Potentially you could use chmod 0444 to set it as read only, not sure if that would work as i usually just kept the variables in a text file and would edit the service and paste them back in and reload it whenever i needed to update ollama but its a thought (you would have to change permissions to edit the file at any point)

You could also only update the binary itself using the manual install instructions using

sudo curl -L current version url -o /usr/bin/ollama
sudo chmod +x /usr/bin/ollama

This is one option i used a few times when not wanting to do a full update and edit the service again

Hope this can help you with this issue

<!-- gh-comment-id:2160722204 --> @AncientMystic commented on GitHub (Jun 11, 2024): Potentially you could use chmod 0444 to set it as read only, not sure if that would work as i usually just kept the variables in a text file and would edit the service and paste them back in and reload it whenever i needed to update ollama but its a thought (you would have to change permissions to edit the file at any point) You could also only update the binary itself using the manual install instructions using sudo curl -L *current version url* -o /usr/bin/ollama sudo chmod +x /usr/bin/ollama This is one option i used a few times when not wanting to do a full update and edit the service again Hope this can help you with this issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#65184