mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 09:17:20 +00:00
Notify systemd on sentinel startup (#7168)
Co-authored-by: Daniel Murnane <dmurnane@eitccorp.com>
(cherry picked from commit 9242ccf238
)
This commit is contained in:
parent
5b36681213
commit
29b20fd528
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user