mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
core: tweak manager_journal_is_running() a bit more
Let's also use the journal if it is currently reloading. In that state it should also be able to process our requests. Moreover, we might otherwise end up disconnecting/reconnecting from the journal without really any need to hence, relax the check accordingly.
This commit is contained in:
parent
7d814a197a
commit
217677abb0
@ -3587,7 +3587,7 @@ static bool manager_journal_is_running(Manager *m) {
|
||||
u = manager_get_unit(m, SPECIAL_JOURNALD_SERVICE);
|
||||
if (!u)
|
||||
return false;
|
||||
if (SERVICE(u)->state != SERVICE_RUNNING)
|
||||
if (!IN_SET(SERVICE(u)->state, SERVICE_RELOAD, SERVICE_RUNNING))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user