Bug 236956 - [ntp] [patch] Optionally run ntpdate at host resume time
Summary: [ntp] [patch] Optionally run ntpdate at host resume time
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 11.2-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords: patch
Depends on: 236958
Blocks:
  Show dependency treegraph
 
Reported: 2019-04-02 11:03 UTC by Bertrand Petit
Modified: 2019-04-22 21:34 UTC (History)
2 users (show)

See Also:


Attachments
Patch allowing to optionally run ntpdate at host resume time (2.97 KB, patch)
2019-04-02 11:03 UTC, Bertrand Petit
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Petit 2019-04-02 11:03:32 UTC
Created attachment 203314 [details]
Patch allowing to optionally run ntpdate at host resume time

When sleeping a host's hardware clock may wildly be drifing out of sync with UTC, ntp will correct that but it could take a few hours before the system time is again in synchronized. The proposed patch address this issue by optionally running ntpdate at resume time. While working on this I took the liberty to document the configuration variables used by the ntpdate rc script.
Comment 1 Bertrand Petit 2019-04-02 11:05:53 UTC
I forgot the disclose that I made this patch against 11-STABLE revision 345570.
Comment 2 Bertrand Petit 2019-04-02 11:41:48 UTC
Running ntpdate without no functional network interface is useless. Waiting for network availability is therefore important. I added a dependency on a patch that permit netwait to run at resume time.