Re: s6 readiness support

From: Patrick Mahoney <pat_at_polycrystal.org>
Date: Wed, 25 Feb 2015 18:53:07 -0600

On 2015-02-25 4:13 pm, Laurent Bercot wrote:

>
> How about
> pipeline -w
> {
> cd ..
> forbacktickx -d"\n" i { cat } s6-notifywhenup -f echo
> }
> ...
> ?

This is more elegant, thanks.

> If you don't mind using a shell, you can even have a single shell
> lying around instead of both a forbacktickx and a cat process:
> /bin/sh -c "while read ; do s6-notifywhenup -f echo ; done"

I was trying to avoid the shell, particularly running as root, but
it's not a big risk since it's never handling user input.
(and you could always arrange a user who can write to ./event)


-- 
Patrick Mahoney <pat_at_polycrystal.org>
Received on Thu Feb 26 2015 - 00:53:07 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC