Notify systemd on sentinel startup (#7168)

Co-authored-by: Daniel Murnane <dmurnane@eitccorp.com>
(cherry picked from commit c292d43fec492f555e6889b6f53b7f380f54bccc)
This commit is contained in:
dmurnane 2020-07-15 06:29:26 -04:00 committed by Oran Agra
parent 1e144396e0
commit 81d36bc6c8

View File

@ -5198,6 +5198,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. */