Commit 29b20fd5 authored by dmurnane's avatar dmurnane Committed by Oran Agra
Browse files

Notify systemd on sentinel startup (#7168)


Co-authored-by: default avatarDaniel Murnane <dmurnane@eitccorp.com>
(cherry picked from commit 9242ccf2)
parent 5b366812
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment