From: Rafal Bisingier <ravbc@man.poznan.pl>
Subject: Re: new "sv status" flags and exit-tracking patch, and misc.
Date: Fri, 9 Dec 2005 15:50:22 +0100 [thread overview]
Message-ID: <20051209145022.GA1055@localhost> (raw)
In-Reply-To: <20051209142936.16428.qmail@94b573dfd8565a.315fe32.mid.smarden.org>
[-- Attachment #1: Type: text/plain, Size: 1599 bytes --]
On Fri, Dec 09, 2005 at 03:29:36PM +0100, Gerrit Pape wrote:
> On Thu, Dec 08, 2005 at 01:37:51PM -0600, Charles Duffy wrote:
> > Gerrit Pape wrote:
> > >I guess ./run and ./finish almost always will be scripts, more precisely
> > >shell scripts. runsv as of now maintains two files supervise/stat and
> > >supervise/pid. How about removing these files, and add a single one
> > >containing the informations discussed here?:
> > >
> > >./supervise/info:
> > ><state> <want> <pid> <uptime> <runrc> <finishrc>
> >
> > Sounds reasonable. Are you willing to impliment this yourself, or do you
> > want me to?
>
> Contribution alwys is nice, and I'm rather busy these days. So I would
> be happy if you can put work into it. Thanks!
>
> <uptime> will not work though in a file that's only written when some
> status changes, this should be <starttime> instead I guess. And you
> suggested to differentiate the run/finish return codes by 'exited
> cleanly', and 'killed by signal'. To make numeric tests (`test "$runrc"
> -lt 0`) work, how about 0-255 for 'exited cleanly', and -SIGNO for
> 'killed by signal'? What if ./run or ./finish did not exit yet?
If <state> will be different for ./run and ./finish time, then one can
simply check:
- if <state> is run, then runrc is for the previous execution of ./run
and analogical for finish
- if runrc/finishrc is '-' then the appropriate script didn't exit yet
That's why <state> should differentiate executing ./run from executing
./finish, and runrc/finishrc fields shouldn't be empty
--
Rafal Bisingier
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2005-12-09 14:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-17 4:46 Charles Duffy
2005-09-17 5:17 ` Mike Bell
2005-09-19 8:35 ` Gerrit Pape
2005-09-17 8:53 ` Laurent Bercot
2005-09-19 8:31 ` Gerrit Pape
2005-09-19 16:04 ` Charles Duffy
2005-09-19 19:13 ` Charles Duffy
2005-09-21 21:50 ` new "sv status" flags and exit-tracking patch, yet again Charles Duffy
2005-09-26 10:12 ` new "sv status" flags and exit-tracking patch, and misc Gerrit Pape
2005-09-26 15:31 ` duplicate processes Jussi Ramo
2005-09-26 15:42 ` Charlie Brady
2005-12-08 11:08 ` new "sv status" flags and exit-tracking patch, and misc Gerrit Pape
2005-12-08 19:37 ` Charles Duffy
2005-12-09 14:29 ` Gerrit Pape
2005-12-09 14:50 ` Rafal Bisingier [this message]
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=20051209145022.GA1055@localhost \
--to=ravbc@man.poznan.pl \
/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).