From owner-freebsd-hackers@freebsd.org Thu May 25 13:51:59 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F0640D81D34 for ; Thu, 25 May 2017 13:51:59 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A83D71776 for ; Thu, 25 May 2017 13:51:59 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by mail-wm0-x243.google.com with SMTP id k15so52048624wmh.3 for ; Thu, 25 May 2017 06:51:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=X8Tx5hP01nTOomifEOX+lng9F6pPk3Z/2cbBVrwp6Qg=; b=Ma2H7TqRU5cej+d6gCqb35PTvp/s+OWYIDYflFcU/3GhBjydHKwMPkpZItC4u0ehbL WKhO1zLoeX6/MdUMecEPOMb3dyyck+Mo1QRegmbARrgV1Ne/MLVWKPSyGS/Xv2RmXaAR JbErKOctVae519m4+KnmZgc46VZJ1c0m+wKJm/aVGZsjXvBUA8KvMnTQWeIG117fe28J phFhoKWV5iJUUdyZ/583w6DGr20iZl/FD58c+TqQZzunLKvNMRd3+ODZ4yIPYcG4ZlHt qPYSsUYPh77lCWqIvGyoUYQAASh1uVy/bR3JSC4OOVsVDc5naGYAc0oQHJn4RkcAnYxG ksqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=X8Tx5hP01nTOomifEOX+lng9F6pPk3Z/2cbBVrwp6Qg=; b=JyLXpM/8/G6QRczxgwoBAHBeIsmD6FmjDAhDPQgdShluRNU+4htC3Il9l5AUsMvcrr DmkmOb/nq8Tl3GwwmnqVL+YjHLIqAHya1pp6d9mVeYuQ/GzRG2+VcrAzpZGGdnBIhgCf oWLyf3K4BoEYQazGDSh7nM2tfuROSK0QJSKyz/bo2bga4cq+gc49n94XYoa0jEFkMC2l OHa/GwmMJN0gzg7a31k47KGpeI3dYdt/rkxQeVCZj5glj31YsRAjLor1pXhVdXWoLRR4 76f89i2lktKqbj8MiVEV9+kguM5uhKuusjJNG8UGxwfcLeLxZK4LBBl062G7MOXiw5vA pUkA== X-Gm-Message-State: AODbwcAaVKsahhAoz8xRpzk20Oh5nQ7tSFJxImwNVT2hfTdQ+9UTjq7h qLVLCdNJWf0Vif86 X-Received: by 10.28.69.73 with SMTP id s70mr10548295wma.36.1495720317750; Thu, 25 May 2017 06:51:57 -0700 (PDT) Received: from gumby.homeunix.com ([81.17.24.158]) by smtp.gmail.com with ESMTPSA id f78sm7072425wme.19.2017.05.25.06.51.55 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 May 2017 06:51:56 -0700 (PDT) Date: Thu, 25 May 2017 14:51:53 +0100 From: RW To: freebsd-hackers@freebsd.org Subject: Re: anti-dog-piling and ntpd leap files Message-ID: <20170525145153.79d1d03d@gumby.homeunix.com> In-Reply-To: References: <20170522125307.76c9de6d@gumby.homeunix.com> <1104C7A7-5893-4602-9E34-5C212D987DAE@webweaving.org> <20170522143102.70035d8d@gumby.homeunix.com> <20170523233057.59cd2393@gumby.homeunix.com> X-Mailer: Claws Mail 3.15.0 (GTK+ 2.24.31; amd64-portbld-freebsd10.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 May 2017 13:52:00 -0000 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.