summaryrefslogtreecommitdiffstats
path: root/redis-sentinel.service
diff options
context:
space:
mode:
Diffstat (limited to 'redis-sentinel.service')
-rw-r--r--redis-sentinel.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/redis-sentinel.service b/redis-sentinel.service
new file mode 100644
index 0000000..ff3a117
--- /dev/null
+++ b/redis-sentinel.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Redis Sentinel
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/redis-sentinel /etc/redis-sentinel.conf --daemonize no
+ExecStop=/usr/bin/redis-shutdown sentinel
+User=redis
+Group=redis
+
+[Install]
+WantedBy=multi-user.target
+