8000 fix: prevent overwriting existing systemd service file by autoexpect · Pull Request #13203 · ollama/ollama · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@autoexpect
Copy link

Changes

  • Added existence check before creating ollama.service
  • Display informative message when service file already exists
  • Prevents accidental overwrite of custom systemd configurations

Motivation

During installation/upgrade, the script was unconditionally overwriting
the systemd service file, which could destroy user customizations such as:

  • Custom environment variables
  • Modified resource limits
  • Custom startup parameters

Impact

  • Safer upgrades that preserve user configurations
  • Better user experience for those who have customized the service
  • No breaking changes for fresh installations

Signed-off-by: Zhang Rui <rui.crater@gmail.com>
@rick-github
Copy link
Collaborator

User customizations go in the override file which is not affected by installation/upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0