diff options
author | Eric Luehrsen <ericluehrsen@hotmail.com> | 2016-10-20 00:14:16 -0400 |
---|---|---|
committer | Eric Luehrsen <ericluehrsen@hotmail.com> | 2016-10-30 00:22:53 -0400 |
commit | b228d5e969bb3f91e975dc830a6e8f8b5eba5575 (patch) | |
tree | 73bc3a0aacc537a9015d078fe05398bb7084f9f5 /net | |
parent | a6942cb2296a983b58f2b1fa2b8595e2acf95e50 (diff) |
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>
Diffstat (limited to 'net')
-rwxr-xr-x | net/unbound/files/unbound.iface | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/unbound/files/unbound.iface b/net/unbound/files/unbound.iface new file mode 100755 index 000000000..172bcae51 --- /dev/null +++ b/net/unbound/files/unbound.iface @@ -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 + +############################################################################## + |