summaryrefslogtreecommitdiff
path: root/community/rethinkdb/rethinkdb.service
diff options
context:
space:
mode:
Diffstat (limited to 'community/rethinkdb/rethinkdb.service')
-rw-r--r--community/rethinkdb/rethinkdb.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/rethinkdb/rethinkdb.service b/community/rethinkdb/rethinkdb.service
new file mode 100644
index 000000000..9c9bbedd4
--- /dev/null
+++ b/community/rethinkdb/rethinkdb.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=RethinkDB database server for instance '%i'
+
+[Service]
+User=rethinkdb
+Group=rethinkdb
+ExecStart=/usr/bin/rethinkdb serve --config-file /etc/rethinkdb/instances.d/%i.conf
+KillMode=process
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target