dnsdist: Increase number of open files to 64k
Commit Message
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@ipfire.org>
---
lfs/dnsdist | 2 +-
src/initscripts/packages/dnsdist | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
@@ -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 = ""
@@ -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
;;