personal-dns/docker-entrypoint.sh
Knut Ahlers ba5295e923
Add metrics
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-01-25 20:18:05 +01:00

11 lines
258 B
Bash
Executable file

#!/usr/local/bin/dumb-init /bin/bash
set -euxo pipefail
# No influx credentials present, don't use metrics sender
[[ -n ${INFLUX_HOST:-} ]] ||
exec named -c /etc/bind/named.conf -g
# Start bind
bind-log-metrics <(
named -c /etc/bind/named.conf -g 2>&1
)