summaryrefslogtreecommitdiff
path: root/ollama.service
diff options
context:
space:
mode:
Diffstat (limited to 'ollama.service')
-rw-r--r--ollama.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/ollama.service b/ollama.service
new file mode 100644
index 0000000..5ddc9b1
--- /dev/null
+++ b/ollama.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Ollama Service
+After=network-online.target
+
+[Service]
+ExecStart=/usr/bin/ollama serve
+User=ollama
+Group=ollama
+Restart=always
+RestartSec=3
+
+[Install]
+WantedBy=default.target