diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2013-11-08 16:01:22 +0100 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2013-11-08 17:00:01 +0100 |
commit | 3f41e1e5955552a771748225334b3e8a7eb02b8a (patch) | |
tree | c855ed7a54f576cd83b3eef3a9cfcacd20ab080d /src/core/service.c | |
parent | 1290d0fc5f7ffb433e403068c6c60394033e9ba8 (diff) |
manager: configurable StartLimit default values
https://bugzilla.redhat.com/show_bug.cgi?id=821723
Diffstat (limited to 'src/core/service.c')
-rw-r--r-- | src/core/service.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/service.c b/src/core/service.c index d11de79a50..3da32a1621 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -143,7 +143,9 @@ static void service_init(Unit *u) { kill_context_init(&s->kill_context); cgroup_context_init(&s->cgroup_context); - RATELIMIT_INIT(s->start_limit, 10*USEC_PER_SEC, 5); + RATELIMIT_INIT(s->start_limit, + u->manager->default_start_limit_interval, + u->manager->default_start_limit_burst); s->control_command_id = _SERVICE_EXEC_COMMAND_INVALID; } |