2011-09-30 08:37:36 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Music Player Daemon
|
2015-07-17 19:55:23 +02:00
|
|
|
Documentation=man:mpd(1) man:mpd.conf(5)
|
2012-11-21 17:26:23 +01:00
|
|
|
After=network.target sound.target
|
2011-09-30 08:37:36 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStart=@prefix@/bin/mpd --no-daemon
|
|
|
|
|
2014-02-12 21:00:53 +01:00
|
|
|
# allow MPD to use real-time priority 50
|
|
|
|
LimitRTPRIO=50
|
|
|
|
LimitRTTIME=-1
|
|
|
|
|
|
|
|
# move MPD to a top-level cgroup, as real-time budget assignment fails
|
|
|
|
# in cgroup /system/mpd.service, because /system has a zero real-time
|
|
|
|
# budget; see
|
|
|
|
# http://www.freedesktop.org/wiki/Software/systemd/MyServiceCantGetRealtime/
|
|
|
|
ControlGroup=cpu:/mpd
|
|
|
|
|
|
|
|
# assign a real-time budget
|
|
|
|
ControlGroupAttribute=cpu.rt_runtime_us 500000
|
|
|
|
|
2011-09-30 08:37:36 +02:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
2015-08-11 18:58:34 +02:00
|
|
|
Also=mpd.socket
|