aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/mpd-notification.service
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-05-16 22:10:31 +0200
committerGravatar Christian Hesse <mail@eworm.de>2016-05-16 22:10:31 +0200
commit67c75e3155104e7208171be8c5bac5d01fcb063f (patch)
treefd09b2b2caea353e37303389794f1b21199cffae /systemd/mpd-notification.service
parent11b436d32299c71cc0828faff66c66a921842a05 (diff)
downloadmpd-notification-67c75e3155104e7208171be8c5bac5d01fcb063f.tar.gz
mpd-notification-67c75e3155104e7208171be8c5bac5d01fcb063f.tar.zst
work around mpd initialization issue
Diffstat (limited to 'systemd/mpd-notification.service')
-rw-r--r--systemd/mpd-notification.service7
1 files changed, 7 insertions, 0 deletions
diff --git a/systemd/mpd-notification.service b/systemd/mpd-notification.service
index 2e907df..ab9e265 100644
--- a/systemd/mpd-notification.service
+++ b/systemd/mpd-notification.service
@@ -9,6 +9,13 @@ After=mpd.service network.target network-online.target
[Service]
Type=simple
+# Using mpd user service can result in mpd-notification starting too early
+# as systemd thinks mpd has finished initialization but socket is not yet
+# available. So sleep for a second before starting.
+# TODO: Remove workarount when upstream fix is released. Currently in git:
+# http://git.musicpd.org/cgit/master/mpd.git/commit/?id=7b575f61
+# http://git.musicpd.org/cgit/master/mpd.git/commit/?id=c85ba733
+ExecStartPre=/usr/bin/sleep 1
ExecStart=/usr/bin/mpd-notification
[Install]