Re: Question About the Purpose of s6-rc

2020-03-20 Thread Laurent Bercot
Under the hood, s6-svc -w? forks s6-svwait -?, which itself forks s6-ftrigrd to monitor the event/ directory. As such, using s6-svc -w? without a command is equivalent (though slightly slower) than using s6-svwait directly. Nitpick: (using s6-svc -uwU as an example; -u to tell s6-supervise to

Re: Question About the Purpose of s6-rc

2020-03-20 Thread Uros Perisic
Alright, I'm sold. I'm diving into s6. So much control. Thanks again Colin! On Fri, Mar 20, 2020 at 2:33 PM Colin Booth wrote: > On Fri, Mar 20, 2020 at 01:36:13PM +0800, Uros Perisic wrote: > > Thanks Colin! > > > > That clarifies a lot. > > > > The s6-rc -wu command was a typo, although I

Re: Question About the Purpose of s6-rc

2020-03-20 Thread Colin Booth
On Fri, Mar 20, 2020 at 01:36:13PM +0800, Uros Perisic wrote: > Thanks Colin! > > That clarifies a lot. > > The s6-rc -wu command was a typo, although I had no clue s6-rc has such an > option as well, so the information is still useful. I meant to say s6-svc > -wu . Or am I wrong in assuming

Re: Question About the Purpose of s6-rc

2020-03-19 Thread Uros Perisic
Thanks Colin! That clarifies a lot. The s6-rc -wu command was a typo, although I had no clue s6-rc has such an option as well, so the information is still useful. I meant to say s6-svc -wu . Or am I wrong in assuming that that is the equivalent of runit's sv up ? I went that route because that

Re: Question About the Purpose of s6-rc

2020-03-19 Thread Colin Booth
On Fri, Mar 20, 2020 at 12:30:15PM +0800, Uros Perisic wrote: > If all services are started in parallel, but s6-rc -wu blocks until a > service is up, what is the difference between simply putting it in a run > script before the exec call, and s6-rc figuring the dependencies out ahead > of time?

Question About the Purpose of s6-rc

2020-03-19 Thread Uros Perisic
Hi all, I am generally new to daemontools-style init systems (been a runit user for about 6 months now, looking to try out s6), so I have a few clarifying questions regarding s6-rc. Forgive me if they stem from my ignorance. All three bullets here