s6 readiness support

2015-02-25 Thread Patrick Mahoney
Hi Laurent, Thanks for adding the readiness support to s6. Finally had a chance to work with it a bit. My current use case is upgrading a service on N host machines in a rolling fashion, where the service is deployed to one machine, restarted, and when it reports that it's ready, the process is

Re: s6 readiness support

2015-02-25 Thread Laurent Bercot
On 25/02/2015 22:29, Patrick Mahoney wrote: The loopwhilex keeps the pump primed, so to speak, so /service/s can be stopped and started many times with readiness reporting working. Otherwise, I'd need to restart /service/s/log as well as /service/s. On the other hand, I have mostly idle

Re: s6 readiness support

2015-02-25 Thread Patrick Mahoney
On 2015-02-25 6:53 pm, Patrick Mahoney wrote: On 2015-02-25 4:13 pm, Laurent Bercot wrote: How about pipeline -w { cd .. forbacktickx -dn i { cat } s6-notifywhenup -f echo } ... ? This also works: pipeline -w { cd .. xargs -I{} s6-notifywhenup -f echo } Except that I get a defunct