summarylogtreecommitdiffstats
path: root/restheart.service
diff options
context:
space:
mode:
authorRadek Podgorny2018-03-30 02:13:36 +0200
committerRadek Podgorny2018-03-30 02:13:36 +0200
commit5360ae12b0b2a1a569c579bc2e15686886d5f558 (patch)
tree261ba581e0f63c7c326f99443f906e782846fa34 /restheart.service
downloadaur-restheart.tar.gz
initial commit
Diffstat (limited to 'restheart.service')
-rw-r--r--restheart.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/restheart.service b/restheart.service
new file mode 100644
index 000000000000..7d234c480feb
--- /dev/null
+++ b/restheart.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=The Web API for MongoDB
+After=network.target
+
+[Service]
+User=restheart
+EnvironmentFile=/etc/conf.d/restheart
+ExecStart=/bin/sh -c 'eval $RESTHEART_COMMAND_LINE'
+
+[Install]
+WantedBy=multi-user.target
+