mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 20:35:06 -05:00
main: dump history by default
Always write the measurement history on exit when the dump directory is specified and silently ignore the dumponexit directive. There doesn't seem to be a good use case for dumpdir and -r without dumponexit as the history would be invalidated by adjustments of the clock that happened between the dump command and chronyd exit.
This commit is contained in:
11
conf.c
11
conf.c
@@ -104,7 +104,6 @@ static int do_log_tracking = 0;
|
||||
static int do_log_rtc = 0;
|
||||
static int do_log_refclocks = 0;
|
||||
static int do_log_tempcomp = 0;
|
||||
static int do_dump_on_exit = 0;
|
||||
static int log_banner = 32;
|
||||
static char *logdir;
|
||||
static char *dumpdir;
|
||||
@@ -469,7 +468,7 @@ CNF_ParseLine(const char *filename, int number, char *line)
|
||||
} else if (!strcasecmp(command, "dumpdir")) {
|
||||
parse_string(p, &dumpdir);
|
||||
} else if (!strcasecmp(command, "dumponexit")) {
|
||||
do_dump_on_exit = parse_null(p);
|
||||
/* Silently ignored */
|
||||
} else if (!strcasecmp(command, "fallbackdrift")) {
|
||||
parse_fallbackdrift(p);
|
||||
} else if (!strcasecmp(command, "hwclockfile")) {
|
||||
@@ -1552,14 +1551,6 @@ CNF_GetRtcDevice(void)
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
int
|
||||
CNF_GetDumpOnExit(void)
|
||||
{
|
||||
return do_dump_on_exit;
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
double
|
||||
CNF_GetMaxUpdateSkew(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user