Re: Lockfile for each profile

"Benjamin C. Pierce" <[email protected]>
Newsgroups gmane.network.unison.devel
Message-ID <[email protected]>
Yes, I could imagine a built-in mechanism like this being quite useful.  If you (or someone else) want to give it a go, I’d suggest developing a detailed design and circulating it for discussion here before starting to implement.

Best,

    - Benjamin

> On Dec 31, 2014, at 9:36 AM, Matthias Peter Walther <[email protected]> wrote:
> 
> Hello,
> 
> I'm new to this mailinglist. Thanks for your great development work, I
> really like unison.
> 
> One question: I use unison with profiles in general. I call it via cron
> every 15 minutes, but sometimes when I need a file on another pc
> immediatly or when I want to close the laptop right now, I start it
> manually.
> 
> To prevent double synchronisation, I use a lockfile:
> test -e /var/lock/unison-dokumente && exit 0 || (touch
> /var/lock/unison-dokumente;unison dokumente;rm /var/lock/unison-dokumente)
> (Linux Bash Syntax)
> 
> Wouldn't it be smart, to have this lockfile feature directly build into
> unison? I mean, there is some kind of lock mechanism in unison if the
> sync abborts. But this doesn't prevent to start unison a second time,
> while another synchronisation is still running, because for example a
> large file has to be synchronized via wifi.
> 
> And this feature would be smart to easily combine timed and manual
> synchronisation.
> 
> I'm looking forward to get your thoughts.
> 
> Greeting from Germany
> and a Happy New Year
> Matthias Walther
> _______________________________________________
> Unison-hackers mailing list
> [email protected]
> http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers

_______________________________________________
Unison-hackers mailing list
[email protected]
http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.