Unverified Commit 9242ccf2 authored by dmurnane's avatar dmurnane Committed by GitHub
Browse files

Notify systemd on sentinel startup (#7168)


Co-authored-by: default avatarDaniel Murnane <dmurnane@eitccorp.com>
parent c2b5f1c1
...@@ -5198,6 +5198,10 @@ int main(int argc, char **argv) { ...@@ -5198,6 +5198,10 @@ int main(int argc, char **argv) {
} else { } else {
InitServerLast(); InitServerLast();
sentinelIsRunning(); 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. */ /* 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