How to set persistent ulimits?

I can set ulimit -r 90 with ssh (openssh) but when i relogin its back to '0'. How can i set this permanent? I need it system-wide (for lxc/alpine container).

Most Unix systems set ulimits in /etc/security/limits.conf

Yes, but i haven't found any limits.conf in /etc anywhere.

Regarding https://openwrt.org/docs/guide-developer/procd-init-scripts i've set in /etc/init.d/sshd:

	procd_set_param command $PROG -D
	procd_set_param limits rtprio="90"
	procd_close_instance

and restarted the service. But it doesn't work.

Try this:

...
procd_set_param limits rtprio="90 90"
...