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

Attachment: signature.asc
Description: PGP signature

Reply via email to