On 27/05/2016 06:59, Eric Vidal wrote:
Creating a fifo file than having a s6-log watching on it?

 This.
 Anonymous pipes won't work here because you'd need to control a common
ancestor to the processes you want to pipe. But named pipes do not have
that requirement.
 - Create a fifo somewhere in the filesystem.
 - Have your logger service redirect its stdin from a fifo.
 - Have your producer services redirect their stdouts to the same fifo.
 - Enjoy.
 - If you're paranoid: store both ends of the fifo in a s6-fdholderd
process, so you won't lose any logs if the logger restarts.

--
 Laurent

Reply via email to