Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Feb 2017 12:22:55 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Cy Schubert <Cy.Schubert@komquats.com>
Cc:        Alan Somers <asomers@freebsd.org>, scrappy@freebsd.org, Brian Somers <brian@freebsd.org>, freebsd-bugzilla@ayaken.net, Cy Schubert <cy@freebsd.org>, pkg@freebsd.org
Subject:   Re: Bug 217055 - Consolidate random sleeps in periodic scripts
Message-ID:  <868tp9j9tc.fsf@desk.des.no>
In-Reply-To: <201702140647.v1E6lVd8078946@slippy.cwsent.com> (Cy Schubert's message of "Mon, 13 Feb 2017 22:47:31 -0800")
References:  <201702140647.v1E6lVd8078946@slippy.cwsent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Cy Schubert <Cy.Schubert@komquats.com> writes:
> +	tty >/dev/null 2>&1 && daily_ntpd_avoid_congestion=3DNO

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
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



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