socket-activate is published [was: Re: listen(1)]

From: Daniel Kahn Gillmor <>
Date: Fri, 15 Feb 2019 11:04:41 -0500

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, 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, 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,


Received on Fri Feb 15 2019 - 16:04:41 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC