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