unbound: speed-up remove forwarders
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 1 Mar 2020 19:41:13 +0000 (20:41 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 1 Mar 2020 19:46:36 +0000 (19:46 +0000)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/initscripts/system/unbound

index b3185fe..0aab6cc 100644 (file)
@@ -595,6 +595,10 @@ case "$1" in
                # Call unbound-control and perform the reload
                /usr/sbin/unbound-control -q reload
 
+               if [ "$1" = "remove-forwarders" ]; then
+                       exit 0
+               fi
+
                # Dummy Resolve to wait for unbound
                resolve "ping.ipfire.org" &>/dev/null