Received: from mx1.tetrasec.net (mx1.tetrasec.net [66.245.176.36]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id F2792781AC4 for <~alpine/devel@lists.alpinelinux.org>; Thu, 27 Aug 2020 15:13:22 +0000 (UTC) Received: from mx1.tetrasec.net (mail.local [127.0.0.1]) by mx1.tetrasec.net (Postfix) with ESMTP id 0F1C6FAB64; Thu, 27 Aug 2020 15:13:22 +0000 (UTC) Received: from ncopa-desktop.lan (67.63.200.37.customer.cdi.no [37.200.63.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: alpine@tanael.org) by mx1.tetrasec.net (Postfix) with ESMTPSA id B3F5BFAB63; Thu, 27 Aug 2020 15:13:20 +0000 (UTC) Date: Thu, 27 Aug 2020 17:13:14 +0200 From: Natanael Copa To: Rasmus Thomsen Cc: Francesco Colista , Leonardo , ~alpine/devel@lists.alpinelinux.org, =?ISO-8859-1?B?U/ZyZW4=?= Tempel Subject: Re: Use of supervise-daemon in Alpine Message-ID: <20200827171314.5bca06cf@ncopa-desktop.lan> In-Reply-To: <799e151a9764838b5b0e273da3626e471976edb7.camel@cogitri.dev> References: <3LLUI2KOULSYM.359WA6HATX45B@8pit.net> <20200821191507.7857010b@ncopa-macbook.copa.dup.pw> <799e151a9764838b5b0e273da3626e471976edb7.camel@cogitri.dev> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 27 Aug 2020 15:27:22 +0200 Rasmus Thomsen wrote: > On Thu, 2020-08-27 at 13:20 +0000, Francesco Colista wrote: > > 27 agosto 2020 14:49, "Leonardo" wrote: > > > > > > > So what should be the approach? I see: > > > > > > 1. let the developer choose between supervised/unsupervised daemon > > > > > > 2. provide two init scripts, supervised and unsupervised > > > > > > 3. provide an "hybrid" init script which has a configurable user > > > option > > > to choose between supervised/unsupervised daemon > > > > > > 4. other? > > > > > > I'm asking these questions because I got for the first time a MR > > > which > > > adopts solution 2, which I never saw so far. It seems to me that > > > solution 1 was adopted so far. > > > > > > Or if there's no single solution, which should be avoided? > > > > I would for the second option, because: > > > > 1. I'm the author of the MR :) > > 2. Is the most flexible solution: > > > > Option n.1 is a limitation, option n.3 is difficult to maintain > > if/when we are going to implement other supervisor, like s6. > > The second option allow also the two init to co-exists, which in some > > corner cases this might be wanted. > > I think in the majority of cases we don't need an unsupervised init > script (what's the rationale for having it in that MR (and what MR are > we talking about? :D)), since supervision has many advantges, as > mentioned in the thread already. IMHO it'd be best to just switch as > much as possible over to supervise-daemon before 3.13. But that would not give sysadmin/user the choice to die on error, which I fear will lead to nobody caring if the services are buggy or not. The "fix" is to restart the service. > I'd rather not > maintain two different sets of init scripts if possible. I agree with this. How about we fix supervise-daemon to accept an option or env var to respawn? -nc