1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 01:27:11 +03:00

unit: don't complain about failed units when deserializing

This commit is contained in:
Lennart Poettering 2011-03-29 23:32:10 +02:00
parent cd25cce98f
commit d325ef27a7

View File

@ -1211,7 +1211,7 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns, bool reload_su
retroactively_stop_dependencies(u);
}
if (ns != os && ns == UNIT_FAILED) {
if (ns != os && ns == UNIT_FAILED && u->meta.manager->n_deserializing <= 0) {
log_notice("Unit %s entered failed state.", u->meta.id);
unit_trigger_on_failure(u);
}