[Csync2] csync2.lock

Clifford Wolf clifford at clifford.at
Fri Mar 31 15:09:50 CEST 2006


Hi,

On Fri, Mar 31, 2006 at 03:02:07AM +0200, Daniele Palumbo wrote:
> i'm at work with cron, i choosed for "every hour".
> but, what if 2 csync will run concurrently? (one hour is not enough, i want to 
> run it by command line, ...)
> 
> from csync2 stdout:
> "Csync2 will refuse to do anything when a /etc/csync2/csync2.lock file is 
> found."
> 
> good! solved! try it... does not work. csync2 do not create the file.
> check this output:
> ---
> root at data:~# strace csync2 -xv 2>&1 | grep csync2.lock
> access("/etc/csync2/csync2.lock", F_OK) = -1 ENOENT (No such file or 
> directory)
> root at data:~#
> ---
> 
> what is going on?

it is possible to run as many csync2 processes at the same time as you want.
they synchronize using database locks.

the "csync2.lock" file may be created by the administrator, e.g. when one
wants to test experimental config file changes and wants to make sure that
not somebody else is excidently synchronizing them before the tests are
finished.

yours,
 - clifford

-- 
 _  _       _      Nerds on Air - Radio for Geeks      _  __     ___
| \| |___  /_\   On 1st and 3rd Friday of the month   / |/ /__  / _ |
| .` / _ \/ _ \    21:00-22:00 CET on Radio Orange   /    / _ \/ __ |
|_|\_\___/_/ \_\     http://www.clifford.at/noa/    /_/|_/\___/_/ |_|
 
GnuPG Fingerprint = B492 B326 89D2 AC1A 0F38  706E 3CD2 04B1 FA4A 0DD1
 


More information about the Csync2 mailing list