lenhardt-its / ansible-role-adguard-home

MIT License
1 stars 3 forks source link

Deprecated Systemd Unit parameters #4

Open fkonradmain opened 4 months ago

fkonradmain commented 4 months ago

templates/adguard.service.j2

LimitNOFILE={{ adguard_limit_nofile | default('8192') }}
LimitMEMLOCK=infinity

On Debian and Ubuntu, you will get warnings, when using both of these parameters to limit (or in this case not limit) the memory consumption.

I have provided an example that does not produce warnings:

MemoryHigh={{ adguard_memory_high | default('') }}
MemoryMax={{ adguard_memory_max | default('') }}
CPUQuota={{ adguard_cpu_quota | default('90%') }}

A merge request is also on its way.