From: Gerrit Pape <pape@smarden.org>
Subject: Re: Dependencies for runit (again)
Date: Sat, 13 Aug 2005 07:32:24 +0000 [thread overview]
Message-ID: <20050813073141.11690.qmail@b5bf72679617eb.315fe32.mid.smarden.org> (raw)
In-Reply-To: <m3acjnys9w.fsf@multivac.cwru.edu>
On Fri, Aug 12, 2005 at 01:32:53PM -0400, Paul Jarc wrote:
> Gerrit Pape <pape@smarden.org> wrote:
> > for i in `ls -1 ./depends/ 2>/dev/null || :`; do
> > sv start $i || exit 1
> > ! test -x /var/service/$i/check || $_ || exit 1
> > done
>
> It would be nice to have this bit as its own command, so a run script
> would only have to call something like "check-depends ./depends"
> without any further duplication of code between run scripts.
Yes, but it's ok to try it out; 'sv status' and/or 'sv start' maybe
should make use of the ./check scripts, and there's also this idea
http://article.gmane.org/gmane.comp.sysutils.supervision.general/724
> Also, one benefit of letting the dependency's own runsv handle
> invocation of the check script is that it gives the check script the
> same consistent process state as the corresponding run script.
Hmm, it would be nice to have a guaranteed process state for ./check,
true.
Regards, Gerrit.
next prev parent reply other threads:[~2005-08-13 7:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-09 17:03 Mike Bell
2005-08-09 20:34 ` Stefan Karrmann
2005-08-12 17:25 ` Gerrit Pape
2005-08-12 17:32 ` Paul Jarc
2005-08-13 7:32 ` Gerrit Pape [this message]
2005-08-27 19:17 ` Gerrit Pape
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=20050813073141.11690.qmail@b5bf72679617eb.315fe32.mid.smarden.org \
--to=pape@smarden.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).