summarylogtreecommitdiffstats
path: root/dgraph.service
diff options
context:
space:
mode:
Diffstat (limited to 'dgraph.service')
-rw-r--r--dgraph.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/dgraph.service b/dgraph.service
new file mode 100644
index 000000000000..8f91a80ae3fd
--- /dev/null
+++ b/dgraph.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Dgraph database
+Requires=dgraph-zero.service
+After=dgraph-zero.service
+
+[Service]
+ExecStart=/usr/bin/dgraph alpha --lru_mb 2048 -w /var/lib/dgraph/data/w -p /var/lib/dgraph/data/p --zero localhost:5080
+Restart=on-failure
+RestartSec=1
+
+[Install]
+WantedBy=multi-user.target
+