mpd.service.in 656 Bytes
Newer Older
1 2
[Unit]
Description=Music Player Daemon
3
Documentation=man:mpd(1) man:mpd.conf(5)
4
After=network.target sound.target
5 6

[Service]
7
Type=notify
8 9
ExecStart=@prefix@/bin/mpd --no-daemon

10 11
# allow MPD to use real-time priority 50
LimitRTPRIO=50
12
LimitRTTIME=infinity
13

14 15 16
# disallow writing to /usr, /bin, /sbin, ...
ProtectSystem=yes

17 18 19 20 21 22 23 24 25
# more paranoid security settings
NoNewPrivileges=yes
ProtectKernelTunables=yes
ProtectControlGroups=yes
ProtectKernelModules=yes
# AF_NETLINK is required by libsmbclient, or it will exit() .. *sigh*
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
RestrictNamespaces=yes

26 27
[Install]
WantedBy=multi-user.target
28
Also=mpd.socket