[chrony-dev] [PATCH] Add support for systemd socket activation |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-dev] [PATCH] Add support for systemd socket activation
- From: Luke Valenta <lvalenta@xxxxxxxxxxxxxx>
- Date: Fri, 20 Oct 2023 13:31:42 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google09082023; t=1697823114; x=1698427914; darn=chrony.tuxfamily.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=fkoZ7jhNP8coSntQl1t2G/yQci6B5Eif4rJ5FHMiGtQ=; b=cbS9I4OzeMIIjwuL6PMSA4xrGLX915W5YhxVx3ihsfCywDPiz5JGhmjWKw4zvkm/SY nz5v40TbS1+AuUw2vJso9vpTQFA+LFwaQTivdinV9fPwAYORTApSjDuAImLBm4u0mTFF QtxzcukjzgZ7Pfca3/McCQwCec+8NZG+FcbS12DYPbKgQRTfLCm3fxnLsE9hTXerDGAe TaTfkvlaK4syoXNXYPSGyx2MR2g1HQG5dI+NsJgyCBFE8RLXVjJzfDvBWpuVm3H65895 a7RkzKNwez0mRw/hPJZ1ypvE4FKqspd9sRDDcUtlkSqVwGwI1ab62LS4YAOzuzrBO3QS hx3A==
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
---