Previously at startup we saw contradictory status
that had a "no active mgr" health message and then
a line that said "active: x".
Mitigate that a bit by indicating that a !available
active daemon is starting up.
Signed-off-by: John Spray <john.spray@redhat.com>
dump(f);
} else {
if (get_active_gid() != 0) {
- *ss << "active: " << get_active_name() << " ";
+ *ss << "active: " << get_active_name();
+ if (!available) {
+ // If the daemon hasn't gone active yet, indicate that.
+ *ss << "(starting)";
+ }
+ *ss << " ";
} else {
*ss << "no daemons active ";
}