Skip to content

Instantly share code, notes, and snippets.

@greatbody
Created March 17, 2024 16:58
Show Gist options
  • Save greatbody/9c3316d2e1efc430a0affc0a7d120630 to your computer and use it in GitHub Desktop.
Save greatbody/9c3316d2e1efc430a0affc0a7d120630 to your computer and use it in GitHub Desktop.
ollama.conf
[Unit]
Description=Ollama Service
After=network-online.target
[Service]
ExecStart=/usr/local/bin/ollama serve
User=ollama
Group=ollama
Restart=always
RestartSec=3
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
Environment="OLLAMA_MODELS=/mnt/data"
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment