[Unit] Description=Music Player Daemon Documentation=man:mpd(1) man:mpd.conf(5) After=network.target sound.target [Service] Type=notify ExecStart=/usr/local/bin/mpd.23 /etc/mpd.23.conf --systemd # Enable this setting to ask systemd to watch over MPD, see # systemd.service(5). This is disabled by default because it causes # periodic wakeups which are unnecessary if MPD is not playing. #WatchdogSec=120 # allow MPD to use real-time priority 40 LimitRTPRIO=40 LimitRTTIME=infinity # decrease nice value for higher priority (-20 is the least nice a process can be) Nice=-10 # for io_uring LimitMEMLOCK=64M # disallow writing to /usr, /bin, /sbin, ... ProtectSystem=yes # more paranoid security settings NoNewPrivileges=yes ProtectKernelTunables=yes ProtectControlGroups=yes ProtectKernelModules=yes RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX RestrictNamespaces=yes [Install] WantedBy=multi-user.target Also=mpd.socket