On Sat, 13 Jun 2020 at 13:59, Casper Ti. Vector <caspervec...@gmail.com> wrote: > > I gather from it that what I want is currently not possible without > > s6-rc. Is that correct? > > I do not think so :) In a nutshell, your service needs to connect its > stdout and stderr to a pair of different loggers; that can be done by > fd-holding and chainloading, and is how s6-rc internally implements its > piping (well, funneling) mechanism. However, s6-rc only connects the > stdout, so the fd-holder needs an amount of additional configuration > whether you use s6-rc or not; that amount will be a bit big without > s6-rc, but it is surely doable and even scriptable.
Aha! Implementing such a mechanism (outside of s6-rc) could be an interesting exercise. However, I believe that the proposals Jan posted would be sufficient for my needs.