From owner-freebsd-questions@FreeBSD.ORG Sat Apr 10 12:06:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D644C16A4CE for ; Sat, 10 Apr 2004 12:06:03 -0700 (PDT) Received: from out010.verizon.net (out010pub.verizon.net [206.46.170.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F09743D54 for ; Sat, 10 Apr 2004 12:06:03 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from mac.com ([68.160.247.127]) by out010.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20040410190602.ZPQS1910.out010.verizon.net@mac.com>; Sat, 10 Apr 2004 14:06:02 -0500 Message-ID: <40784581.7080306@mac.com> Date: Sat, 10 Apr 2004 15:05:37 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kent Stewart References: <4076527F.1060902@users.sourceforge.net> <200404091246.14178.kstewart@owt.com> <200404100833.34425.kstewart@owt.com> In-Reply-To: <200404100833.34425.kstewart@owt.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out010.verizon.net from [68.160.247.127] at Sat, 10 Apr 2004 14:06:02 -0500 cc: freebsd-questions@freebsd.org Subject: Re: Portupgrade problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Apr 2004 19:06:04 -0000 Kent Stewart wrote: > On Saturday 10 April 2004 07:51 am, Andreas Davour wrote: >>Now I think I know how to do these things and after another upgrade I >>think I'm ready to at least do the cvsup part using cron. > > The hardest part of a cron job is finding that magic time after the hour > that never fails because your cvsup-mirror is over committed. The > mirrors always update on the hour and you have to wait at least 10 > minutes for the mirror to finish its cvsup. If you don't, you are > getting data from the mirror's previous update. Try something like: cvsup /etc/ports-supfile && portsdb -Uu ...as your cron job, or else put the commands into a script which you run from cron. The second command will run once the first command is finished, so you don't need to worry about the cvsup not finishing before doing the portsdb. [ I don't see a need to automaticly update the ports tree every hour from a cvsup mirror: doing so creates 24 cvsup sessions per day per machine. Isn't once a day frequent enough? :-) ] -- -Chuck