summaryrefslogtreecommitdiff
path: root/ollama.service
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-10-25 06:04:29 +0000
committerCoprDistGit <infra@openeuler.org>2024-10-25 06:04:29 +0000
commitc7e21177ee22cd78eb89455c0a7d4cde555839e7 (patch)
tree7eefd16d7614a04ceb64f8b5238c998ffd53216f /ollama.service
parenteab15d31437933161490c99278ad84811b7108ac (diff)
automatic import of ollamaopeneuler24.03_LTS
Diffstat (limited to 'ollama.service')
-rw-r--r--ollama.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/ollama.service b/ollama.service
new file mode 100644
index 0000000..ecbf34f
--- /dev/null
+++ b/ollama.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Ollama Service
+After=network-online.target
+Wants=ollama-ui.service
+
+[Service]
+ExecStart=/usr/bin/ollama serve
+User=ollama
+Group=ollama
+Restart=always
+RestartSec=3
+
+[Install]
+WantedBy=default.target