diff options
author | 2016-05-12 23:43:29 +0200 | |
---|---|---|
committer | 2016-05-12 23:43:29 +0200 | |
commit | 11b436d32299c71cc0828faff66c66a921842a05 (patch) | |
tree | 6e8b20d912cd5bcaefa52e29e4e3cdf18179c426 | |
parent | b81b0a54b61f62e09b0d3c0e96f51eb780658233 (diff) | |
download | mpd-notification-11b436d32299c71cc0828faff66c66a921842a05.tar.gz mpd-notification-11b436d32299c71cc0828faff66c66a921842a05.tar.zst |
try to get systemd unit start order right
-rw-r--r-- | systemd/mpd-notification.service | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/systemd/mpd-notification.service b/systemd/mpd-notification.service index c377c90..2e907df 100644 --- a/systemd/mpd-notification.service +++ b/systemd/mpd-notification.service @@ -1,6 +1,11 @@ [Unit] Description=MPD Notification -Requires=mpd.service +# 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 [Service] Type=simple |