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: sv restart bug?
Date: Wed, 1 Nov 2006 12:10:07 +0000	[thread overview]
Message-ID: <20061101121007.22663.qmail@87e16a6bac1ed0.315fe32.mid.smarden.org> (raw)
In-Reply-To: <20061024173834.GB14227@fly.srk.fer.hr>

On Tue, Oct 24, 2006 at 07:38:34PM +0200, Dra?en Ka?ar wrote:
> I think I've found a small bug in runit 1.7.0.
> 
> "sv restart <service>" prints out status information describing state
> before restart action. For example:
> 
> {donat}~# sv stop inserter
> ok: down: inserter: 0s, normally up
> {donat}~# sv status inserter
> down: inserter: 6s, normally up
> {donat}~# sv restart inserter
> ok: down: inserter: 13s, normally up      <=====
> {donat}~# sv status inserter 
> run: inserter: (pid 9437) 4s
> 
> 
> It seems to me it should have printed the new state, just like "sv start"
> does:
> 
> {donat}~# sv stop inserter 
> ok: down: inserter: 0s, normally up
> {donat}~# sv start inserter
> ok: run: inserter: (pid 9539) 0s

Yes, that looks like a bug, thanks for reporting.  From a first quick
glance it seems 'restart' lets sv send the commands 'term', 'cont', 'up'
-in that order-, and sv checks for 'term' to take effect instead of
'up'.

Regards, Gerrit.


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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-24 17:38 Dražen Kačar
2006-11-01 12:10 ` Gerrit Pape [this message]

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=20061101121007.22663.qmail@87e16a6bac1ed0.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).