supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Alex Efros <powerman@powerman.asdfGroup.com>
Subject: Re: timeout chpst -L
Date: Tue, 14 Feb 2006 13:30:09 +0200	[thread overview]
Message-ID: <20060214113009.GO6585@home.power> (raw)
In-Reply-To: <20060214112106.9099.qmail@7d7a65a7e7aa60.315fe32.mid.smarden.org>

Hi!

On Tue, Feb 14, 2006 at 11:21:06AM +0000, Gerrit Pape wrote:
> The timeout applies to tryto, not to the prog it runs.  When the timeout
> is reached, tryto cleans up and exits as soon as possible, regardless
> how often prog has been tried.

Really? Then why below example don't exit after 3 seconds?


$ time tryto -t 3 -n 5 bash -c 'echo trying...; sleep 2; false'
trying...
trying...
trying...
trying...
trying...
tryto: fatal: child crashed, giving up.

real    0m14.039s
user    0m0.000s
sys     0m0.004s

-- 
			WBR, Alex.


  reply	other threads:[~2006-02-14 11:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-13 16:30 Alex Efros
2006-02-13 20:18 ` Alex Efros
2006-02-14  8:45   ` Gerrit Pape
2006-02-14 10:23     ` Alex Efros
2006-02-14 10:36       ` Gerrit Pape
2006-02-14 11:01         ` Alex Efros
2006-02-14 11:21           ` Gerrit Pape
2006-02-14 11:30             ` Alex Efros [this message]
2006-02-14 11:36               ` Gerrit Pape
2006-02-14 11:54                 ` Alex Efros
2006-02-14 12:39                   ` Gerrit Pape
2006-02-14 12:53                     ` 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=20060214113009.GO6585@home.power \
    --to=powerman@powerman.asdfgroup.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).