Commit c4d90584 authored by Rob Swindell's avatar Rob Swindell 💬
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
Pipeline #3585 passed with stage
in 6 minutes and 34 seconds
......@@ -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);
Supports Markdown
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