From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2818 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Oliver Schad Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: The "Unix Philosophy 2020" document Date: Sat, 28 Dec 2019 19:16:09 +0100 Organization: Automatic Server AG Message-ID: <20191228191609.33cdbfde@flunder> References: <20190831130730.ki6ma7i5curucowe@caspervector> <20190901091157.bjtfhqq6d2rg75yo@caspervector> <20190927083816.tectynx7dzlfcvb7@caspervector> <20191012173743.drzlgnrw4hib6hh4@caspervector> <20191117062644.lt6wfmqwijqqhc5w@caspervector> <20191226175258.o2nsregew6tlqlbu@caspervector> <20191227112309.3fow6vynss2ifw4t@caspervector> <20191228005407.1bf2a764@dickeberta> <20191228005654.4b24be30@dickeberta> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/mqc6rpJDpDm4/zxnTAVWmFh"; protocol="application/pgp-signature" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="105737"; mail-complaints-to="usenet@blaine.gmane.org" To: supervision@list.skarnet.org Original-X-From: supervision-return-2407-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Dec 28 19:16:13 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 1ilGdI-000RNw-SE for gcsg-supervision@m.gmane.org; Sat, 28 Dec 2019 19:16:12 +0100 Original-Received: (qmail 30000 invoked by uid 89); 28 Dec 2019 18:16:38 -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 29990 invoked from network); 28 Dec 2019 18:16:38 -0000 In-Reply-To: X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2818 Archived-At: --Sig_/mqc6rpJDpDm4/zxnTAVWmFh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 28 Dec 2019 12:19:30 -0300 Guillermo wrote: > El vie., 27 dic. 2019 a las 20:56, Oliver Schad escribi=C3=B3: > > > > Sorry, I have to correct that a bit: you can use the freezer cgroup > > as I did, but there is no guarantee, that you can successfully kill > > a freezed process. =20 >=20 > You can't? So the 'kill -9' command in your script might not work > while the cgroup's state is "FROZEN"? There are corner cases, where frozen processes can't be killed. Systemd has the race condition implemented. Maybe you can react on that, unfreeze these processes and kill them with the race-condition. > > So you can decide: > > > > 1) race-condition > > 2) unkillallable processes without race-condition =20 >=20 > AFAIK systemd does not (and will not?) use the freezer cgroup > controller, so I guess it's 1) in that case :) Exactly. I've checked the code as well. Read through PID list and kill them one by one with time windows in between, where $SOMETHING could happen. Best Regards Oli --=20 Automatic-Server AG =E2=80=A2=E2=80=A2=E2=80=A2=E2=80=A2=E2=80=A2 Oliver Schad Gesch=C3=A4ftsf=C3=BChrer Turnerstrasse 2 9000 St. Gallen | Schweiz www.automatic-server.com | oliver.schad@automatic-server.com Tel: +41 71 511 31 11 | Mobile: +41 76 330 03 47 --Sig_/mqc6rpJDpDm4/zxnTAVWmFh Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl4Hm+kACgkQRilxUUuWlvCN7gCfQSqGV3JVWJamAnzgk1jwxaKf K/AAoL7t8Zk70ADSl6t6bPsUW1bGGeRu =uY6R -----END PGP SIGNATURE----- --Sig_/mqc6rpJDpDm4/zxnTAVWmFh--