[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#861889: apt: apt.systemd.daily runs before network comes up



On Sun, May 07, 2017 at 11:28:31AM +0200, Hendrik Tews wrote:
> Julian,
> 
> thanks a lot for you quick answer.
> 
> > Check that your network-online target actually ensures that the
> > network is up. (the service might want to depend on that as
> 
> I have no idea how to check this. Could you point me to a
> relevant HowTo?

You could look at 

 /var/lib/systemd/deb-systemd-helper-enabled/network-online.target.wants/
 /{usr/,}lib/systemd/system/network-online.target.wants/ 
 /etc/systemd/system/network-online.target.wants

to see if it contains your network managing wait service unit. You
should find one of these there:

NetworkManager-wait-online.service   for NetworkManager
systemd-networkd-wait-online.service for systemd-resolved
networking.service                   for ifupdown

If not, you might have to enable the service with systemctl
enable. If you use other tools to manage your network figure
out yourself if they are part of network-online.target

Note that this only applies on boot. Resume does not work.

-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev
                  |  Ubuntu Core Developer |
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to ('inline').  Thank you.


Reply to: