diff --git a/.config/systemd/user/mpd.service b/.config/systemd/user/mpd.service new file mode 100644 index 0000000..cbf9c53 --- /dev/null +++ b/.config/systemd/user/mpd.service @@ -0,0 +1,22 @@ +[Unit] +Description=Music Player Daemon +Documentation=man:mpd(1) man:mpd.conf(5) +After=network.target sound.target + +[Service] +Type=notify +ExecStart=/usr/bin/mpd --no-daemon +LimitRTPRIO=40 +LimitRTTIME=infinity +LimitMEMLOCK=64M + +ProtectSystem=yes +NoNewPrivileges=yes +ProtectKernelTunables=yes +ProtectControlGroups=yes +RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK +RestrictNamespaces=yes + +[Install] +WantedBy=default.target +