From 8bd9912a3c5a39d42986cd539bb2a2e2c8a544c1 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 10 Jul 2025 08:37:34 -0600 Subject: [PATCH] Set limit if it is too low --- docker/main/rootfs/usr/local/ulimit/set_ulimit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/main/rootfs/usr/local/ulimit/set_ulimit.sh b/docker/main/rootfs/usr/local/ulimit/set_ulimit.sh index f3f76648d..6c1bacfa2 100755 --- a/docker/main/rootfs/usr/local/ulimit/set_ulimit.sh +++ b/docker/main/rootfs/usr/local/ulimit/set_ulimit.sh @@ -11,7 +11,7 @@ current_hard_limit=$(ulimit -Hn) TARGET_SOFT_LIMIT=65536 TARGET_HARD_LIMIT=65536 -if [ "$current_soft_limit" -eq 1024 ]; then +if [ "$current_soft_limit" -lt "$TARGET_SOFT_LIMIT" ]; then # Attempt to set both soft and hard limits to the new value # This requires sufficient privileges (e.g., running as root in the container) if ulimit -n "$TARGET_SOFT_LIMIT:$TARGET_HARD_LIMIT"; then