Commit c031f9aa authored by Max Kellermann's avatar Max Kellermann

systemnd: configure LimitMEMLOCK for io_uring

The io_uring buffer is allocated as memlocked memory, as MPD needs to be able to lock memory.
parent 068006eb
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment