From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2935 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: Sat, 04 Apr 2020 21:29:04 +0000 Message-ID: References: <20200401142122.GA30742@mail.hallyn.com> <20200401152832.GA31205@mail.hallyn.com> <20200401162600.GA31582@mail.hallyn.com> <2771eb82-9e19-06a7-d15c-28633971d8b2@ntlworld.com> <20200404154851.GC698@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="43042"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: eM_Client/7.2.37929.0 To: Supervision Original-X-From: supervision-return-2524-gcsg-supervision=m.gmane-mx.org@list.skarnet.org Sat Apr 04 23:29:06 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 1jKqLi-000B1T-Ns for gcsg-supervision@m.gmane-mx.org; Sat, 04 Apr 2020 23:29:06 +0200 Original-Received: (qmail 30870 invoked by uid 89); 4 Apr 2020 21:29:30 -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 30863 invoked from network); 4 Apr 2020 21:29:30 -0000 In-Reply-To: <20200404154851.GC698@mail.hallyn.com> X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrtdekgdduheelucetufdoteggodftvfcurfhrohhfihhlvgemucfpfgfogfftkfevteeunffgpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfgjfhhrfgggtgfgsehtqhertddtreejnecuhfhrohhmpedfnfgruhhrvghnthcuuegvrhgtohhtfdcuoehskhgrqdhsuhhpvghrvhhishhiohhnsehskhgrrhhnvghtrdhorhhgqeenucffohhmrghinhepshhkrghrnhgvthdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht Xref: news.gmane.io gmane.comp.sysutils.supervision.general:2935 Archived-At: >Yes it sounds like I completely misread the earlier emails, sorry about >that. Now, looking at http://skarnet.org/software/s6/notifywhenup.html, >I'm probably not reading that quite right, but it seems to tie the >proposal to the 'notifcation-fd' file in the service directory, making >it a bit less general. The notification-fd file is for s6-supervise, i.e. s6's implementation of a supervisor. It is meant to make the fd number configurable on the supervisor side, to allow daemons to use whatever fd they choose. On the daemon side, you can use any option you like to tell the daemon what fd it should write to. It has nothing to do with s6, and I have no recommended policy for daemons. > s6-log however uses the -d argument to pass the >fd, so I'll go with that. -d works for s6-log and a few others of my programs. For others, -d is already used for something else, so I use another option. I really suggest you don't try to standardize a way to tell daemons what fd to use. No method will be universal, there will always be some obscure daemon that will conflict with it. -- Laurent