23 lines
444 B
Desktop File
23 lines
444 B
Desktop File
[Unit]
|
|
Description=Ollama Service
|
|
Wants=network-online.target
|
|
After=network.target network-online.target
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/ollama serve
|
|
WorkingDirectory=/var/lib/ollama
|
|
Environment="HOME=/var/lib/ollama"
|
|
Environment="OLLAMA_MODELS=/var/lib/ollama"
|
|
User=ollama
|
|
Group=ollama
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
RestartPreventExitStatus=1
|
|
Type=simple
|
|
PrivateTmp=yes
|
|
ProtectSystem=full
|
|
ProtectHome=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|