From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2624 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Laurent Bercot" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: where is the right place to run s6-rc from ? Date: Sun, 19 May 2019 23:12:47 +0000 Message-ID: References: <20190519212334.GI4861@panda> Reply-To: "Laurent Bercot" Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="197239"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: eM_Client/7.2.34711.0 To: "supervision@list.skarnet.org" Original-X-From: supervision-return-2214-gcsg-supervision=m.gmane.org@list.skarnet.org Mon May 20 01:11:59 2019 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hSUyF-000pBn-71 for gcsg-supervision@m.gmane.org; Mon, 20 May 2019 01:11:59 +0200 Original-Received: (qmail 30400 invoked by uid 89); 19 May 2019 23:12:24 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Original-Received: (qmail 30393 invoked from network); 19 May 2019 23:12:24 -0000 In-Reply-To: <20190519212334.GI4861@panda> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2624 Archived-At: >but when using such a catch-all logger to log s6-svscan's own output >there is no need for the "rc" service to have its own logger since >everything it outputs goes into this catch-all logger. That's the end goal. That's what s6-linux-init-1.0.0.0 does. What you call the "rc" service is named "runleveld" in s6-linux-init, and it is just a service spawning a "s6-rc -pu change" process with the argument you give to the telinit command. Its output naturally goes to the catch-all logger. Manual invocations of s6-rc are of course possible, in which case the output will go to the user's terminal. runleveld is only involved at boot time (well, not really, but the "runlevel" script, that invokes the service manager, is spawned with the same environment) and shutdown time, and on telinit invocation. -- Laurent