From a688abd8fcfb35f8dd6f256036aab3e46203d257 Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov Date: Thu, 9 May 2024 18:58:51 +0200 Subject: [PATCH] MONITOR: increase 'services_startup_timeout' so that it is aligned with MONITOR_MAX_SVC_RESTARTS & MONITOR_MAX_RESTART_DELAY --- src/monitor/monitor.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index d7fa74978b7..3b362876a3a 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -533,8 +533,10 @@ static int add_services_startup_timeout(struct mt_ctx *ctx) struct tevent_timer *to; struct timeval tv; - /* 5 seconds should be plenty */ - tv = tevent_timeval_current_ofs(5, 0); + /* 7 seconds should be enough to accommodate for + * MONITOR_MAX_SVC_RESTARTS & MONITOR_MAX_RESTART_DELAY + */ + tv = tevent_timeval_current_ofs(7, 0); to = tevent_add_timer(ctx->ev, ctx, tv, services_startup_timeout, ctx); if (!to) { DEBUG(SSSDBG_FATAL_FAILURE,"Out of memory?!\n");