[CentOS-mirror] 4.3 free drive space

Subredu Manuel diablo at iasi.roedu.net
Sat Mar 18 10:45:56 UTC 2006


or you can use simba ;) (http://simba.packages.ro)

On Fri, Mar 17, 2006 at 09:52:18AM -0500, William Dunn wrote:
> 
> Just as an aside:  This is an excellent time to implement a lock file 
> system.  As it says on the mirror site,
> 
> "We highly recommend the use of lock files in your cron script so that 
> you don't spawn multiple connections which is hard on our servers and on 
> your mirror. If you don't know how to do this, please ask the list."
> 
> Lock files are a good thing (tm).  I'm sure there's a better way to do 
> it, but I'm doing the following:
> 
> if [ -f /some/path/lockfile ]
> then
> exit
> fi
> touch /some/path/lockfile
> rsync -blah -blah us-msync.centos.org::CentOS /my/mirror
> rm -f /some/path/lockfile
> 
> 
> ~Will
> Virginia Tech CS dept techstaff
> 

-- 
==================================================
 inf. Manuel SUBREDU
 Network Engineer at RoEduNet Iasi

 Phone:     +40 (232) 201007
            +40 (742) 088067
 Email:     diablo at iasi.roedu.net
 website:   http://www.packages.ro
 GPG key:   http://www.packages.ro/diablo.gpg.txt
==================================================



More information about the CentOS-mirror mailing list