summaryrefslogtreecommitdiff
path: root/debian/apt-daily-upgrade.service
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2018-06-25 13:19:49 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2018-06-25 13:19:49 +0200
commit005c5150d16e80c2322e0380dec9906be9cb7c08 (patch)
treea42d1c1741f14750c1e28860c9dd6f326ac7b15f /debian/apt-daily-upgrade.service
parent551ded4b63f6f47f022c5ca841031fc2566a58ff (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/apt-daily-upgrade.service')
-rw-r--r--debian/apt-daily-upgrade.service3
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