diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-04-25 02:43:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:51:35 -0500 |
commit | 5d2f325f83090ee4fc413f13ad3eec38ae73d430 (patch) | |
tree | da55fc52353b7149aaf2bd926019e9e050908543 /source4 | |
parent | 1db793be751214092973f1b34e2555056399a44d (diff) | |
download | samba-5d2f325f83090ee4fc413f13ad3eec38ae73d430.tar.gz samba-5d2f325f83090ee4fc413f13ad3eec38ae73d430.tar.bz2 samba-5d2f325f83090ee4fc413f13ad3eec38ae73d430.zip |
r22508: at option for the startup delay
metze
(This used to be commit 09da9f6490bf57d231a2ace4697adc8c6cd5f912)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/repl/drepl_service.c | 4 |
1 files changed, 3 insertions, 1 deletions
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", |