summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--redis-sentinel.service3
-rw-r--r--redis.service3
-rw-r--r--redis.spec5
3 files changed, 8 insertions, 3 deletions
diff --git a/redis-sentinel.service b/redis-sentinel.service
index 0c87ff7..4af71f8 100644
--- a/redis-sentinel.service
+++ b/redis-sentinel.service
@@ -3,7 +3,8 @@ Description=Redis Sentinel
After=network.target
[Service]
-ExecStart=/usr/bin/redis-sentinel /etc/redis-sentinel.conf --daemonize no
+Type=notify
+ExecStart=/usr/bin/redis-sentinel /etc/redis-sentinel.conf --daemonize no --supervised systemd
ExecStop=/usr/libexec/redis-shutdown redis-sentinel
User=redis
Group=redis
diff --git a/redis.service b/redis.service
index 6c19f81..ccb776e 100644
--- a/redis.service
+++ b/redis.service
@@ -3,7 +3,8 @@ Description=Redis persistent key-value database
After=network.target
[Service]
-ExecStart=/usr/bin/redis-server /etc/redis.conf --daemonize no
+Type=notify
+ExecStart=/usr/bin/redis-server /etc/redis.conf --daemonize no --supervised systemd
ExecStop=/usr/libexec/redis-shutdown
User=redis
Group=redis
diff --git a/redis.spec b/redis.spec
index 29f55b0..1d212c6 100644
--- a/redis.spec
+++ b/redis.spec
@@ -34,7 +34,7 @@
Name: redis
Version: 4.0.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A persistent key-value database
Group: Applications/Databases
@@ -303,6 +303,9 @@ fi
%changelog
+* Tue Sep 5 2017 Remi Collet <remi@remirepo.net> - 4.0.1-3
+- switch systemd unit to Type=notify, see rhbz #1172841
+
* Fri Aug 18 2017 Remi Collet <remi@remirepo.net> - 4.0.1-2
- Add redis-trib based on patch from Sebastian Saletnik. (RHBZ #1215654)