From: Mike Brady Date: Mon, 2 May 2016 16:08:00 +0000 (+0100) Subject: Wait for network to have started X-Git-Tag: 2.8.3.4~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99afe8ef293b57fc40b0e1cf0d27d4228e88f0cb;p=thirdparty%2Fshairport-sync.git Wait for network to have started http://unix.stackexchange.com/questions/126009/cause-a-script-to-execute-after-networking-has-started --- diff --git a/scripts/shairport-sync.service.in b/scripts/shairport-sync.service.in index 3cc662e7..c59efd94 100644 --- a/scripts/shairport-sync.service.in +++ b/scripts/shairport-sync.service.in @@ -3,6 +3,8 @@ Description=ShairportSync AirTunes receiver After=sound.target Requires=avahi-daemon.service After=avahi-daemon.service +Wants=network-online.target +After=network.target network-online.target [Service] ExecStart=@prefix@/bin/shairport-sync