anti-dog-piling and ntpd leap files

RW rwmaillists at googlemail.com
Thu May 25 13:52:00 UTC 2017


On Tue, 23 May 2017 17:08:00 -0600
Alan Somers wrote:


> Like I said, the sleeps are only useful when periodic is run at a
> predictable time, which is not the case when you run anacron at boot.
> It would be reasonable to disable sleeping in that case, just like
> when running from the terminal.  Can you suggest how?

I'd use uptime (probably using sysctl kern.boottime). Either skip the delay if uptime < 1hour or alternately limit
the delay to uptime/20.


More information about the freebsd-hackers mailing list