From 79bbe80d2187916ffa40944d7d7f5cb3ff4fa724 Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Sat, 10 Jun 2023 21:25:32 +0500 Subject: [PATCH] Increase file descriptors limit if possible --- conty-start.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conty-start.sh b/conty-start.sh index 071e30c..32fa134 100755 --- a/conty-start.sh +++ b/conty-start.sh @@ -820,6 +820,10 @@ else "${script}" "${mount_point}") fi +# Increase file descriptors limit in case soft and hard limits are different +# Useful for unionfs-fuse and for some games +ulimit -n $(ulimit -Hn) &>/dev/null + # Mount the image mkdir -p "${mount_point}"