summaryrefslogtreecommitdiff
path: root/src/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-03 01:45:35 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-03 01:45:53 +0200
commit5ed9f5d65e7a7636936f9265093ba44b48e562c9 (patch)
tree31b84865fc28643b875850012d69b7b9ef8d5cd9 /src/unit.c
parent53c6a358a8bb9e722ac6b8ba750acf576a61bf27 (diff)
unit: don't retroactively start units if we failed to shutdown a unit
Diffstat (limited to 'src/unit.c')
-rw-r--r--src/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unit.c b/src/unit.c
index d5ed5e1421..001d7659c4 100644
--- a/src/unit.c
+++ b/src/unit.c
@@ -1084,7 +1084,7 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns) {
* something is already activated. */
if (unexpected && u->meta.manager->n_deserializing <= 0) {
- if (UNIT_IS_INACTIVE_OR_DEACTIVATING(os) && UNIT_IS_ACTIVE_OR_ACTIVATING(ns))
+ if (UNIT_IS_INACTIVE_OR_FAILED(os) && UNIT_IS_ACTIVE_OR_ACTIVATING(ns))
retroactively_start_dependencies(u);
else if (UNIT_IS_ACTIVE_OR_ACTIVATING(os) && UNIT_IS_INACTIVE_OR_DEACTIVATING(ns))
retroactively_stop_dependencies(u);