aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-10-08 11:30:31 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-10-08 11:30:31 +0200
commita7747a3ad3b3f07a2465d64027a923e7709a117f (patch)
treebcc92ad5336aa4cd363ec5b426bf20251048d242
parent3c6fc977035b39ab35c5702eac7dff15982659ba (diff)
downloadmpd-notification-a7747a3ad3b3f07a2465d64027a923e7709a117f.tar.gz
mpd-notification-a7747a3ad3b3f07a2465d64027a923e7709a117f.tar.zst
order systemd service after notification daemons
-rw-r--r--systemd/mpd-notification.service5
1 files changed, 4 insertions, 1 deletions
diff --git a/systemd/mpd-notification.service b/systemd/mpd-notification.service
index af3130f..0920cad 100644
--- a/systemd/mpd-notification.service
+++ b/systemd/mpd-notification.service
@@ -1,12 +1,15 @@
[Unit]
Description=MPD Notification
+Requires=dbus.socket
+PartOf=graphical-session.target
# Do not require any service here! We do rely on mpd OR network (for
# a remote mpd instance). So let the user care.
# We want to order after, though. This makes sure the resource is
# available on start and mpd-notification can cleanly disconnect on
# system shutdown.
After=mpd.service network.target network-online.target
-Requires=dbus.socket
+# Order after notification daemons to make sure it is stopped before.
+After=dunst.service xfce4-notifyd.service
ConditionUser=!@system
[Service]