summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/scope.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/scope.c b/src/core/scope.c
index f88addadf3..e1a3545dbb 100644
--- a/src/core/scope.c
+++ b/src/core/scope.c
@@ -283,6 +283,17 @@ static int scope_stop(Unit *u) {
return 0;
}
+static void scope_reset_failed(Unit *u) {
+ Scope *s = SCOPE(u);
+
+ assert(s);
+
+ if (s->state == SCOPE_FAILED)
+ scope_set_state(s, SCOPE_DEAD);
+
+ s->result = SCOPE_SUCCESS;
+}
+
static int scope_kill(Unit *u, KillWho who, int signo, DBusError *error) {
return unit_kill_common(u, who, signo, -1, -1, error);
}
@@ -455,6 +466,8 @@ const UnitVTable scope_vtable = {
.timer_event = scope_timer_event,
+ .reset_failed = scope_reset_failed,
+
.notify_cgroup_empty = scope_notify_cgroup_empty_event,
.bus_interface = "org.freedesktop.systemd1.Scope",