I have a snap with a daemon that needs more file descriptors than the default 4k limit.
I need to add something like LimitNOFILE=100000 to the service file in order to operate the service properly.
I can edit this by hand – or even automate this orchestration – but I’m wondering:
Will it get clobbered by snapd? My gut feeling says “yes”…
Is there a way to properly define systemd customizations that a snap needs?
I can’t imagine all possible snap daemon use cases can (or should) be modeled by some snapcraft.yaml abstraction. There should be a way to inject custom directives into systemd files.