supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: prj@po.cwru.edu (Paul Jarc)
Subject: Re: Dependencies for runit (again)
Date: Fri, 12 Aug 2005 13:32:53 -0400	[thread overview]
Message-ID: <m3acjnys9w.fsf@multivac.cwru.edu> (raw)
In-Reply-To: <20050812172432.6467.qmail@ba17571ef25f7d.315fe32.mid.smarden.org> (Gerrit Pape's message of "Fri, 12 Aug 2005 17:25:41 +0000")

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.

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.


paul


  reply	other threads:[~2005-08-12 17: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 [this message]
2005-08-13  7:32       ` Gerrit Pape
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=m3acjnys9w.fsf@multivac.cwru.edu \
    --to=prj@po.cwru.edu \
    /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).