Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Apr 2000 13:44:46 +0900
From:      "Akinori -Aki- MUSHA" <knu@idaemons.org>
To:        jdp@polstra.com
Cc:        ports@freebsd.org, kuriyama@freebsd.org
Subject:   Re: Speed up cvsup-mirror!
Message-ID:  <86og74jc5d.wl@localhost.local.idaemons.org>
In-Reply-To: In your message of "Wed, 19 Apr 2000 09:07:06 -0700 (PDT)" <200004191607.JAA02678@vashon.polstra.com>
References:  <86aeiqdydg.wl@localhost.local.idaemons.org> <200004191607.JAA02678@vashon.polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At Wed, 19 Apr 2000 09:07:06 -0700 (PDT),
John Polstra <jdp@polstra.com> wrote:
> I (the maintainer and author of the port) don't want the -s switch
> to be turned on by default.  The port is mainly intended for public
> FreeBSD mirror sites.  It is important that such mirror sites get a
> perfectly accurate mirror before allowing the files to be fetched by
> the general public.  The -s flag is risky and it is susceptible to the
> kinds of HW/SW problems that are common on newly configured machines.
> Because of that, I ask the mirror site maintainers to enable the
> -s option only after the mirror has been running stably for awhile
> without it.

I see.  Now then, how about the following change?  It does not change
the default behavior while it lets users have options to pass CVSup
any command line options such as `-s':

Index: files/update.sh
===================================================================
RCS file: /home/ncvs/ports/net/cvsup-mirror/files/update.sh,v
retrieving revision 1.10
diff -u -r1.10 update.sh
--- files/update.sh	2000/03/05 18:40:28	1.10
+++ files/update.sh	2000/04/21 04:32:56
@@ -5,6 +5,7 @@
     exit 1
 fi
 
+export CVSUP_ARGS="$*"
 export PATH=/bin:/usr/bin:${PREFIX}/bin
 
 lock=/var/spool/lock/cvsup.lock
@@ -42,7 +43,7 @@
 startup=${PREFIX}/etc/rc.d
 eval chome=~${cuser}
 cmd="env HOME=${chome} cvsup"
-options="-1gL 1 -b ${base} -c ${colldir}"
+options="-1gL 1 -b ${base} -c ${colldir} ${CVSUP_ARGS}"
 
 umask 2
 ok=yes


So we could schedule CVSup e.g. as follows:

45 0-6,8-23 * * * root nice -15 /usr/local/etc/cvsup/update.sh -s
45 7        * * * root nice -15 /usr/local/etc/cvsup/update.sh

Neat, eh? :)

-- 
                           /
                          /__  __
                         / )  )  ) )  /
Akinori -Aki- MUSHA aka / (_ /  ( (__(  <knu@idaemons.org>

"If you choose not to decide you still have made a choice."


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86og74jc5d.wl>