Portupgrade problem

Chuck Swiger cswiger at mac.com
Sat Apr 10 12:06:04 PDT 2004


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



More information about the freebsd-questions mailing list