From 37931663bf186b43ea90946dd864d1b0adc1b3dd Mon Sep 17 00:00:00 2001 From: Frank Steinborn Date: Fri, 28 Oct 2022 13:45:32 +0200 Subject: [PATCH] i2pd: increase open files limit To run i2pd as a "floodfill" (special mode which contributes to the network more) we need a higher open files limit. 8192 is recommended by upstream but let's just double it to be on the safe side. --- srcpkgs/i2pd/files/i2pd/run | 2 ++ srcpkgs/i2pd/template | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/srcpkgs/i2pd/files/i2pd/run b/srcpkgs/i2pd/files/i2pd/run index 362ca4004db3..2395b784eed4 100644 --- a/srcpkgs/i2pd/files/i2pd/run +++ b/srcpkgs/i2pd/files/i2pd/run @@ -1,4 +1,6 @@ #!/bin/sh +[ -r conf ] && . ./conf +ulimit -n ${MAX_OPEN_FILES:-16384} exec chpst -u _i2pd:_i2pd i2pd --service \ --conf=/etc/i2pd/i2pd.conf \ --tunconf=/etc/i2pd/tunnels.conf 2>&1 diff --git a/srcpkgs/i2pd/template b/srcpkgs/i2pd/template index 253e5e4aed9a..269d719ff21b 100644 --- a/srcpkgs/i2pd/template +++ b/srcpkgs/i2pd/template @@ -1,7 +1,7 @@ # Template file for 'i2pd' pkgname=i2pd version=2.43.0 -revision=1 +revision=2 build_style=gnu-makefile make_build_args="USE_UPNP=yes" makedepends="zlib-devel boost-devel openssl-devel miniupnpc-devel