summarylogtreecommitdiffstats
path: root/weaviate.service
diff options
context:
space:
mode:
authorJohn Trengrove2023-07-25 21:34:27 +1000
committerJohn Trengrove2023-07-25 21:53:53 +1000
commit11cce3d348c1058292d1f136cf506f5d66a68186 (patch)
tree2e039f40d72f989c0f7afb6fc90185d484f45201 /weaviate.service
downloadaur-weaviate-bin.tar.gz
initial package with weaviate 1.20.2, systemd unit, sysusers, and tmpfiles
Diffstat (limited to 'weaviate.service')
-rw-r--r--weaviate.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/weaviate.service b/weaviate.service
new file mode 100644
index 000000000000..3727986dd8d9
--- /dev/null
+++ b/weaviate.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Weaviate database server
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+User=weaviate
+Group=weaviate
+
+EnvironmentFile=-/etc/default/weaviate
+ExecStart=/usr/bin/weaviate --host 127.0.0.1 --port 8080 --scheme http
+LimitNOFILE=64000
+
+ProtectHome=true
+ProtectSystem=full
+NoNewPrivileges=true
+
+[Install]
+WantedBy=multi-user.target