diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-18 04:58:01 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-19 04:08:07 +0200 |
commit | 5632e3743db350a67478acc107d76cdf648a1f99 (patch) | |
tree | e7efad268223470ca3053db650a2c7b3ad9c90c4 /src/manager.c | |
parent | b9975629f03a43d4c6b14fdb42eb8dd5a30af28f (diff) |
systemctl: introduce reset-maintenance command
Diffstat (limited to 'src/manager.c')
-rw-r--r-- | src/manager.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/manager.c b/src/manager.c index 7b2586fb0c..8a9b9dd44e 100644 --- a/src/manager.c +++ b/src/manager.c @@ -2466,6 +2466,16 @@ bool manager_is_booting_or_shutting_down(Manager *m) { return false; } +void manager_reset_maintenance(Manager *m) { + Unit *u; + Iterator i; + + assert(m); + + HASHMAP_FOREACH(u, m->units, i) + unit_reset_maintenance(u); +} + static const char* const manager_running_as_table[_MANAGER_RUNNING_AS_MAX] = { [MANAGER_SYSTEM] = "system", [MANAGER_SESSION] = "session" |