From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2930 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Laurent Bercot" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Readiness notification exemplars Date: Wed, 01 Apr 2020 17:13:06 +0000 Message-ID: References: <20200401142122.GA30742@mail.hallyn.com> <20200401152832.GA31205@mail.hallyn.com> <20200401162600.GA31582@mail.hallyn.com> Reply-To: "Laurent Bercot" Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="86991"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: eM_Client/7.2.37929.0 To: Supervision Original-X-From: supervision-return-2519-gcsg-supervision=m.gmane-mx.org@list.skarnet.org Wed Apr 01 19:13:08 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 1jJgvL-000MPg-Nj for gcsg-supervision@m.gmane-mx.org; Wed, 01 Apr 2020 19:13:07 +0200 Original-Received: (qmail 18684 invoked by uid 89); 1 Apr 2020 17:13:33 -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 18677 invoked from network); 1 Apr 2020 17:13:33 -0000 In-Reply-To: <20200401162600.GA31582@mail.hallyn.com> X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrtddvgddutdeiucetufdoteggodftvfcurfhrohhfihhlvgemucfpfgfogfftkfevteeunffgpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfgjfhhrfgggtgfgsehtqhertddtreejnecuhfhrohhmpedfnfgruhhrvghnthcuuegvrhgtohhtfdcuoehskhgrqdhsuhhpvghrvhhishhiohhnsehskhgrrhhnvghtrdhorhhgqeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht Xref: news.gmane.io gmane.comp.sysutils.supervision.general:2930 Archived-At: >There are pros and cons, but you are arguing for parsing stdout for a >text message and/or using pidfiles (written to an fd). I'm arguing for none of these things. I'm arguing for daemons to write a newline to a fd of their choice, which is hardly anything difficult. And hardly anything difficult for a supervisor to implement (if you're going to say that it's "parsing stdout", then okay, but the parser fits in 20 lines of C). The fact that existing daemon behaviours can be used to trigger the mechanism without modification is a nice bonus that weighted in favor of that choice, but was hardly the only factor. >> I still don't think it would be a good idea. >It might not be. I'm still looking for good reasons why it wouldn't be. Well I just gave you a full e-mail of reasons why, if they're not good enough for you, I doubt anything will convince you. :P -- Laurent