File 0001-Increase-LimitNOFILE-and-enable-auto-restart.patch of Package i2pd
From 662bab939319e19bc8b0abd41bfed1a1e4a6d5cc Mon Sep 17 00:00:00 2001 From: Arachnos Date: Mon, 31 May 2021 00:00:00 +0000 Subject: [PATCH] Increase LimitNOFILE and enable auto restart Increase maximum number of open files from 4096 to 16384, and enable automatic service restart. --- contrib/i2pd.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/i2pd.service b/contrib/i2pd.service index 45fe4cc6..1bf64604 100644 --- a/contrib/i2pd.service +++ b/contrib/i2pd.service @@ -15,7 +15,7 @@ ExecStart=/usr/sbin/i2pd --conf=/etc/i2pd/i2pd.conf --tunconf=/etc/i2pd/tunnels. ExecReload=/bin/sh -c "kill -HUP $MAINPID" PIDFile=/run/i2pd/i2pd.pid ### Uncomment, if auto restart needed -#Restart=on-failure +Restart=on-failure # Use SIGTERM to stop i2pd immediately. # Some cleanup processes can delay stopping, so we set 30 seconds timeout and then SIGKILL i2pd. @@ -29,7 +29,7 @@ SendSIGKILL=yes #TimeoutStopSec=10m # If you have problems with hanging i2pd, you can try increase this -LimitNOFILE=4096 +LimitNOFILE=16384 # To enable write of coredump uncomment this #LimitCORE=infinity -- 2.31.1