From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2867 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: innerspacepilot Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit SIGPWR support Date: Fri, 14 Feb 2020 17:06:40 +0300 Message-ID: <685e7449-48e8-715e-eb1c-6751542f3500@gmx.com> References: <20200131043919.GF12551@cathexis.xen.prgmr.com> <20200214131544.tcvmh7tqu4hu2gul@CasperVector> <1f198ed8-3682-26cd-e8d5-2efc412afde2@gmx.com> <20200214135754.lt5vdpcvpql5tplt@CasperVector> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="30096"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 To: supervision@list.skarnet.org Original-X-From: supervision-return-2456-gcsg-supervision=m.gmane-mx.org@list.skarnet.org Fri Feb 14 15:06:44 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 1j2bcC-0007k5-Ru for gcsg-supervision@m.gmane-mx.org; Fri, 14 Feb 2020 15:06:44 +0100 Original-Received: (qmail 16260 invoked by uid 89); 14 Feb 2020 14:07:11 -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 16250 invoked from network); 14 Feb 2020 14:07:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1581689202; bh=sbIH2arv4Jty2/VP4oOWNznmgbqCrAdDElqR6E/hSts=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=Uq/OeHM4T1NnOf6PAfoQwoF/qSR5Z8dR/y/nBSfL2vgL/k/OWzpdzkVuyhrsaSuMZ dwXCDjM3wxHbgud9aplzYySKEIBsRkhn5wg+zaIzffdn1dDccx3moWiW4uAulELfNh wpnaXwc/kzJ+N46CDBW7XAfvBmRufzeUaj2V+gis= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c In-Reply-To: <20200214135754.lt5vdpcvpql5tplt@CasperVector> Content-Language: en-US X-Provags-ID: V03:K1:UBr7dVZPSEV4tXvTTAAnaMjRBwfn5lZqLeI8Q058zB/3c12OQnX 8g67stxhJfvYDDqY3ctcTNUxNLE6UTXPWopgKbPZps7K4go2Or3L2DJFTzy5Nnz9s8j5H1A pe84Yto7Yzn/jMYDTtVJX/lC318LNV5RgL0iyH9SESYo1nzsJEJWaNrDUpzWuOlZMlyMcGQ 6yTxvIm8jFpE8YyiVBwMw== X-UI-Out-Filterresults: notjunk:1;V03:K0:1XC4ZnQEmPk=:Qzc1+z6iV6PjqaNFcPdgNX vVotwpFRPo5EA/LobuKdFJfT1ItFgcuqEge9drcoNg9q0bhhPJ5t0b5szFCFJz750JuE7XngY uNnJ23CdrcnEN5t0IqruCbOAaeyxJ8yXcHXq9jvIxcvkB/cGdENOtI2x6lqN5QOj/CEHTGUjv G2nVqz43qzkQYiGtbhP9NZv3x+pGQRj9GmOD+twULg0943XbF96uMzppyx2jjFBKArhpDj4bm l8tE6Hy7PyfSMf8GdEdbS2IAbUSE2csM3p79tVN77yfu1re52Mdd7j0yflVUA3RbkHUn4x5T0 x7NQdS7zNF4hpeiJ2sNec7en4ox2SJebNW+htCe7GCNlGrlB4etsBa8PR1Zd9HtBKXf7U0mtC lAgqpfKirw98OaeDlk+gZ+TJwT7gaaHtwCyR7WIqfC7TWT/cq+d08FuqVS+wnjIjPsXTYiUrF xT6wP0rwoCqUDtlnAzjOTJD37/lFpYZXVH8O9h1Kt2EDpr+E5nPcgazwL3XSvmhTUKMTGyM63 xvZliJ3c5w6idBWiRwtBNK1eM4Rjge9fOeN1szlYXsU9/+RqNkd90OdArxCW09Kde3PQAWkUI HU0yUONd7MEGhLgk4H3Z6Bkg69lMRr5bSAlkU6zcr86ghcZwm7mTmOWLfWunFOJPeR9DbNF73 u+OjAmgRMM6YQHXYdQcMXRUxx5K/yiJQuW6X6ksff5HDavRlP/aFkTVZ/47pt7EFDOU2P1biz 1kmJiFA8dMgc/qJv4CU2+8eRx/hVYYPAK5j+Tx4dOm1xgAwoHsS4hJVjFgv5oh1y9hcj4cOv Xref: news.gmane.io gmane.comp.sysutils.supervision.general:2867 Archived-At: Documentation says: " Signals runit only accepts signals in stage 2. If runit receives a CONT signal and the file /etc/runit/stopit exists and has the execute by owner permission set, runit is told to shutdown the system. if runit receives an INT signal, a ctrl-alt-del keyboard request is triggered. " If you read it carefully, there is NO signal for shutdown. Or lxd should also create file /etc/runit/stopit and set permissions for that? Also what complexity you are talking about? runit.c is only 346 lines long= . On 14.02.2020 16:57, Casper Ti. Vector wrote: > On Fri, Feb 14, 2020 at 04:39:28PM +0300, innerspacepilot wrote: >> You mean that adding few lines of code in one place is worse than many >> users of many distros must configure their containers? >> I can configure that myself, but I don't want every user of runit drive= n >> container to walk this path. Is it necessary? >> It adds complexity to users, and that means users will choose other >> distros which just work. > The burden is just a few lines of code anyway, and user only need to > learn it once. It is also easily doable with some templating mechanism. > >> Also there is a huge lack of documentation about it on the net, >> especially on signals that runit accepts. > . > Took me less than one minute. >