mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
Unbound: Add hotplug/iface script to request restart
-Rebind to new interfaces cleanly -Detach from old interfaces cleanly -Some conf options do not reload dynamically -Unbound grows some and this will shrink it Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# Copyright (C) 2016 Eric Luehrsen
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# "Restart" Unbound on hotplug interface up:
|
||||||
|
# - Clean rebind of unbound to new interfaces
|
||||||
|
# - Some of Unbound conf options to not reload run time
|
||||||
|
# - Unbound can grow a bit so this will shrink it back
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
if [ "$ACTION" = ifup ] && /etc/init.d/unbound enabled ; then
|
||||||
|
/etc/init.d/unbound restart
|
||||||
|
fi
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
Reference in New Issue
Block a user