summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rw-r--r--systemd/system/mpd.service.in5
-rw-r--r--systemd/user/mpd.service.in5
2 files changed, 10 insertions, 0 deletions
diff --git a/systemd/system/mpd.service.in b/systemd/system/mpd.service.in
index 7b0218bf2..2c4007d25 100644
--- a/systemd/system/mpd.service.in
+++ b/systemd/system/mpd.service.in
@@ -7,6 +7,11 @@ After=network.target sound.target
Type=notify
ExecStart=@prefix@/bin/mpd --no-daemon
+# Enable this setting to ask systemd to watch over MPD, see
+# systemd.service(5). This is disabled by default because it causes
+# periodic wakeups which are unnecessary if MPD is not playing.
+#WatchdogSec=120
+
# allow MPD to use real-time priority 50
LimitRTPRIO=50
LimitRTTIME=infinity
diff --git a/systemd/user/mpd.service.in b/systemd/user/mpd.service.in
index 12b814c2d..eea52d951 100644
--- a/systemd/user/mpd.service.in
+++ b/systemd/user/mpd.service.in
@@ -7,6 +7,11 @@ After=network.target sound.target
Type=notify
ExecStart=@prefix@/bin/mpd --no-daemon
+# Enable this setting to ask systemd to watch over MPD, see
+# systemd.service(5). This is disabled by default because it causes
+# periodic wakeups which are unnecessary if MPD is not playing.
+#WatchdogSec=120
+
# allow MPD to use real-time priority 50
LimitRTPRIO=50
LimitRTTIME=infinity