[Csync2] csync2.lock
Clifford Wolf
clifford at clifford.at
Mon May 22 20:44:37 CEST 2006
Hi,
On Thu, May 18, 2006 at 10:16:28AM +0200, Johan Huysmans wrote:
> Is there an option with csync2 that will automatically create
> the /etc/csync2.lock file, and automatically deletes it?
I think you missunderstood what the lockfile is for. There is no problem
with multiple people running csync2 on the same host the same time. You only
need the lockfile if you e.g. do a larger config file change on a host and
want to prohibit other to sync your changes b efore you are done.
yours,
- clifford
--
#!/usr/bin/perl
$p="1"x1002;for$c(2..1000){if($p=~/^.{$c}0/){next;};printf"%3d\%s",
$c,++$x%14?" ":"\n";while($p=~s/^((.{$c})+)1/${1}0/){}}$_="lPSFZQ".
"SJNFTZBUZ<IUUQ:;;XXX.DMJGGPSE.BU;QSJNF;>\n";y:B-Zl;:a-x M/:;print;
There are some things a reboot won't fix.
More information about the Csync2
mailing list