Skip to content
Snippets Groups Projects
Commit aede98c2 authored by Daniel Kahn Gillmor's avatar Daniel Kahn Gillmor Committed by Ondřej Surý
Browse files

provide a way for systemd-supervised services to listen on TLS via socket activation

parent aaa44f19
Branches
Tags
No related merge requests found
......@@ -510,6 +510,8 @@ int main(int argc, char **argv)
}
if (!strcasecmp("control",socket_names[i])) {
control_fd = fd;
} else if (!strcasecmp("tls",socket_names[i])) {
array_push(tls_fd_set, fd);
} else {
array_push(fd_set, fd);
}
......
[Unit]
Description=Knot DNS Resolver TLS network listener
Documentation=man:kresd(8)
Before=sockets.target
[Socket]
ListenStream=853
FileDescriptorName=tls
Service=knot-resolver.service
[Install]
WantedBy=sockets.target
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment