From 267a7bb75988f3c1fe86408b0de4a3e7af3ec0f9 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Tue, 25 Jul 2017 11:35:53 +0200 Subject: [PATCH] Kill only the main process of apt-daily-upgrade.service on shutdown The main process is guessed by systemd. This prevents killing dpkg run by unattended-upgrades in the middle of installing packages and ensures graceful shutdown. The timeout of 900 seconds after which apt-daily-upgrade.service is killed is in sync with unattended-upgrades's timer. LP: #1690980 --- debian/apt-daily-upgrade.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/apt-daily-upgrade.service b/debian/apt-daily-upgrade.service index bf2776ac8..9652f58fe 100644 --- a/debian/apt-daily-upgrade.service +++ b/debian/apt-daily-upgrade.service @@ -7,3 +7,5 @@ After=apt-daily.service [Service] Type=oneshot ExecStart=/usr/lib/apt/apt.systemd.daily install +KillMode=process +TimeoutStopSec=900 -- 2.11.0