diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2018-06-25 13:19:49 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2018-06-25 13:19:49 +0200 |
commit | 005c5150d16e80c2322e0380dec9906be9cb7c08 (patch) | |
tree | a42d1c1741f14750c1e28860c9dd6f326ac7b15f /debian | |
parent | 551ded4b63f6f47f022c5ca841031fc2566a58ff (diff) |
Ensure that we are online in apt-daily-upgrade.service
Installer packages need us to be online, or they are blocking
shutdowns in the worst case :(
LP: #1723761
Diffstat (limited to 'debian')
-rw-r--r-- | debian/apt-daily-upgrade.service | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/apt-daily-upgrade.service b/debian/apt-daily-upgrade.service index 9652f58fe..37a2499d1 100644 --- a/debian/apt-daily-upgrade.service +++ b/debian/apt-daily-upgrade.service @@ -2,10 +2,11 @@ Description=Daily apt upgrade and clean activities Documentation=man:apt(8) ConditionACPower=true -After=apt-daily.service +After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service [Service] Type=oneshot +ExecStartPre=-/usr/lib/apt/apt-helper wait-online ExecStart=/usr/lib/apt/apt.systemd.daily install KillMode=process TimeoutStopSec=900 |