Skip to content
Snippets Groups Projects
Commit c4d90584 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Only report systemd service "READY=1" state if any server is actually ready

any server "running" is not enough because the server could still be
initializing, re-initializing, or even shutting down.
parent f05551d2
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3585 passed
......@@ -239,7 +239,7 @@ static void notify_systemd(const char* new_status)
ready = "RELOADING=1";
else if(any_server_with_state(SERVER_STOPPING))
ready = "STOPPING=1";
else if(any_server_running())
else if(any_server_with_state(SERVER_READY))
ready = "READY=1";
sd_notifyf(/* unset_environment: */0, "%s\nSTATUS=%s", ready, status);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment