[Csync2] csync2.lock
Johan Huysmans
johan.huysmans at x-tend.be
Fri May 19 10:57:35 CEST 2006
The lockfile isn't meant for the daemon, but for the csync2 binary you execute
manually.
The thing you said is done by xinetd.
On Friday 19 May 2006 10:40, Johan De Meersman wrote:
> write a wrapper script that runs csync2 -iii, so it accepts only the
> single connection and exits when done. Then write a loop around it.
>
> Eric Liang wrote:
> > yeah, I want this feature too. it's very possible several people are
> > trying to
> > sync something simultanously. maybe to write a script to achieve this?
> >
> > On 5/18/06, * Johan Huysmans* <johan.huysmans at x-tend.be
> > <mailto:johan.huysmans at x-tend.be>> wrote:
> >
> > Hi,
> >
> > Is there an option with csync2 that will automatically create
> > the /etc/csync2.lock file, and automatically deletes it?
> >
> > This way you can very easily say that there may only be one
> > instance of
> > csync2.
> >
> > If this option doesn't exists, how can you use the lock file.
> > What's the
> > easiest way to create that file a millisecond after the start of
> > csync2?
> >
> > Thanks and greeting,
> > Johan Huysmans
> > _______________________________________________
> > Csync2 mailing list
> > Csync2 at lists.linbit.com <mailto:Csync2 at lists.linbit.com>
> > http://lists.linbit.com/mailman/listinfo/csync2
> >
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >Csync2 mailing list
> >Csync2 at lists.linbit.com
> >http://lists.linbit.com/mailman/listinfo/csync2
>
> --
> You are wise, witty, and wonderful, but you spend too much time reading
> this sort of trash.
More information about the Csync2
mailing list