mpd/systemd/mpd.service.in

27 lines
603 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Music Player Daemon
After=network.target sound.target
[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
LimitRTTIME=infinity
2014-02-12 21:00:53 +01:00
# disallow writing to /usr, /bin, /sbin, ...
ProtectSystem=yes
# 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
[Install]
WantedBy=multi-user.target
Also=mpd.socket