If kpropd is asked to run just once, don't exit after starting a full
resync; we want to wait for the fullprop child to process the request,
and then request incremental updates afterwards. Also don't exit from
do_standalone() in the fullprop child, in case multiple full resyncs
are required to get the database up to date.
Document the -t flag in kpropd.rst.
ticket: 8161
[**-p** *kdb5_util_prog*]
[**-P** *port*]
[**-d**]
+[**-t**]
DESCRIPTION
-----------
it will run in the foreground and print out debugging messages
during the database propagation.
+**-t**
+ In standalone mode without incremental propagation, exit after one
+ dump file is received. In incremental propagation mode, exit as
+ soon as the database is up to date, or if the master returns an
+ error.
+
**-P**
Allow for an alternate port number for kpropd to listen on. This
is only useful in combination with the **-S** option.
* process that it should poll for incremental updates. */
if (fullprop_child == 0)
kill(getppid(), SIGUSR1);
- if (runonce)
+ else if (runonce)
exit(0);
}
}
break;
}
- if (runonce == 1)
+ if (runonce == 1 && incr_ret->ret != UPDATE_FULL_RESYNC_NEEDED)
goto done;
/*