From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2510 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Kahn Gillmor Newsgroups: gmane.comp.sysutils.supervision.general Subject: socket-activate is published [was: Re: listen(1)] Date: Fri, 15 Feb 2019 11:04:41 -0500 Message-ID: <87imxlt4va.fsf@fifthhorseman.net> References: <87twesty2o.fsf@alice.fifthhorseman.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="246226"; mail-complaints-to="usenet@blaine.gmane.org" To: supervision@list.skarnet.org Original-X-From: supervision-return-2100-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Feb 15 17:04:58 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 1gufz0-0011es-KM for gcsg-supervision@m.gmane.org; Fri, 15 Feb 2019 17:04:58 +0100 Original-Received: (qmail 20809 invoked by uid 89); 15 Feb 2019 16:05:19 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 20802 invoked from network); 15 Feb 2019 16:05:18 -0000 In-Reply-To: <87twesty2o.fsf@alice.fifthhorseman.net> Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEXEK/AhYJKwYBBAHaRw8BAQdAr/gSROcn+6m8ijTN0DV9AahoHGafy52RRkhCZVwxhEe0K0Rh bmllbCBLYWhuIEdpbGxtb3IgPGRrZ0BmaWZ0aGhvcnNlbWFuLm5ldD6ImQQTFggAQQIbAQUJA8Jn AAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgBYhBMS8Lds4zOlkhevpwvIGkReQOOXGBQJcQsbzAhkB AAoJEPIGkReQOOXG4fkBAO1joRxqAZY57PjdzGieXLpluk9RkWa3ufkt3YUVEpH/AP9c+pgIxtyW +FwMQRjlqljuj8amdN4zuEqaCy4hhz/1DbgzBFxCv4sWCSsGAQQB2kcPAQEHQERSZxSPmgtdw6nN u7uxY7bzb9TnPrGAOp9kClBLRwGfiPUEGBYIACYWIQTEvC3bOMzpZIXr6cLyBpEXkDjlxgUCXEK/ iwIbAgUJAeEzgACBCRDyBpEXkDjlxnYgBBkWCAAdFiEEyQ5tNiAKG5IqFQnndhgZZSmuX/gFAlxC v4sACgkQdhgZZSmuX/iVWgD/fCU4ONzgy8w8UCHGmrmIZfDvdhg512NIBfx+Mz9ls5kA/Rq97vz4 z48MFuBdCuu0W/fVqVjnY7LN5n+CQJwGC0MIA7QA/RyY7Sz2gFIOcrns0RpoHr+3WI+won3xCD8+ sVXSHZvCAP98HCjDnw/b0lGuCR7coTXKLIM44/LFWgXAdZjm1wjODbg4BFxCv50SCisGAQQBl1UB BQEBB0BG4iXnHX/fs35NWKMWQTQoRI7oiAUt0wJHFFJbomxX Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2510 Archived-At: --=-=-= Content-Type: text/plain Hi folks-- On Wed 2016-08-10 11:58:55 -0400, Daniel Kahn Gillmor wrote: > The tool is a binary called "listen", which tries to open a series of > sockets and then exec()'s another command with those file descriptors > already open. It adopts a convention for identifying those file > descriptors from systemd's socket activation features, so that it can be > used to supervise any daemon that follows the same convention. Just wanted to let folks on this list know that if you are interested in this, i've renamed "listen" to "socket-activate", and finally gotten around to publishing an implementation for broader general consumption. It's at https://gitlab.com/dkg/socket-activate, and it's a very simple python3 implementation of the supervisor's side of the sd_listen_fds(3) convention. It depends only on python3's stdlib, so while it's not as minimal as a C implementation would be, it's still pretty lean. In discussions over on https://bugs.debian.org/922353, Guillem Jover suggested that start-stop-daemon might also be willing to accept comparable functionality to support the same convention, to enable support for daemons that use it. Happy hacking, --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQTJDm02IAobkioVCed2GBllKa5f+AUCXGbjGQAKCRB2GBllKa5f +G6dAQDbPfDPzXlBe5wbY8KZxYOl4kL2ndO/SvD+uGwDzujXpAEAwFI59fWfHYJf dnb9BZzAuIUOKBRP2QYYpyQMeqvNgQY= =EN4j -----END PGP SIGNATURE----- --=-=-=--