mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
snapcraft has no per-app ulimit key and snapd owns the systemd unit, but a process may always raise its own soft open-file limit up to the hard one without privilege. The snap's Caddy service now does that before it starts Caddy, every time, which is what makes it persist across restarts and refreshes. CADDY_NOFILE may ask for a lower number; it is capped at the hard limit, a non-number is ignored, and a failure to raise is logged without stopping Caddy. tests/snapCaddyNofile6552.test.cjs runs the helper in bash with a lowered limit. It has not been run inside an installed snap here. Thanks to xet7 ! Fixes #6552.