]> source.dussan.org Git - rspamd.git/commit
[Fix] Support listening on systemd sockets by name 3265/head
authorPeter Wu <peter@lekensteyn.nl>
Sat, 15 Feb 2020 19:05:37 +0000 (19:05 +0000)
committerPeter Wu <peter@lekensteyn.nl>
Sat, 15 Feb 2020 20:05:09 +0000 (20:05 +0000)
commit52627a18288ba460387444d8c2f0fa2477b1a286
treec0e5858de77d95f51b6d176124d1bdd010a1612c
parent3535e32ecdfc118c4d03979a182f81e7e33beb7f
[Fix] Support listening on systemd sockets by name

* Add support for looking up sockets by the systemd socket name, e.g.
  `systemd:rspamd-proxy.socket` or the name from `FileDescriptorName`.
  https://www.freedesktop.org/software/systemd/man/sd_listen_fds.html
* Replace EOVERFLOW error code to avoid confusing error messages.

Fixes: #2035
src/libserver/cfg_utils.c
src/rspamd.c