svn commit: samba r22508 - in branches/SAMBA_4_0/source/dsdb/repl: . Author: metze
Date: 2007-04-25 02:43:23 +0000 (Wed, 25 Apr 2007)
New Revision: 22508

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22508

Log:
at option for the startup delay

metze
Modified:
   branches/SAMBA_4_0/source/dsdb/repl/drepl_service.c


Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/repl/drepl_service.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/repl/drepl_service.c	2007-04-24 18:19:13 UTC (rev 22507)
+++ branches/SAMBA_4_0/source/dsdb/repl/drepl_service.c	2007-04-25 02:43:23 UTC (rev 22508)
@@ -116,6 +116,7 @@
 {
 	WERROR status;
 	struct dreplsrv_service *service;
+	uint32_t periodic_startup_interval;
 
 	switch (lp_server_role()) {
 	case ROLE_STANDALONE:
@@ -164,9 +165,10 @@
 		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",

