[Unit] Description=Music Player Daemon After=network.target sound.target Conflicts=mpd.service [Service] ExecStartPre=/usr/bin/mkdir -p %h/.config/mpd/playlists/ %h/.local/share/mpd/ ExecStartPre=touch %h/.local/share/mpd/mpd.db %h/.local/share/mpd/state ExecStart=/usr/bin/mpd --no-daemon %h/.config/mpd/%i.conf LimitRTPRIO=75 LimitRTTIME=infinity ProtectSystem=yes NoNewPrivileges=yes ProtectKernelTunables=yes ProtectControlGroups=yes RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK RestrictNamespaces=yes [Install] WantedBy=default.target