#!/bin/sh set -e # Copy the static root trust anchor into the writable run-dir. # unbound updates auto-trust-anchor-file in place (RFC5011 rollover), so it # must live on a writable filesystem (tmpfs when running with read_only). cp -f /etc/unbound/root.key /run/unbound/root.key # Fail fast on broken drop-in configs from /config before starting. unbound-checkconf /etc/unbound/unbound.conf exec unbound -d -c /etc/unbound/unbound.conf