From 215d80f6012ec2ce0609a846ce8fe321868dd1e6 Mon Sep 17 00:00:00 2001 From: Jens Brey Date: Sat, 9 Apr 2022 16:50:37 +0200 Subject: [PATCH] Added unbound-run file for S6 --- one-container/pihole-unbound/unbound-run | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 one-container/pihole-unbound/unbound-run diff --git a/one-container/pihole-unbound/unbound-run b/one-container/pihole-unbound/unbound-run new file mode 100644 index 0000000..057d635 --- /dev/null +++ b/one-container/pihole-unbound/unbound-run @@ -0,0 +1,25 @@ +#!/usr/bin/with-contenv bash + +s6-echo "Starting unbound" + +NAME="unbound" +DESC="DNS server" +DAEMON="/usr/sbin/unbound" +PIDFILE="/run/unbound.pid" + +HELPER="/usr/lib/unbound/package-helper" + +test -x $DAEMON || exit 0 + +# Override this variable by editing or creating /etc/default/unbound. +DAEMON_OPTS="" + +if [ -f /etc/default/unbound ]; then + . /etc/default/unbound +fi + +$HELPER chroot_setup +$HELPER root_trust_anchor_update 2>&1 | logger -p daemon.info -t unbound-anchor + +$DAEMON -d $DAEMON_OPTS +