summarylogtreecommitdiffstats
path: root/dgraph-zero.service
diff options
context:
space:
mode:
Diffstat (limited to 'dgraph-zero.service')
-rw-r--r--dgraph-zero.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/dgraph-zero.service b/dgraph-zero.service
new file mode 100644
index 000000000000..319ffad67139
--- /dev/null
+++ b/dgraph-zero.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Dgraph database controller
+
+[Service]
+ExecStart=/usr/bin/dgraph zero -w /var/lib/dgraph/data/zw
+Restart=on-failure
+RestartSec=1
+
+[Install]
+WantedBy=multi-user.target
+