collectd.service: wait for network-online.target
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 15 Apr 2016 10:14:09 +0000 (12:14 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 15 Apr 2016 10:14:09 +0000 (12:14 +0200)
Wait for network-online.target, not network.target
See https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/

contrib/systemd.collectd.service

index 7a580ba..704c72a 100644 (file)
@@ -1,8 +1,8 @@
 [Unit]
 Description=Collectd statistics daemon
 Documentation=man:collectd(1) man:collectd.conf(5)
-After=local-fs.target network.target
-Requires=local-fs.target network.target
+After=local-fs.target network-online.target
+Requires=local-fs.target network-online.target
 
 [Service]
 ExecStart=/usr/sbin/collectd