Thank you! It works fine and it is, by far, the easiest way (I've google for others so...) to do what I wanted...
--- Mirror-Admin intergenia AG mirrors@intergenia.de wrote:
Hi,
easiest way to prevent doubles is checking the process list. E.G. create a bash-script for your mirroring, that checks if there is already a connection to msync.centos.org::CentOS
---- SNIP ---- #!/bin/bash
if [ "$(ps auxw|grep msync.centos.org::CentOS|grep -v grep" != "" ];then echo "A centos-sync is already running ..." exit fi rsync -aqzH --delete msync.centos.org::CentOS /PATH/TO/YOUR/MIRROR/FILES/ ---- SNAP ----
Kind regards Jens
Silvian Cretu wrote:
Hi! I am now mirroring CentOS and I would like to
use
lock files so that I don't start multiple
connections
at the same time. I don't know how to do this... The CentOS Mirroring HowTo 'told' me that this
mailing
list can help me! Thank you in advance...
Silvian Cretu
http://www.linux360.ro/ http://toxic-chat.sourceforge.net/ http://www.caramida-verde.as.ro/
__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
CentOS-mirror mailing list CentOS-mirror@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
Silvian Cretu ----------------- http://www.linux360.ro/ http://toxic-chat.sourceforge.net/ http://www.caramida-verde.as.ro/
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com