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: Option for runsv/runsvdir to specify how many times to restart a service in a certain time period before giving up?
Date: Tue, 31 Oct 2006 00:03:48 +0200	[thread overview]
Message-ID: <20061030220348.GC12402@home.power> (raw)
In-Reply-To: <20061030184923.GA20787@fly.srk.fer.hr>

Hi!

On Mon, Oct 30, 2006 at 07:49:23PM +0100, Dra?en Ka?ar wrote:
> It does. Ease of configuration, for example. If an administrator has to
> configure programs with shell scripts, another admin has to find, read and
> understand those scripts before he can change anything. That's an overhead
> I'd like to avoid for simple things.

I tend to agree. But I've two comments:
1) In my experience most *nix admins know only about sysvinit, and when
   they see server with runit/daemontools they just give up. So, small
   feature in ./finish script doesn't make task much harder for such admins.
   Other admins, who know about runit, know ./finish scripts isn't usually
   used at all, so if they see ./finish script they usually look into it
   with curiosity. :)
2) Windows is example of thing developed to be ease to configure.
   I prefer harder to configure but more controlled things like *nix.

> Suppose the problem was fixed, but runit is waiting for the finish scripts
> to exit. How does one tell them to exit immediately and let runsv restart
> the services?

This is same interesting question as Alex Smith asked. I don't know, we
should ask Gerrit. Maybe signals will work...

<OT>

> > After all, it's a Unix Way.
> It's a way of the people who like to write shell scripts.

I don't like to write shell scripts. Unix Way is to have a lot of simple
programs each doing it small task. I.e. if some task can be split into
two different programs - why not go this way? Each program will be more
simple and so more reliable and have less bugs. But evil side of this is
effort to integrate all these programs (using shell scripts or something
else), yeah. Actually, there few exceptions from this rule in *nix world -
text editor Vim, for example, or email client Mutt - they both are big
complex programs, and that's good because these programs should parse user
input and provide comfortable user interface - that's impossible for
bundle of small programs. But I don't think runit is fall into this
software category - it should be reliable, secure, fast, simple and small.
This goal much ease to reach using Unix Way of programming. And so, yes,
you should use shell scripts to help runit stay small and reliable.

</OT>

-- 
			WBR, Alex.


      reply	other threads:[~2006-10-30 22:03 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
2006-11-01 12:17             ` Alex Efros
2006-10-30 18:49       ` Dražen Kačar
2006-10-30 22:03         ` Alex Efros [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=20061030220348.GC12402@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).