Files
wekan/snap-src
Lauri Ojansivu 1173d0a51d Raise Caddy's open-file limit in the snap at every start.
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.
2026-10-02 17:15:23 +03:00
..