[tor-bugs] #25531 [Internal Services]: Add locks in archive.tpo rsync scripts

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Mar 17 13:04:24 UTC 2018


#25531: Add locks in archive.tpo rsync scripts
-----------------------------------+-------------------------
     Reporter:  boklm              |      Owner:  boklm
         Type:  defect             |     Status:  assigned
     Priority:  Medium             |  Milestone:
    Component:  Internal Services  |    Version:
     Severity:  Normal             |   Keywords:  boklm201803
Actual Points:                     |  Parent ID:
       Points:                     |   Reviewer:
      Sponsor:                     |
-----------------------------------+-------------------------
 We are using cron to run rsync every hour to update archive.tpo. It works
 fine, except when the rsync takes more than one hour, which cause multiple
 rsyncs to be running at the same time.

 We should avoid that by using flock/lckdo.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25531>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list