From d0ecd1252c3703bcdcae4453f648c935b62ed957 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 28 May 2020 12:10:23 +0200 Subject: add comment for TimeoutStartSec and TimeoutStopSec in limit.conf fix missing notification to systemd for sentinel patch from https://github.com/antirez/redis/pull/7168 --- 0003-Notify-systemd-on-sentinel-startup.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 0003-Notify-systemd-on-sentinel-startup.patch (limited to '0003-Notify-systemd-on-sentinel-startup.patch') diff --git a/0003-Notify-systemd-on-sentinel-startup.patch b/0003-Notify-systemd-on-sentinel-startup.patch new file mode 100644 index 0000000..ee58b56 --- /dev/null +++ b/0003-Notify-systemd-on-sentinel-startup.patch @@ -0,0 +1,24 @@ +From 16dbe5168224b9f8a2b193f014f3dbf7e9604516 Mon Sep 17 00:00:00 2001 +From: Daniel Murnane +Date: Fri, 1 May 2020 08:19:28 -0400 +Subject: [PATCH] Notify systemd on sentinel startup + +--- + src/server.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/server.c b/src/server.c +index 659604ef363..7ab7c39fd0a 100644 +--- a/src/server.c ++++ b/src/server.c +@@ -5111,6 +5111,10 @@ int main(int argc, char **argv) { + } else { + InitServerLast(); + sentinelIsRunning(); ++ if (server.supervised_mode == SUPERVISED_SYSTEMD) { ++ redisCommunicateSystemd("STATUS=Ready to accept connections\n"); ++ redisCommunicateSystemd("READY=1\n"); ++ } + } + + /* Warning the user about suspicious maxmemory setting. */ -- cgit