From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2870 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: John W Higgins Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit SIGPWR support Date: Fri, 14 Feb 2020 11:08:18 -0800 Message-ID: References: <1beb6e35-d4be-60b8-fc52-af666c4fffe3@gmx.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005bb62d059e8dee56" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="121866"; mail-complaints-to="usenet@ciao.gmane.io" To: supervision@list.skarnet.org Original-X-From: supervision-return-2459-gcsg-supervision=m.gmane-mx.org@list.skarnet.org Fri Feb 14 20:08:32 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 1j2gKG-000VL6-HK for gcsg-supervision@m.gmane-mx.org; Fri, 14 Feb 2020 20:08:32 +0100 Original-Received: (qmail 23470 invoked by uid 89); 14 Feb 2020 19:08:58 -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 23463 invoked from network); 14 Feb 2020 19:08:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=cnZpA8BBp/so0bgQm7w5lW/TGhkzWtgSXx3IUhbvMMY=; b=hq4oiodOoC4IKeOAnF69HZ7TVpzY0VwukGtPGtosdm1WfvlbAtuuwxnlcHBwLGyzD7 aBB0r+q0cHsGi5Cda+UaAbfIYSPrtCRKHSppPnKvUPsoeqyyWUugF4ERBOFhz/us/2Me mwBUy7wjlN9Brka4p03jz9MG716e9L7YMLHw9EkDLvWpTw7+nLIACBBeCk+HieE7SDJF uL33ZeSmMh01INKKVndJEuqsRjJl199G5B+6yyjjroeGj03ZIUzcsk5P/FrzJVqxdAzW C5sCD5Rxhk8dE1JsEyfsIkxsfdEC5egaYY7zQx418I/XLgw29ZAuyC67ZTzG8hWuYGHV pLDg== 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=cnZpA8BBp/so0bgQm7w5lW/TGhkzWtgSXx3IUhbvMMY=; b=OTn4svdmBvYg8lE2SnUHZr+sGOk6E1Jf4BDtCjdbbetdcFNjw5UEeI4kNWiTObap4x 1pihwRDfXT/ug8dX0tHJpvA7jKqO2zFkzVy4NyLBXwhuVs6Sfm8D6cnXW1Ccpjv0HWuu witBXK/haiN3Ilox7ypWtBytl65vJXe+eD8yEjBloU6LlFKpPSrkdz8k9XIQ+2T8bXeY ceXWFBjyI8Gta0/KziEXpaymp8N7BeF7AgJ+SSBUmMjbO8EusJ4KIXN6S8hG7evR9DRY Q0z2s6xQWgHX4UkGjvqcqK0j51L4yJpW+9KL6PnziLL7iErbO3gw3pOAFUFv1wyXdBU8 jR3g== X-Gm-Message-State: APjAAAW4xIEbsT0AhAS9W/wWwMujYuY4gBBDaM+AdK+rTKSnk5m79AhG KWDhy4YLUZmXqwDgQQEBX4dTBCNEovbPwTTsW8B3SDfu X-Google-Smtp-Source: APXvYqzxGKFXNJRtWkZtR7HvQtmiSU/5kMr53hUGZ3bI3C2FCQQ5xlHr5KJRaFQm40+VK5FgTCchRURWQiSH9TozIsg= X-Received: by 2002:a05:6808:ab1:: with SMTP id r17mr2775924oij.141.1581707310117; Fri, 14 Feb 2020 11:08:30 -0800 (PST) In-Reply-To: Xref: news.gmane.io gmane.comp.sysutils.supervision.general:2870 Archived-At: --0000000000005bb62d059e8dee56 Content-Type: text/plain; charset="UTF-8" Good Day, On Wed, Feb 12, 2020 at 6:26 AM innerspacepilot wrote: > > Why not just make runit systems run inside containers out of the box? > We are talking about one/two lines of code. > > The much better option here (in terms of playing well with others) would be this https://github.com/Yelp/dumb-init A very small pid 1 that sits just on top of your now pid 2 runit and will rewrite signals for you [1] so that SIGPWR magically becomes SIGTERM for runit. No modification to either side. That's a win-win John W Higgins [1] - https://github.com/Yelp/dumb-init#signal-rewriting --0000000000005bb62d059e8dee56--