aboutsummaryrefslogtreecommitdiffstats
path: root/.config/systemd/user/mpd@.service
blob: ef58e17d7df6890fccb5758c6e53cc93467c0986 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[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