[GH-ISSUE #1491] feat: abstract cross platform server start/stop concerns #62840

Open
opened 2026-05-03 10:27:52 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @airtonix on GitHub (Dec 12, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1491

Regarding the non obvious aspect of it daemonising:

Problems arising from it not being obvious that systemd was involved:

Problems arising from lack of server control:

It looks like some of these have been closed as directing users to handle it via systemd.

systemctl stop ollama.service

Should this not be made obvious by an abstraction?

ollama server start --system

# linux: prompts for sudo to create system.d unit if it doesn't exist and start it
# mac: something something something steve jobs?

ollama server stop --system

# again, sudo required.
ollama server start

# no sudo required

# user presses: ctrl + d

# server stops.

Originally posted by @airtonix in https://github.com/jmorganca/ollama/issues/690#issuecomment-1852844736

Originally created by @airtonix on GitHub (Dec 12, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1491 Regarding the non obvious aspect of it daemonising: Problems arising from it not being obvious that systemd was involved: - https://github.com/jmorganca/ollama/issues/1152 - https://github.com/jmorganca/ollama/issues/1084 - https://github.com/jmorganca/ollama/issues/1391#issuecomment-1842125520 - https://github.com/jmorganca/ollama/issues/1018 - https://github.com/jmorganca/ollama/issues/727 - https://github.com/jmorganca/ollama/issues/707 Problems arising from lack of server control: - https://github.com/jmorganca/ollama/issues/300 - https://github.com/jmorganca/ollama/issues/793 - https://github.com/jmorganca/ollama/issues/546 It looks like some of these have been closed as directing users to handle it via systemd. ``` systemctl stop ollama.service ``` Should this not be made obvious by an abstraction? ``` ollama server start --system # linux: prompts for sudo to create system.d unit if it doesn't exist and start it # mac: something something something steve jobs? ollama server stop --system # again, sudo required. ``` ``` ollama server start # no sudo required # user presses: ctrl + d # server stops. ``` _Originally posted by @airtonix in https://github.com/jmorganca/ollama/issues/690#issuecomment-1852844736_
GiteaMirror added the feature request label 2026-05-03 10:27:52 -05:00
Author
Owner

@airtonix commented on GitHub (Dec 12, 2023):

Perhaps all this could be easier if these lines were optional?

6459377ae0/scripts/install.sh (L130-L132)

ask the user during install?

<!-- gh-comment-id:1852882931 --> @airtonix commented on GitHub (Dec 12, 2023): Perhaps all this could be easier if these lines were optional? https://github.com/ollama/ollama/blob/6459377ae081021a0ec2b5b408c6ac4503de01b2/scripts/install.sh#L130-L132 ask the user during install?
Author
Owner

@maxtheaxe commented on GitHub (Apr 12, 2024):

second this

<!-- gh-comment-id:2051511958 --> @maxtheaxe commented on GitHub (Apr 12, 2024): second this
Author
Owner

@Lee-Array commented on GitHub (Jul 23, 2024):

sudo systemctl stop ollama.service

<!-- gh-comment-id:2244133858 --> @Lee-Array commented on GitHub (Jul 23, 2024): sudo systemctl stop ollama.service
Author
Owner

@shayneoneill commented on GitHub (Jan 28, 2025):

Can I please request a feature to just do something like ollama server stop or whatever? Having to uninstall ollama to stop it respawning on a mac is incredibly onerous.

<!-- gh-comment-id:2619546372 --> @shayneoneill commented on GitHub (Jan 28, 2025): Can I please request a feature to just do something like ollama server stop or whatever? Having to uninstall ollama to stop it respawning on a mac is incredibly onerous.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#62840