2011-09-30 08:37:36 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Music Player Daemon
|
2012-11-21 17:26:23 +01:00
|
|
|
After=network.target sound.target
|
2011-09-30 08:37:36 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStart=@prefix@/bin/mpd --no-daemon
|
|
|
|
|
2014-02-12 21:00:53 +01:00
|
|
|
# allow MPD to use real-time priority 50
|
|
|
|
LimitRTPRIO=50
|
2015-12-01 08:53:35 +01:00
|
|
|
LimitRTTIME=infinity
|
2014-02-12 21:00:53 +01:00
|
|
|
|
2015-08-11 19:00:21 +02:00
|
|
|
# disallow writing to /usr, /bin, /sbin, ...
|
|
|
|
ProtectSystem=yes
|
|
|
|
|
2016-12-09 10:36:02 +01:00
|
|
|
# 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
|
|
|
|
|
2011-09-30 08:37:36 +02:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
2015-08-11 18:58:34 +02:00
|
|
|
Also=mpd.socket
|