commit 70cda43d93870c2f8756f347f300aad6ac05b60c parent 5f5a247c048a528d9ce0db9b2db0a67df2f46728 Author: ccx <ccx@te2000.cz> Date: Thu, 11 Apr 2024 07:35:20 +0000 Raise filedescriptor limit for rcm-ssh Diffstat:
M | zsh-functions/confz_site_containers_init | | | 9 | ++++++++- |
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/zsh-functions/confz_site_containers_init b/zsh-functions/confz_site_containers_init @@ -120,6 +120,13 @@ confz_site_containers_user_check() { ) local in_netns=pid1_exec=${(F)el_netns} + local -a el_softlimit_fd=( + "#!$(which execlineb) -S0" + 's6-softlimit -n 4096' + '$@' + ) + local more_fds=pid1_exec=${(F)el_softlimit_fd} + local -a el_mount_usb_devices=( "#!$(which execlineb) -P" 'if { mount -o bind,ro /dev/bus/usb dev/bus/usb }' @@ -144,7 +151,7 @@ confz_site_containers_user_check() { UCa testssl UCa tor UCa ssh - UC rcm-ssh alpine-ssh + UC rcm-ssh alpine-ssh $more_fds UCa socials UCa gpg $with_usb $in_netns UCv signal