From a9a5907a0ffe67c5da9bc34d615ab4aa8d7ba4fa Mon Sep 17 00:00:00 2001
From: John <da_audiophile@yahoo.com>
Date: Wed, 21 Nov 2012 17:26:23 +0100
Subject: [PATCH] mpd.service: depend on network.target

Since some configurations use the "bind_to_address" option in their
/etc/mpd.conf, the systemd service file must wait for the
network.target or else mpd will start before it and thus fail due to
no iface.
---
 mpd.service.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mpd.service.in b/mpd.service.in
index 9e9282fa6..65fffa7bb 100644
--- a/mpd.service.in
+++ b/mpd.service.in
@@ -1,6 +1,6 @@
 [Unit]
 Description=Music Player Daemon
-After=sound.target
+After=network.target sound.target
 
 [Service]
 ExecStart=@prefix@/bin/mpd --no-daemon