supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: David Miller <dave@frop.net>
To: supervision@list.skarnet.org
Subject: Re: Configuration services
Date: Mon, 27 Jul 2009 21:08:21 -0500	[thread overview]
Message-ID: <20090728020821.GA25002@pretender.frop.net> (raw)
In-Reply-To: <20090727085635.GO30106@fencepost.gnu.org>

Thomas spoke thusly:
> Hello!
> 
> On Sun, Jul 26, 2009 at 11:22:04AM -0500, David Miller wrote:
> > Hi, does anyone use services that just set up some things but don't
> > actually run a daemon?  This is hinted at
> > http://smarden.org/pape/djb/daemontools/noinit.html.
> 
> Perhaps I'm misunderstanding, but wouldn't it work to simply use the sv
> interface to take the service down once it has done its one-time work?
> 
> 
> Regards,
>  Thomas

I want to be able to have other services depend on it. I don't think that I would be able to use 'sv check' in those dependant service run scripts if the config service has already exited.

I also have a ./finish script that undoes all the configuration, so I don't want ./finish to run unless I really want my "service" to be down.  From reading the sv man page it seems like./finish would get run if I brought up my "service" with sv once.


-- 
David Miller dave@frop.net http://dave.frop.net/


  reply	other threads:[~2009-07-28  2:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-26 16:22 David Miller
2009-07-26 17:07 ` Laurent Bercot
2009-07-26 18:45   ` Charlie Brady
2009-07-26 21:10     ` David Miller
2009-07-27  8:56 ` Thomas Schwinge
2009-07-28  2:08   ` David Miller [this message]
2009-07-28  5:52     ` Laurent Bercot
2009-07-28 16:01       ` David Miller

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=20090728020821.GA25002@pretender.frop.net \
    --to=dave@frop.net \
    --cc=supervision@list.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).