summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rw-r--r--systemd/mpd.service.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/systemd/mpd.service.in b/systemd/mpd.service.in
index 0e8eb84ba..09a5ad2a5 100644
--- a/systemd/mpd.service.in
+++ b/systemd/mpd.service.in
@@ -1,5 +1,6 @@
[Unit]
Description=Music Player Daemon
+Documentation=man:mpd(1) man:mpd.conf(5)
After=network.target sound.target
[Service]
@@ -9,5 +10,9 @@ ExecStart=@prefix@/bin/mpd --no-daemon
LimitRTPRIO=50
LimitRTTIME=infinity
+# disallow writing to /usr, /bin, /sbin, ...
+ProtectSystem=yes
+
[Install]
WantedBy=multi-user.target
+Also=mpd.socket