diff options
| author | Balint Reczey <balint.reczey@canonical.com> | 2017-07-25 09:35:53 (GMT) |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2017-07-26 12:17:32 (GMT) |
| commit | 78bc10d4702b30b46d802294ac43cffc34d9c431 (patch) | |
| tree | f5c42ce8c77b9b0643ad55466c9ac01ae97ac302 | |
| parent | 414b7d57eda362328568484957fbd6c06b1b0d1f (diff) | |
Gracefully terminate process when stopping apt-daily-upgrade
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
| -rw-r--r-- | debian/apt-daily-upgrade.service | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/apt-daily-upgrade.service b/debian/apt-daily-upgrade.service index bf2776a..9652f58 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 |
