summaryrefslogtreecommitdiff
path: root/src/core/service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-07-04 00:23:42 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-04 00:23:42 +0200
commit451b34cc1d74960ee0262eef970a6346ec814f31 (patch)
tree8781bb56a2846f6d870e002593d3ccecb787bcd5 /src/core/service.c
parent6ffd3337867076067955ec4d5d1a0cde521d9b86 (diff)
service: flush the start counter in "systemctl reset-failed"
Diffstat (limited to 'src/core/service.c')
-rw-r--r--src/core/service.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/service.c b/src/core/service.c
index d82803db2b..0c29d4aefa 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -3655,6 +3655,8 @@ static void service_reset_failed(Unit *u) {
s->result = SERVICE_SUCCESS;
s->reload_result = SERVICE_SUCCESS;
+
+ RATELIMIT_RESET(s->start_limit);
}
static int service_kill(Unit *u, KillWho who, KillMode mode, int signo, DBusError *error) {