syslog-ng: detect disabled IPv6 on loopback and fallback to IPv4 12619/head
authorKarel Kočí <cynerd@email.cz>
Fri, 26 Jun 2020 09:37:32 +0000 (11:37 +0200)
committerKarel Kočí <cynerd@email.cz>
Fri, 26 Jun 2020 11:04:46 +0000 (13:04 +0200)
commit43a8f7072ef401eaebe7f9e268cbb38085c9f384
tree7cf6608f712a13eebc059c3692f29ea8d145ed30
parentc7dca50f110d5458ceff21a2274eddae2aae119b
syslog-ng: detect disabled IPv6 on loopback and fallback to IPv4

Binding in default to IPv6 is preferable but it can be disabled in
kernel and that prevents syslog-ng to start. This setup should not be
that common but syslog is very important service and should survive
that.

This introduces new plugin defining source generator
`network_localhost`. This is used instead of original network source.

Signed-off-by: Karel Kočí <cynerd@email.cz>
admin/syslog-ng/Makefile
admin/syslog-ng/files/scl/network_localhost/detect.sh [new file with mode: 0755]
admin/syslog-ng/files/scl/network_localhost/plugin.conf [new file with mode: 0644]
admin/syslog-ng/files/syslog-ng.conf