Bug 217055 - Consolidate random sleeps in periodic scripts
Dag-Erling Smørgrav
des at des.no
Tue Feb 14 11:24:08 UTC 2017
Cy Schubert <Cy.Schubert at komquats.com> writes:
> + tty >/dev/null 2>&1 && daily_ntpd_avoid_congestion=NO
This won't work, because && forks. You need:
if [ -t 0 ] ; then ... ; fi
As for the subject matter, I think it's a good idea, and if periodic
always sleeps for a random amount of time, there is no need for an
additional sleep in 480.leapfile-ntpd (and frankly, I don't like that
the current version leaves a task running in the background).
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-pkg
mailing list