commit e73d37dc905396376b1b2ce9953556c5c0e0fbb8 parent 2e290e3d5e5cc9dbf50233b40972a544d17be04e Author: ccx <ccx@te2000.cz> Date: Thu, 11 Apr 2024 08:08:49 +0000 Use zsh to raise fd hardlimit Diffstat:
M | zsh-functions/confz_site_containers_init | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/zsh-functions/confz_site_containers_init b/zsh-functions/confz_site_containers_init @@ -120,12 +120,12 @@ confz_site_containers_user_check() { ) local in_netns=pid1_exec=${(F)el_netns} - local -a el_softlimit_fd=( - "#!$(which execlineb) -S0" - 's6-softlimit -o =' - '$@' + local -a exec_softlimit_fd=( + "#!$(which zsh)" + 'ulimit -H -n 65536' + 'exec "$@"' ) - local more_fds=pid1_exec=${(F)el_softlimit_fd} + local more_fds=pid1_exec=${(F)exec_softlimit_fd} local -a el_mount_usb_devices=( "#!$(which execlineb) -P"