From patchwork Thu Aug 22 21:09:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 2369 Return-Path: Received: from mail01.ipfire.org (mail01.i.ipfire.org [172.28.1.200]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail01.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 7BCA382DFC for ; Thu, 22 Aug 2019 22:09:32 +0100 (BST) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 46Dxx75RJQz5BXcn; Thu, 22 Aug 2019 22:09:31 +0100 (BST) Received: from michael.haj.ipfire.org (michael.haj.ipfire.org [172.28.1.242]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "michael.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 46Dxx46RT3z5BXcn; Thu, 22 Aug 2019 22:09:28 +0100 (BST) Received: by michael.haj.ipfire.org (Postfix, from userid 0) id 23AB6E180F; Thu, 22 Aug 2019 22:09:28 +0100 (BST) From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] dnsdist: Increase number of open files to 64k Date: Thu, 22 Aug 2019 21:09:24 +0000 Message-Id: <20190822210925.5928-1-michael.tremer@ipfire.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: Michael Tremer X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" dnsdist might need to open large number of connections and therefore the default limit of 1024 needs to be raised. Signed-off-by: Michael Tremer --- lfs/dnsdist | 2 +- src/initscripts/packages/dnsdist | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lfs/dnsdist b/lfs/dnsdist index 5963c5acd..6a52f0f47 100644 --- a/lfs/dnsdist +++ b/lfs/dnsdist @@ -33,7 +33,7 @@ DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) SUP_ARCH = x86_64 i586 PROG = dnsdist -PAK_VER = 2 +PAK_VER = 3 DEPS = "" diff --git a/src/initscripts/packages/dnsdist b/src/initscripts/packages/dnsdist index a70bd3806..c94f429ab 100644 --- a/src/initscripts/packages/dnsdist +++ b/src/initscripts/packages/dnsdist @@ -14,6 +14,11 @@ case "${1}" in start) boot_mesg "Starting dnsdist..." + + # Increasing maximum number of open files + ulimit -n 65536 + + # Starting daemon /usr/bin/dnsdist --supervised ${ARGS} >/dev/null & evaluate_retval ;;