diff options
author | Max Kellermann <max@musicpd.org> | 2018-08-02 11:15:35 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-08-02 11:15:35 +0200 |
commit | a31da51fd9bd215645b9cabce5fefa449ca14c90 (patch) | |
tree | e320d144db30fade309650e598930422824ac032 /systemd | |
parent | cf471e830ffd9dc417aeb5e85a9bbbfbd6d18b09 (diff) |
lib/systemd/Watchdog: implement the systemd watchdog protocol
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/system/mpd.service.in | 5 | ||||
-rw-r--r-- | systemd/user/mpd.service.in | 5 |
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 |