supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* socket-activate is published [was: Re: listen(1)]
       [not found] <87twesty2o.fsf@alice.fifthhorseman.net>
@ 2019-02-15 16:04 ` Daniel Kahn Gillmor
  0 siblings, 0 replies; only message in thread
From: Daniel Kahn Gillmor @ 2019-02-15 16:04 UTC (permalink / raw)
  To: supervision

[-- Attachment #1: Type: text/plain, Size: 1180 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-02-15 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87twesty2o.fsf@alice.fifthhorseman.net>
2019-02-15 16:04 ` socket-activate is published [was: Re: listen(1)] Daniel Kahn Gillmor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).