From a31da51fd9bd215645b9cabce5fefa449ca14c90 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Aug 2018 11:15:35 +0200 Subject: lib/systemd/Watchdog: implement the systemd watchdog protocol --- systemd/user/mpd.service.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'systemd/user') 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 -- cgit v1.2.3