Bug 236956

Summary: [ntp] [patch] Optionally run ntpdate at host resume time
Product: Base System Reporter: Bertrand Petit <bsdpr>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me CC: bsdpr, emaste
Priority: --- Keywords: patch
Version: 11.2-STABLE   
Hardware: Any   
OS: Any   
Bug Depends on: 236958    
Bug Blocks:    
Attachments:
Description Flags
Patch allowing to optionally run ntpdate at host resume time none

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.