From patchwork Sun Mar 1 19:41:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arne Fitzenreiter X-Patchwork-Id: 2812 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 48Vtv121nzz3wc5 for ; Sun, 1 Mar 2020 19:41:33 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 48Vttz60K0z12n; Sun, 1 Mar 2020 19:41:31 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 48Vttz3Xx3z2yRQ; Sun, 1 Mar 2020 19:41:31 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 48Vtty3vbTz2xhB for ; Sun, 1 Mar 2020 19:41:29 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 48Vttw3ZwJz12n; Sun, 1 Mar 2020 19:41:28 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1583091688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=ruyrDOpgqoX/VGoLIOWBA4RxBMa37K5fUmgJtX7Wv54=; b=7Z3pQhng80Wd36bdu5h/ffugOYRT1GAwk/GFtIYsb0HLmW+b6F3nwiIPw2uEG2UEztYnAN VnqNvHwFAWtNNlBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1583091688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=ruyrDOpgqoX/VGoLIOWBA4RxBMa37K5fUmgJtX7Wv54=; b=iua6JX0qAURFklXIk0lupkByeUUdinGhSYA0nw/VficiNAGfS/1eumVZlFeJkcLKh4Jc/a abBS9RGQshXGicaWSBxjBdyBubPHWg8LduKTkpHkPCGF37degQWZaD7Y7l+JhUN7y7abiq v8hWNwFMA1hoKwA5eU1q4gOuxwm84wHgOjG4ZO28ZK7KD7MDdOLpoFUClExxVaRjCE3KPL 0mQDAOCP7lDxkdBVT8GEPwY4luBIKJ9J/71FGh/ntYkr8OlkZhR1/+lnmYYXTbRBfx1tlv lWlIrh1Mqy4npDOM29P2i93I1BRF1QbtwThgWIGfg9UWwhu1TN3afIV2f3467w== From: Arne Fitzenreiter To: development@lists.ipfire.org Subject: [PATCH] unbound: speed-up remove forwarders Date: Sun, 1 Mar 2020 20:41:13 +0100 Message-Id: <20200301194113.16841-1-arne_f@ipfire.org> Authentication-Results: mail01.ipfire.org; auth=pass smtp.mailfrom=arne_f@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arne Fitzenreiter Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Arne Fitzenreiter --- src/initscripts/system/unbound | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound index b3185feab..0aab6cc8c 100644 --- a/src/initscripts/system/unbound +++ b/src/initscripts/system/unbound @@ -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