]> git.pld-linux.org Git - packages/unbound.git/blobdiff - unbound.init
systemd units, usable defaults
[packages/unbound.git] / unbound.init
index eb8635f554535c598367d28d8014e2b57b56155b..c14921234c58b6b58b06b7b1a09089cab6ab111c 100644 (file)
@@ -36,7 +36,11 @@ start() {
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/unbound ]; then
                msg_starting "Unbound"
-               daemon 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=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/unbound
This page took 0.080149 seconds and 4 git commands to generate.