diff options
author | Julian Andres Klode <jak@debian.org> | 2017-09-11 16:28:28 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2017-09-11 16:29:53 +0200 |
commit | 8b50b1025e5ab2e0ca51b4c21a573adbd40ac185 (patch) | |
tree | f6f40203cc46943901e4a3936e83b9dad9c437fc /cmdline | |
parent | 5a72bf326cdcfcdbe44ff5ad1aef2eb55e3a4297 (diff) |
apt-daily: Do not Wants=network-online, and add some more After=
We now wait for being online ourselves, so all we need to wait
on is for services we are using to be online first. This avoids
severe boot slowdowns by other services having specified an
After=network-online.target without a Wants=.
Gbp-Dch: Full
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-helper.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmdline/apt-helper.cc b/cmdline/apt-helper.cc index 30647048b..af8421f41 100644 --- a/cmdline/apt-helper.cc +++ b/cmdline/apt-helper.cc @@ -199,6 +199,7 @@ static bool ServiceIsActive(const char *service) static bool DoWaitOnline(CommandLine &CmdL) { + // Also add services to After= in .service static const char *WaitingTasks[][6] = { {"systemd-networkd.service", "/lib/systemd/systemd-networkd-wait-online", "-q", "--timeout=30", nullptr}, {"NetworkManager.service", "nm-online", "-q", "--timeout", "30", nullptr}, |