supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Lars Kellogg-Stedman <lars@oddbit.com>
Subject: Re: Adding a 'setup' phase to service startup?
Date: Wed, 23 Feb 2005 20:07:03 +0000 (UTC)	[thread overview]
Message-ID: <slrnd1poqa.cev.lars@flowers.house.oddbit.com> (raw)
In-Reply-To: <421AB049.4040403@gmail.com>

> Although I think runit itself should remain pristine in that it only
> runs the ./run script for a service...

And the finish script.  And the log/run script.  And the various control/*
scripts.  My point being, adding a setup phase to the service doesn't
represent much of a change, especially since it has zero impact on the
system's behavior if there is no setup script in place.

Adding an entire new layer on to handle dependencies would seem to detract
from the inherent simplicity of the system -- one should be able to use
runsv, by itself, to start up a service and have behave it exactly like it
would when run "in production".  This means that new logic for things like
dependency resolution (or respawn limiting) needs to be either (a)
implemented in runsv, or (b) implemented as external commands that can be
executed by the 'run' script.

Implementing service dependencies in the run script is already difficult,
particularly because the runit tools are unable to differentiate between
"starting up" and "up".  This is the small, reasonably well bounded problem
that I'm hoping to solve.

-- Lars

-- 
Lars Kellogg-Stedman <lars@oddbit.com>




  parent reply	other threads:[~2005-02-23 20:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-21 17:41 Lars Kellogg-Stedman
2005-02-22  4:08 ` Dean Hall
2005-02-22 15:06   ` Thomas Schwinge
2005-02-23 20:07   ` Lars Kellogg-Stedman [this message]
2005-02-24  4:28     ` Dean Hall
2005-02-24  4:40     ` Dean Hall
2005-02-23 21:12 ` Stefan Karrmann
2005-03-07 11:56 ` 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=slrnd1poqa.cev.lars@flowers.house.oddbit.com \
    --to=lars@oddbit.com \
    /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).