Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 May 2017 14:51:53 +0100
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: anti-dog-piling and ntpd leap files
Message-ID:  <20170525145153.79d1d03d@gumby.homeunix.com>
In-Reply-To: <CAOtMX2g=YuSUYTXWvuuKR1KJ8eDhQsHVQ12juC7ckfRUCRb7zQ@mail.gmail.com>
References:  <D8A7B030-8D3D-4C16-8DB0-73C0A305FE78@webweaving.org> <20170522125307.76c9de6d@gumby.homeunix.com> <1104C7A7-5893-4602-9E34-5C212D987DAE@webweaving.org> <CAOtMX2guiGNaoWd6cqCJiWEE8SLUp1%2B2q87LJ7otM5VfmmSXtA@mail.gmail.com> <20170522143102.70035d8d@gumby.homeunix.com> <CAOtMX2j-Do-hvOE5-oVXb2ygA=%2BzvT2zyrVgAbKD6jwP_VHFAQ@mail.gmail.com> <20170523233057.59cd2393@gumby.homeunix.com> <CAOtMX2g=YuSUYTXWvuuKR1KJ8eDhQsHVQ12juC7ckfRUCRb7zQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170525145153.79d1d03d>