summaryrefslogtreecommitdiff
path: root/community/redis/redis.service
diff options
context:
space:
mode:
Diffstat (limited to 'community/redis/redis.service')
-rw-r--r--community/redis/redis.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/redis/redis.service b/community/redis/redis.service
new file mode 100644
index 000000000..7596b4bda
--- /dev/null
+++ b/community/redis/redis.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Advanced key-value store
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/redis.pid
+ExecStartPre=/bin/mkdir -p /var/lib/redis
+ExecStart=/usr/bin/redis-server /etc/redis.conf
+ExecStop=/usr/bin/redis-cli shutdown
+Restart=always
+
+[Install]
+WantedBy=multi-user.target