[GH-ISSUE #13344] can't kill the ollama process since it would automatically restart it again #8813

Closed
opened 2026-04-12 21:35:48 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @helxsz on GitHub (Dec 5, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/13344

I have updated the ollama to the latest version in ubuntu, and it is running with command ollama serve in localhost:11434 in the background.

now I want to kill the process and restart it to make it run in 0.0.0.0:11434. However the problem is everytime I kill the ollama process, it will automatically restart again, I don't know how to just stop it.

pgrep ollama
1342356

kill -9 1342356

pgrep ollama
1342366
Originally created by @helxsz on GitHub (Dec 5, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/13344 I have updated the ollama to the latest version in ubuntu, and it is running with command ollama serve in localhost:11434 in the background. now I want to kill the process and restart it to make it run in 0.0.0.0:11434. However the problem is everytime I kill the ollama process, it will automatically restart again, I don't know how to just stop it. ``` pgrep ollama 1342356 kill -9 1342356 pgrep ollama 1342366 ```
Author
Owner

@rick-github commented on GitHub (Dec 5, 2025):

sudo systemctl stop ollama
<!-- gh-comment-id:3616976747 --> @rick-github commented on GitHub (Dec 5, 2025): ``` sudo systemctl stop ollama ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#8813