Manual activation
-----------------
-If you wish to use manual activation without sockets, you have to grant
-the service the capability to bind to well-known ports. You can use a drop-in
-file.
+If you wish to use manual activation without sockets, you have to
+grant the service the capability to bind to well-known ports, and you
+should disable allocation of other sockets from systemd itself. You
+can use a drop-in file like so:
# /etc/systemd/system/kresd@.service.d/override.conf
[Service]
AmbientCapabilities=CAP_NET_BIND_SERVICE
+ Sockets=
+
+If you do this, make sure you've indicated which ports to bind to in
+/etc/knot-resolver/kresd.conf , and also do:
+
+ systemctl disable --now kresd.socket kresd-tls.socket 'kresd-control@*.socket'
Notes
-----