From: Laurent Bercot <ska-supervision@skarnet.org>
Subject: Re: Option for runsv/runsvdir to specify how many times to restart a service in a certain time period before giving up?
Date: Tue, 31 Oct 2006 01:48:57 +0100 [thread overview]
Message-ID: <20061031004857.GA25023@skarnet.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0610300949510.11426@e-smith.charlieb.ott.istop.com>
> The problem with pid files is race conditions. I don't see that as being a
> problem here, as there is a single thread of execution between ./run and
> ./finish. ./finish should be able to reliably store whatever state it
> needs in the file system. Or do you see something which I don't?
I haven't thought of the problem in much detail - and I probably won't
in the foreseeable future: until I've finished writing my own supervision
suite, which may take an indeterminate amount of time, Gerrit's the definite
authority on the subject and I'll trust his decision ;)
However, I've written enough buggy code to know that devil is in the
details, and enough overall Unix code to know where danger resides. And
there's a warning sign going off in my head here: bzzzt! storing
short-lived data in the filesystem - potential problems ahead!
Not saying it can't work, of course; but there might well be more than
meets the eye at first sight, and that implementation decision should not
be taken lightly and without caution.
--
Laurent
next prev parent reply other threads:[~2006-10-31 0:48 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-28 19:26 Alex Smith
2006-10-30 10:49 ` Alex Efros
2006-10-30 10:50 ` Alex Efros
2006-10-30 12:13 ` Dražen Kačar
2006-10-30 12:30 ` Alex Efros
2006-10-30 13:38 ` Laurent Bercot
2006-10-30 13:42 ` Alex Efros
2006-10-30 13:58 ` Laurent Bercot
2006-10-30 14:24 ` Alex Efros
2006-10-30 14:51 ` Charlie Brady
2006-10-31 0:48 ` Laurent Bercot [this message]
2006-10-30 18:49 ` Vincent Danen
2006-10-30 21:28 ` Alex Efros
2006-10-30 21:30 ` Vincent Danen
2006-10-30 17:52 ` Alex Smith
2006-10-30 21:41 ` Alex Efros
2006-11-01 12:01 ` Gerrit Pape
2006-11-01 12:17 ` Alex Efros
2006-10-30 18:49 ` Dražen Kačar
2006-10-30 22:03 ` Alex Efros
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061031004857.GA25023@skarnet.org \
--to=ska-supervision@skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).