From mboxrd@z Thu Jan 1 00:00:00 1970 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> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3900210032524674331==" List-Id: --===============3900210032524674331== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 =3D $(DIR_SRC)/$(THISAPP) TARGET =3D $(DIR_INFO)/$(THISAPP) SUP_ARCH =3D x86_64 i586 PROG =3D dnsdist -PAK_VER =3D 2 +PAK_VER =3D 3 =20 DEPS =3D "" =20 diff --git a/src/initscripts/packages/dnsdist b/src/initscripts/packages/dnsd= ist 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 ;; --=20 2.20.1 --===============3900210032524674331==--