The Ollama service keeps the local API running on Linux hosts where the desktop app is not responsible for startup. Service management is needed after environment changes, updates, and troubleshooting.
Systemd controls the packaged Linux service. Use it to start, stop, restart, enable, disable, and inspect the ollama unit, then verify the API endpoint separately.
A service state of active only proves the process is running. Run an API version check after service operations so client-facing status is also confirmed.
Related: How to start the Ollama server
Related: How to check Ollama server status
Related: How to view Ollama logs
$ systemctl is-active ollama active
$ sudo systemctl restart ollama
$ sudo systemctl enable ollama Created symlink /etc/systemd/system/multi-user.target.wants/ollama.service.
$ systemctl status ollama
● ollama.service - Ollama Service
Active: active (running)
##### snipped #####
$ curl -s http://localhost:11434/api/version {"version":"0.31.1"}
$ sudo systemctl stop ollama