[systemd-devel] Per user limit defaults in systemd.conf

Lennart Poettering lennart at poettering.net
Tue Sep 1 16:49:23 UTC 2020


On Di, 01.09.20 08:57, Joshua Miller (joshuamiller01 at gmail.com) wrote:

> On Tue, Sep 1, 2020 at 7:30 AM Lennart Poettering <lennart at poettering.net>
> wrote:
> > Anyway, do you want this for login users or for system services?
> > Initially your reference to User= suggests the latter, but your
> > reference to PAM suggests the former. What is it now?
>
> I'm looking at system services; sorry for conflating the two.
>
> In this case, I'd specifically like to set MEMLOCK.  It's got the property
> of being accounted at the user level,
> but the limit is enforced at the process level, which means if multiple
> system services running
> as the same user have different limits, the service with the lesser limit
> can break.

As mentioned, there is no construct for setting this per system
user. If you want to this per-service use LimitMEMLOCK=.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list