summaryrefslogtreecommitdiff
path: root/ollama-ui.service
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-20 07:42:04 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-20 07:42:04 +0000
commit6b2b251b622a27311cdf2e2b3eccc8f8e6543357 (patch)
tree4bf6f2e0000c7f7066318913b334478030e01f16 /ollama-ui.service
parent8f63606371f06afa714e60b331adb3c013a9f8c6 (diff)
automatic import of ollama
Diffstat (limited to 'ollama-ui.service')
-rw-r--r--ollama-ui.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/ollama-ui.service b/ollama-ui.service
new file mode 100644
index 0000000..a0c692b
--- /dev/null
+++ b/ollama-ui.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Ollama UI Service
+After=network-online.target
+PartOf=ollama.service
+
+[Service]
+ExecStart=/usr/bin/python3 -m http.server --bind 127.0.0.1 8000 -d /usr/share/ollama/ollama-ui
+User=ollama
+Group=ollama
+Restart=always
+RestartSec=3
+
+[Install]
+WantedBy=default.target