[chrony-dev] [PATCH] Add support for systemd socket activation

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


Hi folks,

Please consider this patch to add support for using NTP and NTS-KE server
sockets passed to chrony from the systemd service manager.

For context, we're currently testing out this patch as part of moving
chrony to our tubular system for routing client traffic to services (
https://blog.cloudflare.com/tubular-fixing-the-socket-api-with-ebpf/).

Aside from our specific use case, socket activation is quite common in
services (see the list at
https://www.redhat.com/sysadmin/socket-activation-podman) and we hope that
others may benefit from the patch as well. More info on socket activation
is available from the links at the bottom of
https://www.freedesktop.org/software/systemd/man/latest/systemd.socket.html.

The patch only adds support for socket activation for the IPv4 and IPv6 NTP
and NTS-KE server sockets since those are relevant for our use case.
However, adding socket activation for the command socket is possible as
well.

The patch is also available for review convenience in this PR:
https://github.com/lukevalenta/chrony/pull/1. Any feedback on the patch is
welcome and appreciated!

Thanks,
Luke

---


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/