diff options
author | Oleksii Shevchuk <alxchk@gmail.com> | 2013-11-04 18:47:43 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-11-05 19:57:22 +0100 |
commit | 1f19a534ea84458670ec011f6d1ba96f76e3f783 (patch) | |
tree | 6edc40c4d9dc99f412e477d9e1af466e45cc5d93 /src/core/service.c | |
parent | 7b05894275bc1158d752098581295377f13e7c60 (diff) |
Configurable Timeouts/Restarts default values
https://bugs.freedesktop.org/show_bug.cgi?id=71132
Patch adds DefaultTimeoutStartSec, DefaultTimeoutStopSec, DefaultRestartSec
configuration options to manager configuration file.
Diffstat (limited to 'src/core/service.c')
-rw-r--r-- | src/core/service.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/service.c b/src/core/service.c index ce75757021..d11de79a50 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -124,9 +124,9 @@ static void service_init(Unit *u) { assert(u); assert(u->load_state == UNIT_STUB); - s->timeout_start_usec = DEFAULT_TIMEOUT_USEC; - s->timeout_stop_usec = DEFAULT_TIMEOUT_USEC; - s->restart_usec = DEFAULT_RESTART_USEC; + s->timeout_start_usec = u->manager->default_timeout_start_usec; + s->timeout_stop_usec = u->manager->default_timeout_stop_usec; + s->restart_usec = u->manager->default_restart_usec; s->type = _SERVICE_TYPE_INVALID; watch_init(&s->watchdog_watch); |