systemnd: configure LimitMEMLOCK for io_uring

The io_uring buffer is allocated as memlocked memory, as MPD needs to
be able to lock memory.
This commit is contained in:
Max Kellermann 2020-06-09 21:03:02 +02:00
parent 068006ebd7
commit c031f9aa5d
2 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,9 @@ ExecStart=@prefix@/bin/mpd --no-daemon
LimitRTPRIO=40
LimitRTTIME=infinity
# for io_uring
LimitMEMLOCK=64M
# disallow writing to /usr, /bin, /sbin, ...
ProtectSystem=yes

View File

@ -16,6 +16,9 @@ ExecStart=@prefix@/bin/mpd --no-daemon
LimitRTPRIO=40
LimitRTTIME=infinity
# for io_uring
LimitMEMLOCK=64M
# disallow writing to /usr, /bin, /sbin, ...
ProtectSystem=yes