Skip to content

Commit

Permalink
MONITOR: increase 'services_startup_timeout'
Browse files Browse the repository at this point in the history
so that it is aligned with MONITOR_MAX_SVC_RESTARTS & MONITOR_MAX_RESTART_DELAY
  • Loading branch information
alexey-tikhonov committed May 9, 2024
1 parent 7f48c7c commit a688abd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/monitor/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a688abd

Please sign in to comment.