Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Some questions about the inner workings of Unison still remain, but this is definitely a promising candidate for a workaround. I’ll test it.
    – user149408
    Commented May 15 at 17:57
  • 1
    As an addendum, by adding -w X in the second case, the subsequent job can be made to wait up to X seconds for the first job to finish and fail if the first job is not done within that time, which may be preferred to waiting indefinitely for the previous job to finish. Commented May 16 at 14:19
  • @AustinHemmelgarn For the moment, flock -n ... || logger -t unison "skipping because lock file" should work just fine (we’ll see tomorrow if stopping any further instances actually works). Any changes made during that time will get picked up by the next sync job after the first one finishes.
    – user149408
    Commented May 16 at 20:23