Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wanted: analog to procmail's lockfile

3 views
Skip to first unread message

Aleksey Cheusov

unread,
Oct 7, 2007, 2:30:12 PM10/7/07
to
Does anybody know more or less well known replacement for
"lockfile" utility shipped with procmail?

I'd prefer standalone utility that is distributed without so heavy baggage.

--
Best regards, Aleksey Cheusov.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de

Christos Zoulas

unread,
Oct 7, 2007, 8:55:27 PM10/7/07
to
In article <s93tzp2...@chen.chizhovka.net>,

Aleksey Cheusov <netbs...@netbsd.org> wrote:
>Does anybody know more or less well known replacement for
>"lockfile" utility shipped with procmail?
>
>I'd prefer standalone utility that is distributed without so heavy baggage.

shlock?

christos

Aleksey Cheusov

unread,
Feb 28, 2008, 1:53:40 PM2/28/08
to
> In article <s93tzp2...@chen.chizhovka.net>,
> Aleksey Cheusov <netbs...@netbsd.org> wrote:
>>Does anybody know more or less well known replacement for
>>"lockfile" utility shipped with procmail?
>>
>>I'd prefer standalone utility that is distributed without so heavy baggage.

> shlock?

Unfortunately shlock cannot WAIT until lockfile is freed :-(

while ! shlock ...; do
sleep xxx;
done

looks ugly

--
Best regards, Aleksey Cheusov.

--

Simon Truss

unread,
Feb 28, 2008, 2:12:00 PM2/28/08
to
Aleksey Cheusov wrote:
>> In article <s93tzp2...@chen.chizhovka.net>,
>> Aleksey Cheusov <netbs...@netbsd.org> wrote:
> >>Does anybody know more or less well known replacement for
> >>"lockfile" utility shipped with procmail?
> >>
> >>I'd prefer standalone utility that is distributed without so heavy baggage.
>
>> shlock?
>
> Unfortunately shlock cannot WAIT until lockfile is freed :-(
>
> while ! shlock ...; do
> sleep xxx;
> done
>
> looks ugly
>

what about setlock in daemontools.

Simon

Aleksey Cheusov

unread,
Feb 28, 2008, 3:53:02 PM2/28/08
to
>> >>Does anybody know more or less well known replacement for
>> >>"lockfile" utility shipped with procmail?
>> >>
>> >>I'd prefer standalone utility that is distributed without so
>> >>heavy baggage.
>>
>>> shlock?
>>
>> Unfortunately shlock cannot WAIT until lockfile is freed :-(
>>
>> while ! shlock ...; do
>> sleep xxx;
>> done
>>
>> looks ugly
>>

> what about setlock in daemontools.

WARNING: daemontools-0.76nb1 may not be put on a CD-ROM:
WARNING: modified source and binaries may not be distributed
WARNING: daemontools-0.76nb1 may not be made available through FTP:
WARNING: modified source and binaries may not be distributed

Also running child process doesn't look good.
shlock's way suits my needs better.

--
Best regards, Aleksey Cheusov.

--

Eric d'Alibut

unread,
Feb 28, 2008, 6:55:49 PM2/28/08
to
On Thu, Feb 28, 2008 at 3:5 PM, Aleksey Cheusov <che...@tut.by> wrote:

> > what about setlock in daemontools.

> WARNING: daemontools-0.76nb1 may not be put on a CD-ROM:


> WARNING: modified source and binaries may not be distributed
> WARNING: daemontools-0.76nb1 may not be made available through FTP:
> WARNING: modified source and binaries may not be distributed

daemontools is one of the packages djb recently put into public domain:

http://cr.yp.to/distributors.html

Best,

--
No no no, my fish's name is Eric, Eric the fish. He's an halibut. I am
not a looney! Why should I be tarred with the epithet looney merely
because I have a pet halibut?

0 new messages