aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/mpd-notification.service
blob: 55cf057404ba1ceeaefd1b0643934476bddf25fd (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[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
# Order after notification daemons to make sure it is stopped before.
After=dunst.service xfce4-notifyd.service
ConditionUser=!@system

[Service]
Type=notify
Restart=on-failure
ExecStart=/usr/bin/mpd-notification

[Install]
WantedBy=default.target