Re: s6 ordering and run-once?

2015-06-16 Thread Colin Booth
On Tue, Jun 16, 2015 at 5:58 PM, Steve Litt wrote: > On Wed, 17 Jun 2015 01:07:01 +0200 > Laurent Bercot wrote: > >> On 16/06/2015 23:33, Steve Litt wrote: >> > Hi all, > >> > Does anyone know how to do a run-once service without putting an >> > infinite sleep loop at the end? >> >> Oneshots ar

Re: s6 ordering and run-once?

2015-06-16 Thread Wayne Marshall
On Tue, 16 Jun 2015 20:58:35 -0400 Steve Litt wrote: > > > Does anyone know how to do a run-once service without putting an > > > infinite sleep loop at the end? In perp you would simply touch(1) a file named "flag.once" in the service definition directory. See the section STARTUP MODIFICATION

Re: s6 ordering and run-once?

2015-06-16 Thread Laurent Bercot
On 17/06/2015 02:58, Steve Litt wrote: What do you do if a oneshot requires that a longrun is already running? That is exactly the problem of mixed dependencies. The right answer is anopa (or s6-rc when it's released). Apart from that, I don't have any more of an answer than runit or daemont

Re: s6 ordering and run-once?

2015-06-16 Thread Steve Litt
On Wed, 17 Jun 2015 01:07:01 +0200 Laurent Bercot wrote: > On 16/06/2015 23:33, Steve Litt wrote: > > Hi all, > > Does anyone know how to do a run-once service without putting an > > infinite sleep loop at the end? > > Oneshots are not meant to be supervised. Don't create a service > director

Re: s6 ordering and run-once?

2015-06-16 Thread Laurent Bercot
On 16/06/2015 23:33, Steve Litt wrote: Hi all, I'm studying the s6 website. The only reference I found to controlling startup order was a sentence about creating symlinks one by one. I found a sentence about run-once types of things (I think the example was bringing up the network), but then it

s6 ordering and run-once?

2015-06-16 Thread Steve Litt
Hi all, I'm studying the s6 website. The only reference I found to controlling startup order was a sentence about creating symlinks one by one. I found a sentence about run-once types of things (I think the example was bringing up the network), but then it didn't tell me *how* to run a run-once.