[GH-ISSUE #727] Stop Ollama in ubuntu linux #62373

Closed
opened 2026-05-03 08:30:34 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @morandalex on GitHub (Oct 7, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/727

hello guys , I am trying to stop ollama service followihg the guide here https://github.com/jmorganca/ollama/issues/690
but as follow seems not working :

pgrep ollama
>123
sudo kill 123

I tried finding the service in the ps list. As you can se is not working
image

As follow my machine
image

image

Originally created by @morandalex on GitHub (Oct 7, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/727 hello guys , I am trying to stop ollama service followihg the guide here https://github.com/jmorganca/ollama/issues/690 but as follow seems not working : ```bash pgrep ollama >123 sudo kill 123 ``` I tried finding the service in the ps list. As you can se is not working ![image](https://github.com/jmorganca/ollama/assets/9484568/a414abe3-9ca0-40d6-a5b1-9e3a28b4bc65) As follow my machine ![image](https://github.com/jmorganca/ollama/assets/9484568/9dff2a94-b8b4-4c10-acc3-2096ca614caf) ![image](https://github.com/jmorganca/ollama/assets/9484568/d617319c-d39f-4f4a-8bfa-6f569d0bc0ff)
Author
Owner

@K-e-d-i commented on GitHub (Oct 7, 2023):

It registers itself as a service on my machine, try systemctl stop ollama.service and to start it again you can systemctl start ollama.service.

You can see here at the bottom where it is added as a startup service.

@jmorganca stopping the server when the server exits and starting again when ollama serve is called would be nice, or you can mention this in the readme to avoid future issues like this.

<!-- gh-comment-id:1751741389 --> @K-e-d-i commented on GitHub (Oct 7, 2023): It registers itself as a service on my machine, try `systemctl stop ollama.service` and to start it again you can `systemctl start ollama.service`. You can see [here](https://github.com/jmorganca/ollama/blob/main/docs/linux.md) at the bottom where it is added as a startup service. @jmorganca stopping the server when the server exits and starting again when `ollama serve` is called would be nice, or you can mention this in the readme to avoid future issues like this.
Author
Owner

@morandalex commented on GitHub (Oct 12, 2023):

thanks

<!-- gh-comment-id:1759074406 --> @morandalex commented on GitHub (Oct 12, 2023): thanks
Author
Owner

@technovangelist commented on GitHub (Dec 4, 2023):

It looks like your question was answered so I will go ahead and close it now. If you think there is anything we left out, reopen and we can address. Thanks for being part of this great community.

<!-- gh-comment-id:1839341082 --> @technovangelist commented on GitHub (Dec 4, 2023): It looks like your question was answered so I will go ahead and close it now. If you think there is anything we left out, reopen and we can address. Thanks for being part of this great community.
Author
Owner

@Theblackcat98 commented on GitHub (Feb 7, 2024):

I know this is not the proper solution to kill the service, but killing the service as suggested above didn't work for me.
I ended up using sudo killall -s 9 ollama - only thing that worked for me.

<!-- gh-comment-id:1931291617 --> @Theblackcat98 commented on GitHub (Feb 7, 2024): I know this is not the proper solution to kill the service, but killing the service as suggested above didn't work for me. I ended up using `sudo killall -s 9 ollama` - only thing that worked for me.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#62373