Comment 2 for bug 1576333

Revision history for this message
Martin Pitt (pitti) wrote : Re: runs to early

> +After=network.target

network.target is mostly just relevant for a correct shutdown order, thus it's irrelevant. You want "After=network-online.target" instead (see man systemd.special). But if you do this, you have to give up on running this during early boot (DefaultDependencies=no) as the networking can only be brought up much later.

While we are on cleaning up the unit, pollinate.service has

[Install]
WantedBy=network.target

while this is harmless (as long as you don't also specify Before=network.target), it's misleading to a reader. Better hook it into multi-user.target.