From 5d2f325f83090ee4fc413f13ad3eec38ae73d430 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 25 Apr 2007 02:43:23 +0000 Subject: r22508: at option for the startup delay metze (This used to be commit 09da9f6490bf57d231a2ace4697adc8c6cd5f912) --- source4/dsdb/repl/drepl_service.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/dsdb/repl/drepl_service.c b/source4/dsdb/repl/drepl_service.c index 17690d135d..f18edeff36 100644 --- a/source4/dsdb/repl/drepl_service.c +++ b/source4/dsdb/repl/drepl_service.c @@ -116,6 +116,7 @@ static void dreplsrv_task_init(struct task_server *task) { WERROR status; struct dreplsrv_service *service; + uint32_t periodic_startup_interval; switch (lp_server_role()) { case ROLE_STANDALONE: @@ -164,9 +165,10 @@ static void dreplsrv_task_init(struct task_server *task) return; } + periodic_startup_interval = lp_parm_int(-1, "dreplsrv", "periodic_startup_interval", 15); /* in seconds */ service->periodic.interval = lp_parm_int(-1, "dreplsrv", "periodic_interval", 300); /* in seconds */ - status = dreplsrv_periodic_schedule(service, service->periodic.interval); + status = dreplsrv_periodic_schedule(service, periodic_startup_interval); if (!W_ERROR_IS_OK(status)) { task_server_terminate(task, talloc_asprintf(task, "dreplsrv: Failed to periodic schedule: %s\n", -- cgit