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.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5020 invoked from network); 9 Jun 2021 03:41:05 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 9 Jun 2021 03:41:05 -0000 Received: (qmail 16983 invoked by uid 89); 9 Jun 2021 03:41:30 -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 16976 invoked from network); 9 Jun 2021 03:41:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=heuristicsystems.com.au; s=hsa; t=1623210053; x=1623814854; bh=QdxOz/hEy4mnsduN3IbUuIlVuDAUarSCrUhUp2D4+KE=; h=Subject:To:Cc:From:Message-ID:Date; b=PLv7TBsG/50BcigZaNnNgHTJtC56fYwbEd32ZsQ+btpI/HX+EVN5mK4yzwfurV347 +37o0R+OIuUNDnD2PTQsw6yddYdZoEIKBpTfjy8q65scoUR2ErWxtb9sC3FJb41wTj xb/twJ4+flbD2yWzPf5Gl9xzDUe3az7qwv7DPX+4IFsoXBa7Ey5GJ X-Authentication-Warning: b3.hs: Host noddy.hs [10.0.5.3] claimed to be [10.0.5.3] Subject: Re: Query on s6-log and s6-supervise To: Arjun D R Cc: supervision@list.skarnet.org References: <6a95462b-547f-bef8-7cc2-8d9e26b6a61d@heuristicsystems.com.au> From: Dewayne Geraghty Message-ID: <8e200354-c666-8ac5-92d0-963ebe7a72ef@heuristicsystems.com.au> Date: Wed, 9 Jun 2021 13:40:52 +1000 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Apologies, I'd implied that we have multiple s6-supervise processes running and their children pipe to one file which is read by one s6-log file. You can achieve this outcome by using s6-rc's, where one consumer can receive multiple inputs from producers. There is a special (but not unique) case where a program, such as apache which will have explicit log files (defined in apache's config file) to record web-page accesses and error logs, on a per server basis. Because all the supervised apache instances can write to one error logfile, I instructed apache to write to a pipe. Multiple supervised apache instances using the one pipe (aka funnel), which was read by one s6-log. This way reducing the number of (s6-log) processes. I could do the same with the access logs and use the regex function of s6-log, but I tend to simplicity.