]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
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 b3185feabb873fe743ff878016be68d919309643..0aab6cc8c100ae2fd2d379f638f1cf8880a884c5 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