On Mi, 29.07.20 20:08, Damian Ivanov (damianator...@gmail.com) wrote:

> Hello,
>
> Hope you can help me with this.
>
> How do I set unlimited file descriptors for a systemd-nspawn container
> launcher via systemd-nspawn?
>
> I saw this for the service file
> LimitNOFILE=infinity
>
> found it from here
> https://github.com/systemd/systemd/issues/4997
>
> Although I'm running it from cmd and
> --property="LimitNOFILE=infinity" gives me an error.
>

Use

    systemd-nspawn --rlimit=RLIMIT_NOFILE=8192:16384

You get the idea.

Lennart

--
Lennart Poettering, Berlin
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to