Notify systemd on sentinel startup (#7168)
Co-authored-by: Daniel Murnane <dmurnane@eitccorp.com>
This commit is contained in:
parent
c2b5f1c15b
commit
9242ccf238
@ -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. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user