Re: periodic script in base system to run csup

From: Alex Kozlov <spam_at_rm-rf.kiev.ua>
Date: Sat, 17 Jul 2010 14:04:39 +0300
On Fri, Jul 16, 2010 at 07:04:38PM -0400, Lowell Gilbert wrote:
> Alex Kozlov <spam_at_rm-rf.kiev.ua> 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
Received on Sat Jul 17 2010 - 09:05:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC