summaryrefslogtreecommitdiff
path: root/ollama.service
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-07-23 13:15:12 +0000
committerCoprDistGit <infra@openeuler.org>2024-07-23 13:15:12 +0000
commit8a107d4d2804f59a49d994f9b8095184736a7c7c (patch)
treede5770e899e27915bd8ed92c8ae894a18c713fcb /ollama.service
parentb90f6a086168dd4ca2229c71a43bf9f4500cac9e (diff)
automatic import of ollama
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