diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-10 04:50:19 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-10 04:50:19 +0200 |
commit | 1e001f52d20a4685c9e8cf3cfa690021ca05c9e7 (patch) | |
tree | 670a0da12ff427c044128bf209f42e5ef9143f82 /src/unit.c | |
parent | 2e22afe909cd5fa003347aa91ad15f0516e5047f (diff) |
main: add a few more useful diagnostic log messages
Diffstat (limited to 'src/unit.c')
-rw-r--r-- | src/unit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unit.c b/src/unit.c index a5f8712ae6..c287310a48 100644 --- a/src/unit.c +++ b/src/unit.c @@ -970,6 +970,9 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns) { else if (UNIT_IS_ACTIVE_OR_RELOADING(os) && !UNIT_IS_ACTIVE_OR_RELOADING(ns)) u->meta.active_exit_timestamp = ts; + if (ns != os && ns == UNIT_MAINTENANCE) + log_notice("Unit %s entered maintenance state.", u->meta.id); + timer_unit_notify(u, ns); path_unit_notify(u, ns); |