From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2794 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Casper Ti. Vector" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: The "Unix Philosophy 2020" document Date: Fri, 27 Dec 2019 21:48:18 +0800 Message-ID: <20191227134818.wp67nzlukmcaviqn@CasperVector> References: <20190831130730.ki6ma7i5curucowe@caspervector> <20190901091157.bjtfhqq6d2rg75yo@caspervector> <20190927083816.tectynx7dzlfcvb7@caspervector> <20191012173743.drzlgnrw4hib6hh4@caspervector> <20191117062644.lt6wfmqwijqqhc5w@caspervector> <20191226175258.o2nsregew6tlqlbu@caspervector> <20191227112309.3fow6vynss2ifw4t@caspervector> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="38234"; mail-complaints-to="usenet@blaine.gmane.org" To: supervision@list.skarnet.org Original-X-From: supervision-return-2383-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Dec 27 14:48:26 2019 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1ikpyc-0009q8-P7 for gcsg-supervision@m.gmane.org; Fri, 27 Dec 2019 14:48:26 +0100 Original-Received: (qmail 4491 invoked by uid 89); 27 Dec 2019 13:48:52 -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 4484 invoked from network); 27 Dec 2019 13:48:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=EXu5QSHgafC23cUqd7pQuAF87q2C6/hbF6IC7EwGW9k=; b=kmjTPCB+Fx8zTOcmg9AsRDFuxoqRhy4Xs7EY0Nl0rv3mqUhztRxBC/zLfOJ1RN+7tE iBNht2pZb/fPOy+K9vyu6AJ1FbSvuzqISiTwtkWbl1a0rz+RcXX0JcKyfddqbFA9JacT w7q73SFEdRNpOQ5T/ECAMzRjVTJ7sxvC7ftARaZlI/fIXwLIJpZq6N6/pgNPswMCJsAG iWgjgMm2nDzLdgX+Hdc7rrioBRs9g3/U94aomW1/S/p+5G9mqcOrRiE2Hm/lYJjmEdyc vkfdeDjXKEFHAUHZHbPJ9lF3kT6QlZ0YmoWncya3WlrESg8/1ZTtoOea0jgj+o11x3Af nkPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to; bh=EXu5QSHgafC23cUqd7pQuAF87q2C6/hbF6IC7EwGW9k=; b=kJEw8ylnUEG5rSPb2LBwHCJlx1jkPU3J/SvbpGpbH+wS3ucWGehTCCLK5ReIrktvFi CkMXX3TFeHweTz/FNJOd2iKJ9hBRox9vV6YLoDvac6inj12b4FS48oqMj8ErXCjw50N2 BIqW/YSNpP1KgezuVR0Qi/400U4ev2Tu+zeRx8eW2Y8iTV8nVwZIuekunAtBImoWigLU tJ1F65L40EyjgXhFVk6g0+9I9e762pyse9UxCDNGx8j4E2hMViBN4BoEkMBv8QKOMGpE 3RuRMWcm3qXVAiInZgi7C867U8RbzmwlNO8MP5dJlInkzT/Fi6AbqA1+c1yC6N476xOG t0jw== X-Gm-Message-State: APjAAAXTRmwPHQPV3ihP6j75yUHxlS2iYbLbluw7syIOrYr/k9waD1I8 l2kZGaWrgCk/cO4eORzwvUXIHxKIgds= X-Google-Smtp-Source: APXvYqxImm/R1+1W450ftP6YS3jXeS4aj/m3rzJyLjt8bX2rMTMp2JgauxouVep0sy6GM7KI5VqFqg== X-Received: by 2002:a19:f701:: with SMTP id z1mr28843548lfe.13.1577454504137; Fri, 27 Dec 2019 05:48:24 -0800 (PST) X-Google-Original-From: "Casper Ti. Vector" Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2794 Archived-At: On Fri, Dec 27, 2019 at 12:32:27PM +0000, Laurent Bercot wrote: > Is there real pressure to have this? AFAIK, the only pressure is from systemd fanboys. But this is indeed a biggest criticism from them; we would be able to save quite a lot of flamewars if the feature was simply there. Nevertheless I understand the feature will be, frankly, a vase. > The problem with such a "babysitter" is that it would need to forward > signals, much like execline's trap program. It's ugly, and I'd rather > have people not do that any more than strictly necessary. We will also need to handle disgusting PID files for double-forking services. And in order to be safe in case the service crashes before the PID file is created, we will perhaps need some kind of startup deadline. A big can of worms. > As for cgroups-related chainloaders, I could probably write some in > s6-linux-utils, but wasn't the cgroups interface designed to make > sure those operations are trivial to implement as small scripts? Well, this is a good idea. I can even provide such library scripts in slew, but the libraries will be `rc'-specific, and not used in the traditional (exec()-based) sense of chainloading. > I don't, for several reasons, one of which is that Google's homemade > supervisor (which is... not great) is called "babysitter", and it > triggers cringey memories. :) -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C