From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26459 invoked from network); 23 Oct 2020 17:04:01 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 23 Oct 2020 17:04:01 -0000 Received: (qmail 5642 invoked by uid 89); 23 Oct 2020 17:04:24 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 5632 invoked from network); 23 Oct 2020 17:04:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; s=default; d=troubleshooters.com; b=h2/3BqizEsyVhF7Hrshe5b22mMX2YG1uoJw1vLz5nY/2Ziy/ItrA8OFpsq015Mm8WEuX07uplHCMHip5uvPSEy6BDavCNz8P/062IsLfSRhxbAMqR4+PHd3Kk7OP1BMoJ7j+/196Bpv0oW9uYhOKnceVw6qnb7LBseYe7gcmk7I=; DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; d=troubleshooters.com; s=default; t=1603472636; bh=VHytxOK8rOu/KQXpTt3/ou+SQiw=; l=1431; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=LjWBIPDbMEdBmemnF7vweZ96hATNp1kxPA8Y0wMWHBppcxDWLlnOOubaRgef3Z0q8 VgPhPpjEtNOAewt/ESm9wcW+BjHQTYeuHGMG/l5MplmP82nU+1YuSUaJGc+oK3bPi+ 0RY21HiYt/E0kd+GOZtKYvVXzYHrKjAQ7pyW3BMQ= X-Originating-IP: [184.90.157.212] Date: Fri, 23 Oct 2020 13:03:55 -0400 From: Steve Litt To: supervision@list.skarnet.org Subject: Re: External health Check Process Message-ID: <20201023130355.6c575791@mydesk.domain.cxm> In-Reply-To: References: <20201022142829.788f4da5@flunder> <20201022200317.52224023@mydesk.domain.cxm> <20201023092753.517078df@flunder> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 23 Oct 2020 13:44:55 +0000 "Laurent Bercot" wrote: > >I just miss the elegance of the solution: I personally want to model > >one service with one s6 service. For me it would mean thinking about > >a wrapper around s6 to get that. Maybe I get now the slew thing. > > The thing is, s6 is a *process supervision* suite, so one s6 > "service" is really one long-running process. When you want health > checks, you have two long-running processes: your daemon, and your > health checker. So two s6 "services" is really the most elegant, most > idiomatic and most natural solution. > > What you could have, on the other hand, is a s6-rc bundle, that > contains > both your daemon and your health checker: so you would be able to > handle both the daemon and the health checker (2 longruns) with a > single s6-rc/svctl command, using the name of the bundle. > > It's probably something that I can add to the next version of s6-rc: > a command or an option to automatically add a health checker service > to a longrun that is declared in the database, so you wouldn't have to > write the health checker longrun manually. How does that sound? I'd poll s6 users, and if less than 1/2 eagerly want this new feature, I'd leave well enough alone. SteveT Steve Litt Autumn 2020 featured book: Thriving in Tough Times http://www.troubleshooters.com/thrive