Re: Could s6-scscan ignore non-servicedir folders?

From: Laurent Bercot <ska-supervision_at_skarnet.org>
Date: Wed, 21 Jan 2015 23:54:39 +0100

On 21/01/2015 23:26, Steve Litt wrote:
> But at least, if I *absolutely must* run a one-shot, on boot, that
> depends on a daemon, I have a way of doing it which involves no change
> to the current runit, s6, nosh or (as far as I know) perp programs.

  Oh, you can do it with s6 already: it requires blurring the frontier
between stage 1 and stage 2, as I explain (but not enough, because it
was not the focus of the document) in
  http://skarnet.org/software/s6/s6-svscan-1.html .

  The trick is to have s6-svscan up and running before you complete
the one-shot initialization of stage 1. It's doable, if a little
tricky; the future s6-init package will do it automatically for you
(but it's at least several months away).

  What is true is that you cannot interleave one-shots and long-running
processes if you are following the runit model, that only launches
runsvdir once all the one-shots have run.

-- 
  Laurent
Received on Wed Jan 21 2015 - 22:54:39 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC