From 9fcd96daff65926728a3ae196e2bd9ced781dd46 Mon Sep 17 00:00:00 2001 From: SunBK201 Date: Mon, 27 Oct 2025 01:41:41 +0800 Subject: [PATCH] fix: add process limits for nproc, as, memlock, and nofile in start_service function --- openwrt/files/ua3f.init | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openwrt/files/ua3f.init b/openwrt/files/ua3f.init index 6718a7b..114cf54 100755 --- a/openwrt/files/ua3f.init +++ b/openwrt/files/ua3f.init @@ -44,6 +44,7 @@ start_service() { procd_set_param respawn procd_set_param stdout 1 procd_set_param stderr 1 + procd_set_param limits nproc="unlimited" as="unlimited" memlock="unlimited" nofile="65535 65535" if id -u shellclash >/dev/null 2>&1; then procd_set_param user shellclash @@ -51,9 +52,7 @@ start_service() { procd_set_param user shellcrash fi procd_set_param group nogroup - - ulimit -n 65536 - + procd_close_instance }