From b0ae8c1ce6de2b005df0b24bfb71732b8ebd5519 Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Wed, 14 Apr 2021 19:43:05 +0100 Subject: [PATCH] Add mpd user service --- .config/systemd/user/mpd.service | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .config/systemd/user/mpd.service 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 +