From owner-freebsd-current@FreeBSD.ORG Sat Jul 17 11:05:13 2010 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 420261065702 for ; Sat, 17 Jul 2010 11:05:13 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from hosting.nash.net.ua (hosting.nash.net.ua [193.151.252.10]) by mx1.freebsd.org (Postfix) with SMTP id 7DC348FC19 for ; Sat, 17 Jul 2010 11:05:12 +0000 (UTC) Received: (qmail 25422 invoked by uid 509); 17 Jul 2010 11:05:10 -0000 Received: from ravenloft.kiev.ua (94.244.131.95) by hosting.nash.net.ua with SMTP; 17 Jul 2010 11:05:10 -0000 Date: Sat, 17 Jul 2010 14:04:39 +0300 From: Alex Kozlov To: Lowell Gilbert , Gabor Kovesdan , freebsd-current@FreeBSD.org, spam@rm-rf.kiev.ua Message-ID: <20100717110439.GA47960@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Cc: Subject: Re: periodic script in base system to run csup X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jul 2010 11:05:13 -0000 On Fri, Jul 16, 2010 at 07:04:38PM -0400, Lowell Gilbert wrote: > Alex Kozlov writes: > > On Fri, Jul 16, 2010 at 04:27:39PM +0200, Gabor Kovesdan wrote: > >> Em 2010.07.16. 16:23, Alex Kozlov escreveu: > >> > On Fri, Jul 16, 2010 at 03:58:33PM +0200, Gabor Kovesdan wrote: > >> > > >> > Thousands pc simultaneously try to access cvsup servers? > >> > Sound like a ddos to me. > >> Yes, this was the only concern and that's why I started this discussion. > > And because its periodic, We can't use portsnap solution (random delay > > before csup start). > It's not completely impossible; periodic could spin off a separate shell > for it, with a random delay. It's not clear what the best way to deal > with the output would be, although several approaches present themselves. > It would be a lot more complicated than Gabor's approach, though. I think this is overengineering. I personally just put few lines in root's crontab: ? ? * * * * make -C /usr/src update' >/dev/null and /etc/make.conf: SUPHOST=cvsup?.xx.FreeBSD.org SUP_UPDATE= true SUPFILE= /etc/site/supfile-rel #PORTSSUPFILE= /etc/site/supfile-port DOCSUPFILE= /etc/site/supfile-doc -- Adios