From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15522 invoked from network); 13 Jun 2020 12:40:55 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 13 Jun 2020 12:40:55 -0000 Received: (qmail 28613 invoked by uid 89); 13 Jun 2020 12:41:16 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 28606 invoked from network); 13 Jun 2020 12:41:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tunnel53-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=vBW6+CVoGnYDjf1BsWkgSkGoKk7TgIna7k3leLsQDKo=; b=foQNRErwgklyP5H2KxRahzoGrL1bHLNnqTozXMrpdRpugIkyHNRoW7aaiEruESMjuO dH6JlTQmFBW0xIKff96GXG+Hd4j+OfHZU9H+oh/unZQuZNRq+UmXsKrtoXRpNnhjGur2 YBeCirU/ZvKq6wJPzFyrzwSrUSRKHvYaauJ3lC9qSL+E983V25OQ8J5gLZKG07D90Lhw qLCi7BEpQ0rq7Ryz+Bir8o2WEdkxofU2EPNEEL3SthNOCweVNZ5xTHEPUMPEkq7mEc9N Ot3dD0UMe2JjOxN+nxzzAoggjQmp2bv02hPI2Sx/bTAkT6vgBG1JRv26u2ywjZbhzy8I SEaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=vBW6+CVoGnYDjf1BsWkgSkGoKk7TgIna7k3leLsQDKo=; b=lfaMhgTzQi1pb8CrETQv+g+OQWoLAdpr4nDA7eZcYOQ9j+5Eu9x9vigZwhGD+OHA6q 9SHhzV3lMZw/34ehMS+gkB/FqJQ/5MEKg3M5bXVrHx9pj2jrtgwC1QECv/gmxkFtSHmP QjsgrD/1HcAsHVPBUFWY/OvHJ+u0EO80YqWXloGSnIR+u0SGly2pe5gbWUNzLW2roypg aJF9lfXmBEUiO9z/lsMLluXrCNkfGmSBFMH3Dqh4FZ8nS8qrehROSAfwJ8GBdiZs3VvF XTPDGyd8OX3ybcV5cruLqTO1476bqsZ/YeDsAhQjEJk1Bxy3AuVzG09MiL187ccheKXF bqiw== X-Gm-Message-State: AOAM533PG9km9krezNd2kxoH7lJM/hFsFN4+iLwStGC7TfEsSCczL1kA VY24x1VswbnCaqqBJ/k7fZWbeYprsIaDd1BiiIkwjB6E/OU= X-Google-Smtp-Source: ABdhPJwkC5a6G85uASF6E2MzwzUCEl0pv9L8/gna/7EgLW/dEKeVmF9mXMgAHaSHy9ZPpUSpNh9DnIFdp8VklDjxo0c= X-Received: by 2002:a05:620a:b18:: with SMTP id t24mr7078387qkg.342.1592052049166; Sat, 13 Jun 2020 05:40:49 -0700 (PDT) MIME-Version: 1.0 References: <20200613100417.GA1952@CasperVector> <20200613113240.GA7301@CasperVector> In-Reply-To: <20200613113240.GA7301@CasperVector> From: =?UTF-8?Q?Carl_Winb=C3=A4ck?= Date: Sat, 13 Jun 2020 14:40:38 +0200 Message-ID: Subject: Re: Logging in a web server context To: supervision@list.skarnet.org Content-Type: text/plain; charset="UTF-8" On Sat, 13 Jun 2020 at 13:59, Casper Ti. Vector 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.