public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] dnsdist: Increase number of open files to 64k
Date: Thu, 22 Aug 2019 21:09:24 +0000	[thread overview]
Message-ID: <20190822210925.5928-1-michael.tremer@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]

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 <michael.tremer(a)ipfire.org>
---
 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
 		;;
-- 
2.20.1


                 reply	other threads:[~2019-08-22 21:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190822210925.5928-1-michael.tremer@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox