Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9242ccf2
Unverified
Commit
9242ccf2
authored
Jul 15, 2020
by
dmurnane
Committed by
GitHub
Jul 15, 2020
Browse files
Notify systemd on sentinel startup (#7168)
Co-authored-by:
Daniel Murnane
<
dmurnane@eitccorp.com
>
parent
c2b5f1c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
9242ccf2
...
@@ -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. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment