supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Gerrit Pape <pape@smarden.org>
Subject: Re: Option for runsv/runsvdir to specify how many times to restart a service in a certain time period before giving up?
Date: Wed, 1 Nov 2006 12:01:56 +0000	[thread overview]
Message-ID: <20061101120156.21820.qmail@b6b634871dc2ed.315fe32.mid.smarden.org> (raw)
In-Reply-To: <20061030214132.GB12402@home.power>

On Mon, Oct 30, 2006 at 11:41:32PM +0200, Alex Efros wrote:
> On Mon, Oct 30, 2006 at 05:52:42PM +0000, Alex Smith wrote:
> > Ok, I could try to write something like this myself, but just one 
> > question - if the services is running ./finish, what does sv start try 
> > to do? I mean, the documentation on runit's website says to use sv start 
> > for dependencies. If a service is started that runs sv start 
> > some_service, and some_service is running ./finish, what would happen?
> 
> Hmm. That's interesting question. I suppose nothing is happens - if
> ./finish hangs then runsv will just wait until it exit.

sv will wait for the service to become done (for ./finish to terminate),
and to then to be up again (./run running, and using ./check if
available), or report timeout.

> Maybe sending TERM (or any other signal) to service using `sv t` will send
> it to ./finish script if ./finish is running now instead of ./run, but
> I'm not sure.

No, it's not sending TERM to finish, see
 http://thread.gmane.org/gmane.comp.sysutils.supervision.general/270/focus=272

Regards, Gerrit.


  reply	other threads:[~2006-11-01 12:01 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-28 19:26 Alex Smith
2006-10-30 10:49 ` Alex Efros
2006-10-30 10:50   ` Alex Efros
2006-10-30 12:13   ` Dražen Kačar
2006-10-30 12:30     ` Alex Efros
2006-10-30 13:38       ` Laurent Bercot
2006-10-30 13:42         ` Alex Efros
2006-10-30 13:58           ` Laurent Bercot
2006-10-30 14:24             ` Alex Efros
2006-10-30 14:51             ` Charlie Brady
2006-10-31  0:48               ` Laurent Bercot
2006-10-30 18:49         ` Vincent Danen
2006-10-30 21:28           ` Alex Efros
2006-10-30 21:30             ` Vincent Danen
2006-10-30 17:52       ` Alex Smith
2006-10-30 21:41         ` Alex Efros
2006-11-01 12:01           ` Gerrit Pape [this message]
2006-11-01 12:17             ` Alex Efros
2006-10-30 18:49       ` Dražen Kačar
2006-10-30 22:03         ` Alex Efros

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=20061101120156.21820.qmail@b6b634871dc2ed.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).