[systemd-devel] nspawn file descriptor limit running without .service/nspawn file

Damian Ivanov damianatorrpm at gmail.com
Wed Jul 29 18:57:40 UTC 2020


Awesome, thanks!

On Wed, Jul 29, 2020 at 9:05 PM Lennart Poettering
<lennart at poettering.net> wrote:
>
> On Mi, 29.07.20 20:08, Damian Ivanov (damianatorrpm at 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


More information about the systemd-devel mailing list