From d325ef27a7d482a57a1ce3d8c85e2c91be398c9a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 29 Mar 2011 23:32:10 +0200 Subject: [PATCH] unit: don't complain about failed units when deserializing --- src/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unit.c b/src/unit.c index 68eba69c..40aae752 100644 --- a/src/unit.c +++ b/src/unit.c @@ -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); } -- 2.39.5