From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2873 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Laurent Bercot" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit SIGPWR support Date: Sat, 15 Feb 2020 02:15:25 +0000 Message-ID: References: <1beb6e35-d4be-60b8-fc52-af666c4fffe3@gmx.com> Reply-To: "Laurent Bercot" Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="38528"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: eM_Client/7.2.36908.0 To: "John W Higgins" , supervision@list.skarnet.org Original-X-From: supervision-return-2462-gcsg-supervision=m.gmane-mx.org@list.skarnet.org Sat Feb 15 03:15:27 2020 Return-path: Envelope-to: gcsg-supervision@m.gmane-mx.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by ciao.gmane.io with smtp (Exim 4.92) (envelope-from ) id 1j2mzO-0009x2-Dr for gcsg-supervision@m.gmane-mx.org; Sat, 15 Feb 2020 03:15:26 +0100 Original-Received: (qmail 1792 invoked by uid 89); 15 Feb 2020 02:15:52 -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 1785 invoked from network); 15 Feb 2020 02:15:51 -0000 In-Reply-To: X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrjedugdegfecutefuodetggdotffvucfrrhhofhhilhgvmecupfgfoffgtffkveetuefngfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkjghfrhgfgggtgfesthhqredttderjeenucfhrhhomhepfdfnrghurhgvnhhtuceuvghrtghothdfuceoshhkrgdqshhuphgvrhhvihhsihhonhesshhkrghrnhgvthdrohhrgheqnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuth Xref: news.gmane.io gmane.comp.sysutils.supervision.general:2873 Archived-At: >I don't generally question people that are this far above my weight class >on a topic - but I'm pretty sure this [1] implies that pid 1 is not a >requirement. Of course, you can run runsvdir directly under a different init. But that requires a bit of work: you now need to find another way to run your stage 1, and also your stage 3 when shutting down the container. Stages 1 and 3 are an integral part of using runit as an init system instead of just a supervision mechanism (which the runsvdir invocation in stage 2 is), so if you can't run them because you can't run the runit binary because it's not pid 1, you need to work around that. And it's not entirely trivial; to accomplish something similar in s6, I had to write a whole specific package, s6-linux-init. innerspacepilot wants to use runit with the least possible amount of effort, so rewriting a significant portion of the init sequence doesn't sound like a good match. ;) >I'm also confused why my suggestion would be put down so harshly outside o= f >the possible pid 1 issue. Sorry if I appeared hostile, that was not my intention; I tend to be blunt and terse when something seems obvious to me. I just wanted to stress that any alternative solution to changing the lxc config will be more costly, one way or another. -- Laurent