From owner-freebsd-questions@FreeBSD.ORG Mon Nov 26 15:29:03 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 47C9F261 for ; Mon, 26 Nov 2012 15:29:03 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id F0F078FC16 for ; Mon, 26 Nov 2012 15:29:02 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id qAQFT1xq032482; Mon, 26 Nov 2012 08:29:01 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id qAQFT1X9032477; Mon, 26 Nov 2012 08:29:01 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 26 Nov 2012 08:29:01 -0700 (MST) From: Warren Block To: kpneal@pobox.com Subject: Re: When Is The Ports Tree Going To Be Updated? In-Reply-To: <20121126145818.GA66335@neutralgood.org> Message-ID: References: <50B2A57A.3050500@tundraware.com> <50B2A8D8.90301@FreeBSD.org> <50B2AA07.8090103@tundraware.com> <201211251856.40381.lumiwa@gmail.com> <50B2BEE1.9030903@tundraware.com> <50B31AAB.6000903@FreeBSD.org> <50B36500.7040308@tundraware.com> <50B377F4.1020507@freebsd.org> <20121126145818.GA66335@neutralgood.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Mon, 26 Nov 2012 08:29:02 -0700 (MST) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Nov 2012 15:29:03 -0000 On Mon, 26 Nov 2012, kpneal@pobox.com wrote: > On Mon, Nov 26, 2012 at 02:08:52PM +0000, Matthew Seaman wrote: >> Secondly, for the sake of the servers, please don't run 'portsnap fetch' >> from a cron job. You're not the only person to think of doing that, and >> most people who do have the job run at the top of the hour. This is >> bad. The servers really don't like it when several thousand cronjobs >> all fire off simultaneously and the system load goes through the roof. >> Which is why 'portsnap cron' exists -- it does exactly the same as >> fetch, except it waits for a random amount of time before pulling down >> any data. > > More generally, a cron job can be run with a random delay added before > the real job kicks off. Just prefix the command you want cron to run > like so: > > sleep $(jot -r 1 1 900) && command to run > > If you like, replace 900 with some other number to change the upper bound > on the number of seconds to delay. portsnap has a "cron" command that does this.