mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
unbound: improve NTP hotplug behavior when Unbound is disabled
If Unbound was disabled and at later time enabled, then it would operate in DNSSEC less-secure mode. When NTP hotplug was called, the timestamp file was not updated. This was found testing Unbound vs other tools (bind, dnsmasq). Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
This commit is contained in:
committed by
Jo-Philipp Wich
parent
06a9de2d02
commit
2f923ec281
@@ -17,11 +17,9 @@
|
|||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
if [ "$ACTION" = stratum -a ! -f "$UNBOUND_TIMEFILE" ] \
|
if [ "$ACTION" = stratum -a ! -f "$UNBOUND_TIMEFILE" ] ; then
|
||||||
&& /etc/init.d/unbound enabled ; then
|
|
||||||
#
|
|
||||||
echo "ntpd: $( date )" > $UNBOUND_TIMEFILE
|
echo "ntpd: $( date )" > $UNBOUND_TIMEFILE
|
||||||
/etc/init.d/unbound restart
|
/etc/init.d/unbound enabled && /etc/init.d/unbound restart
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user