2 ##############################################################################
4 # Copyright (C) 2016 Eric Luehrsen
6 ##############################################################################
8 # "Restart" Unbound on hotplug NTP ready:
9 # - Only do this the first time when no file exists
10 # - Some of Unbound conf options to not reload run time
11 # - Change the enable flag for DNSSEC date-time checking
13 ##############################################################################
15 # Common file location definitions
16 .
/usr
/lib
/unbound
/unbound.sh
18 ##############################################################################
20 if [ "$ACTION" = stratum
-a ! -f "$UNBOUND_TIMEFILE" ] ; then
21 echo "ntpd: $( date )" > $UNBOUND_TIMEFILE
22 /etc
/init.d
/unbound enabled
&& /etc
/init.d
/unbound restart
23 # Yes, hard RESTART. We need to be absolutely sure to enable DNSSEC.
26 ##############################################################################