<div dir="ltr">Hi Jim, it's quite easy to do with a script. This first section here checks to see if a lock is present, and if it is, the script bails:<div><br></div><div><div>if [ -f /var/lock/subsys/rsync_updates ]; then</div>
<div> echo "Updates via rsync already running."</div><div> echo "--ERROR: REPOSITORY SYNC ABORTED AT `date`--"</div><div> exit 0</div><div>fi</div></div><div><br></div><div style>When I begin my sync, it touches the lock file (touch /var/lock/subsys/rsync_updates), and when finished, removes it (/bin/rm -f /var/lock/subsys/rsync_updates). If you need any help or wish to see my full script, just let me know and I can provide it.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 27, 2013 at 5:03 PM, Jim Hartnett <span dir="ltr"><<a href="mailto:mirrors@gawsolutions.us" target="_blank">mirrors@gawsolutions.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>i have the mirror initially synced, but need to setup lock files. documentation said to ask the mailing list<br>
<br>
mirror Url: <a href="http://mirrors.gawsolutions.us/centos" target="_blank">http://mirrors.gawsolutions.us/centos</a><br>
bandwidth: 100 Mbps up/down unmetered transfer<br>
located in dallas, tx, usa<br>
Geeks at Work Solutions<br>
centos machine with apache<br>
rsync twice a day at offset minutes (reduces peak for even hour starts) <br>
<br>
-Jim, Geeks at Work Solutions<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Sent from my Android phone with K-9 Mail. Please excuse my brevity.</font></span></div><br>_______________________________________________<br>
CentOS-mirror mailing list<br>
<a href="mailto:CentOS-mirror@centos.org">CentOS-mirror@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos-mirror" target="_blank">http://lists.centos.org/mailman/listinfo/centos-mirror</a><br>
<br></blockquote></div><br></div>