Re: Supervising a pipeline?

2016-01-18 Thread Jonathan de Boyne Pollard
Laurent Bercot: You can't supervise a pipeline per se; you need to supervise both processes in the pipeline independently, and make sure the pipe isn't broken when one of them dies. So, have "exec inotifywait /dev/disk" as foobar/run, and have "exec automounter.py" as foobar/log/run. This wi

Re: Holidays Brainstorming: instanced supervision

2016-01-18 Thread Jonathan de Boyne Pollard
Olivier Brunel: With instanced services, it means when you enable such a service you add/specify an instance name. So e.g. the servicedir is "getty@" but you enable "getty@tty2" -- which just means the servicedir getty@ is copied under a different name in the scandir. The intent being that t

Re: Holidays Brainstorming: instanced supervision

2016-01-18 Thread Casper Ti. Vector
Sorry if this message is nothing except for mechanism and implementation details, but here's my Gentoo-esque way of doing this with vanilla s6/execline and a Bourne shell: > % ls -R > .: > data finish run type > > ./data: > conf > % head type run finish data/conf > ==> type <== > longrun >

Re: Holidays Brainstorming: instanced supervision

2016-01-18 Thread Joan Picanyol i Puig
* Laurent Bercot [20151226 12:33]: > In the past few years, there have been some bits and pieces of > discussion about "instanced services", i.e. some kind of supervised > service that would be able to create different instances of the > process at will. But it never got very detailed. > > I'd

Re: Holidays Brainstorming: instanced supervision

2016-01-18 Thread Esben Haabendal
Hi Something like this would be valuable for network interface services. Would be nice to be able to write a generic "udhcpc@" service, and then instantiate "udhcpc@eth0" and "udhcpc@eth1". My 0.02$. /Esben On 13 January 2016 at 18:50, Olivier Brunel wrote: > On Fri, 25 Dec 2015 11:43:31 +010