summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2019-02-12 21:35:46 +0100
committerDavid Runge <dave@sleepmap.de>2019-02-12 21:35:46 +0100
commit426cc58ca7c76abd7aa6a52071e46334d56fe0dd (patch)
tree94e6cd4f7bc5c37849d44d1e9153d3b6e10283be
parent12fcd11af647fcc2397c5a234d87190bf59634c8 (diff)
downloadjack2-426cc58ca7c76abd7aa6a52071e46334d56fe0dd.tar.gz
systemd/jack@.service: Adding LimitMEMLOCK and adding (a commented) disabling of OOMScoreAdjust (which would disable OOM killer).
-rw-r--r--systemd/jack@.service3
1 files changed, 3 insertions, 0 deletions
diff --git a/systemd/jack@.service b/systemd/jack@.service
index 6842585c..bc4e8618 100644
--- a/systemd/jack@.service
+++ b/systemd/jack@.service
@@ -10,6 +10,9 @@ EnvironmentFile=-%h/.config/jack/%i.conf
ExecStart=/usr/bin/jackd $JACK_OPTIONS -d $DRIVER -d $DEVICE $DRIVER_SETTINGS
LimitRTPRIO=95
LimitRTTIME=infinity
+LimitMEMLOCK=infinity
+# Caution: use on memory-limited devices only
+# OOMScoreAdjust=-1000
[Install]
WantedBy=default.target