diff --git a/systemd/system/mpd.service.in b/systemd/system/mpd.service.in index 1086eed1a..4f4c9fff0 100644 --- a/systemd/system/mpd.service.in +++ b/systemd/system/mpd.service.in @@ -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 diff --git a/systemd/user/mpd.service.in b/systemd/user/mpd.service.in index 0f8c3e9ee..422f60a92 100644 --- a/systemd/user/mpd.service.in +++ b/systemd/user/mpd.service.in @@ -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