]> git.pld-linux.org Git - packages/unbound.git/blobdiff - unbound.init
systemd units, usable defaults
[packages/unbound.git] / unbound.init
index 38df892a24d0601a9d932d7ec46d3403957f0eb9..c14921234c58b6b58b06b7b1a09089cab6ab111c 100644 (file)
@@ -36,6 +36,10 @@ start() {
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/unbound ]; then
                msg_starting "Unbound"
+
+               # prepare the root key file
+               /usr/sbin/unbound-anchor -v -a /var/lib/unbound/root.key
+
                daemon /usr/sbin/unbound \
                        -c /etc/unbound/unbound.conf $UNBOUND_OPT </dev/null
                RETVAL=$?
This page took 0.097358 seconds and 4 git commands to generate.