Re: s6-log error

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Fri, 27 May 2016 17:36:22 +0200

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
Received on Fri May 27 2016 - 15:36:22 UTC

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