Codebase list unbound / f7151fb
debian/: make the root trust anchor filename configurable Robert S. Edmonds 12 years ago
3 changed file(s) with 14 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
00 # If set, the unbound daemon will be started and stopped by the init script.
11 UNBOUND_ENABLE=true
22
3 # Whether to automatically update the root trust anchor file in
4 # /etc/unbound/root.key.
3 # Whether to automatically update the root trust anchor file.
54 ROOT_TRUST_ANCHOR_UPDATE=true
5
6 # File in which to store the root trust anchor.
7 ROOT_TRUST_ANCHOR_FILE=/var/lib/unbound/root.key
68
79 # If set, the unbound init script will provide unbound's listening
810 # IP addresses as nameservers to resolvconf.
1919
2020 UNBOUND_ENABLE=true
2121 ROOT_TRUST_ANCHOR_UPDATE=false
22 ROOT_TRUST_ANCHOR_FILE=/var/lib/unbound/root.key
2223 RESOLVCONF=false
2324 RESOLVCONF_FORWARDERS=false
2425
9091 start)
9192 if $UNBOUND_ENABLE; then
9293 if $ROOT_TRUST_ANCHOR_UPDATE; then
93 unbound-anchor -a /etc/unbound/root.key
94 unbound-anchor -a $ROOT_TRUST_ANCHOR_FILE
9495 fi
9596 log_daemon_msg "Starting $DESC" "$NAME"
9697 if start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --name $NAME --startas $DAEMON -- $DAEMON_OPTS; then
00 #!/bin/sh -e
1
2 ROOT_TRUST_ANCHOR_UPDATE=false
3 ROOT_TRUST_ANCHOR_FILE=/var/lib/unbound/root.key
4
5 if [ -f /etc/default/unbound ]; then
6 . /etc/default/unbound
7 fi
18
29 if [ "$1" = configure ]; then
310 if ! getent passwd unbound >/dev/null; then
1017 case "x$ROOT_TRUST_ANCHOR_UPDATE" in
1118 xtrue|x1|xyes)
1219 echo "Updating root trust anchor file..."
13 unbound-anchor -a /etc/unbound/root.key -v || true
20 unbound-anchor -a $ROOT_TRUST_ANCHOR_FILE -v || true
1421 ;;
1522 esac
1623 fi