From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2863 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Casper Ti. Vector" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit SIGPWR support Date: Fri, 14 Feb 2020 21:15:44 +0800 Message-ID: <20200214131544.tcvmh7tqu4hu2gul@CasperVector> References: <20200131043919.GF12551@cathexis.xen.prgmr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="53204"; mail-complaints-to="usenet@ciao.gmane.io" To: supervision@list.skarnet.org Original-X-From: supervision-return-2452-gcsg-supervision=m.gmane-mx.org@list.skarnet.org Fri Feb 14 14:15:54 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 1j2aoz-000Dec-RQ for gcsg-supervision@m.gmane-mx.org; Fri, 14 Feb 2020 14:15:53 +0100 Original-Received: (qmail 13726 invoked by uid 89); 14 Feb 2020 13:16:19 -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 13719 invoked from network); 14 Feb 2020 13:16:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=qQ+as/TUiGL8b3J8BXInJsnmmsVZlg2IaIWfvfGzXMU=; b=WrSrmDvBnyny9k6I5VfBLDN8nv/oVjoGszxkrWmT58xxnkLqZYMG+6I03FvU43tZBK reRKEb/arFQgqTNJyZY5vooYlEYAD81R33S0Im0w56qhVgssYeySR0/qB/MOT7N++Nj0 T9jAoPJ8ZvqX9zOWwW5feUdIfdPb0GNtwC56/0lc2HhA3y0DjlmSPI0W1VpxHtwfykFh bE2WTLWoTlE09WPkyjn9OpXwDjhvm53Qkea/emE7h5RZwmrxcWVKtswWiUui4CmG4fne XnfQg/mJ6Bqyz6Jyllak7ow6gY+AOpuBAgvuz3mGwJWUtplTV6MziaNt0SU4C+Ke2eIA uJfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to; bh=qQ+as/TUiGL8b3J8BXInJsnmmsVZlg2IaIWfvfGzXMU=; b=npxkYvnlHmFa7h6AmyKKUjUCB+GVVWN2YL5qaSKDJW0+blmPIQmrqCTLwPWgTyTmxG urrfEhuktm415q4nKBxRtPTlWsdJMHsisXIkHT1FsO+yjJ/8rCBy0taapnBXHMNcM+ma WPLaj58VFDAfFRAqXMnNUS+f04t9GPGudTQAU3jMv6mKtUWacD7AtyQiyV1zEceOGBUt JPA+qMepuM2hLzvPAT8N/PIb+oazC0qXo7/MxxHeVooMgnodLRv/qFrd3aYcZJz9y25u SsZiKCipk/buYbPxr377qR8Vsv6owqP2gmLoPF+lgXW5fu4OlME6PJhSHkEobs45Ojze jW8A== X-Gm-Message-State: APjAAAWHC/wzIcMlqHhFHYfkBaQT39KSAYP4+sP60NofMRg7p9qVfJfU Nzo/Gv9Tofb1cZHrfNbk5j5z0PCK X-Google-Smtp-Source: APXvYqzwp/zGXUhtHcX7PqbXJWwIFPf3cpxNMnQbseLdqJESihrw1Lp9mpq++vumFvu+eIX+8XWULg== X-Received: by 2002:adf:e984:: with SMTP id h4mr4103216wrm.275.1581686149382; Fri, 14 Feb 2020 05:15:49 -0800 (PST) X-Google-Original-From: "Casper Ti. Vector" Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: Xref: news.gmane.io gmane.comp.sysutils.supervision.general:2863 Archived-At: On Wed, Feb 12, 2020 at 05:25:56PM +0300, innerspacepilot wrote: > Why not just make runit systems run inside containers out of the box? > We are talking about one/two lines of code. Likewise `lxc.signal.halt' only needs one/two lines of code. It is also a interface with well-defined semantics. Modifying runit source code touches the implementation, with all the potential coupling between modules and/or between submodules. So the increase in total complexity of the system is almost certainly smaller when using `lxc.signal.halt'. > Why can't we be just a little bit more friendly to each other? Let's see some more examples. Some daemons (eg. mysqld and php-fpm) use a signal other than SIGTERM for graceful shutdown, and s6 uses a `down-signal' file (similar to `lxc.signal.halt') for these daemons. Instead of modifying the daemons, we configure s6 specially; likewise, here I would definitely prefer `lxc.signal.halt'. -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C