aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/redis/redis/redis.service
diff options
context:
space:
mode:
authorFrank Meerkoetter <meerkoetter@googlemail.com>2016-12-01 19:45:23 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2016-12-09 12:02:12 +0100
commit142faee1734300a041fe16265cb63cd17fb742ae (patch)
tree73c993f801c01a4fe7fb9d2edfa45e10da10a522 /meta-oe/recipes-extended/redis/redis/redis.service
parent5f85256b46ba2d89bf27f9d3edd607c4b59cf389 (diff)
downloadmeta-openembedded-contrib-142faee1734300a041fe16265cb63cd17fb742ae.tar.gz
redis: add a systemd service file
The redis.conf is changed on the fly to not daemonize redis. The reason for that is that with this appraoch we don't need special permissions to write to /var/run/. Signed-off-by: Frank Meerkoetter <frank@meerkoetter.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/redis/redis/redis.service')
-rw-r--r--meta-oe/recipes-extended/redis/redis/redis.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/redis/redis/redis.service b/meta-oe/recipes-extended/redis/redis/redis.service
new file mode 100644
index 0000000000..e2dc6a7156
--- /dev/null
+++ b/meta-oe/recipes-extended/redis/redis/redis.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Redis In-Memory Data Store
+After=network.target
+
+[Service]
+User=root
+Group=root
+ExecStart=/usr/bin/redis-server /etc/redis/redis.conf
+ExecStop=/usr/bin/redis-cli shutdown
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
+